#45878 [NEW]: json_encode() bug report

2008-08-20 Thread chenming522 at gmail dot com
From: chenming522 at gmail dot com
Operating system: windows xp
PHP version:  5.2.6
PHP Bug Type: Unknown/Other Function
Bug description:  json_encode() bug report

Description:

Hi:
   I am a new gur for PHP program, Recently when I write a program that
use php function json_encode() to translate a simpleXML object into json
code, I found the attributes of the XML leafage node was lose.
   Wait to solve :).
Thank you.

Reproduce code:
---
node value";
$xml_obj = simplexml_load_string($xml_str);
$json = json_encode($xml_obj);
echo $json; // so where is node's attribute
echo "\n===\n";
$xml_str = "";
$xml_obj = simplexml_load_string($xml_str);
$json = json_encode($xml_obj);
echo $json; // found it, but why?
?>

Expected result:

{"node":"node value"}
===
{"node":{"@attributes":{"attr":"node attribute"}}}

Actual result:
--
inlude node's value and attributes

-- 
Edit bug report at http://bugs.php.net/?id=45878&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45878&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45878&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45878&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45878&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45878&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45878&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45878&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45878&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45878&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45878&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45878&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45878&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45878&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45878&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45878&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45878&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45878&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45878&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45878&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45878&r=mysqlcfg



#45792 [Asn->Csd]: bz2 compressed files in zip failure

2008-08-20 Thread cellog
 ID:   45792
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Assigned
+Status:   Closed
 Bug Type: PHAR related
 Operating System: linux
 PHP Version:  5.3CVS-2008-08-12 (CVS)
 Assigned To:  cellog
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2008-08-18 21:51:34] [EMAIL PROTECTED]

significant progress - I've got this working for the described test
case.  The largest problem was that the zip header was not checked for
validity when opening an internal zip file, and local header can have a
different offset than the central header (stupid design flaw of ZIP file
format).  The fix must be ported to conversion convertTo*() and a few
other places prior to commit.



[2008-08-12 02:55:55] [EMAIL PROTECTED]

Description:

a zip archive created with info-zip using bzip2 compression is not
properly processed by phar.






-- 
Edit this bug report at http://bugs.php.net/?id=45792&edit=1



#45877 [NEW]: Array key '2147483647' left as string

2008-08-20 Thread henryptung at gmail dot com
From: henryptung at gmail dot com
Operating system: CentOS 4
PHP version:  5.2.6
PHP Bug Type: Arrays related
Bug description:  Array key '2147483647' left as string

Description:

I believe '2147483647' (= 2^31 - 1) should be the standard representation
of a valid integer, but using the string form as an array key stores the
key as a string, not an integer.  The integer key 2147483647 can be used
separately to refer to a different value, and both are stored.  See repro
code below:

Note: this bug is admittedly duplicate of bug #13407, but the bug still
exists, and I fail to understand why the original bug was marked bogus. 
Thanks for your time.

Reproduce code:
---
$v = array('2147483647' => 'b', '2147483646' => 'c', 2147483647 => 'd');
var_dump($v);

Expected result:

array(2) {
  [2147483647]=>
  string(1) "d"
  [2147483646]=>
  string(1) "c"
}

Actual result:
--
array(3) {
  ["2147483647"]=>
  string(1) "b"
  [2147483646]=>
  string(1) "c"
  [2147483647]=>
  string(1) "d"
}

-- 
Edit bug report at http://bugs.php.net/?id=45877&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45877&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45877&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45877&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45877&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45877&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45877&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45877&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45877&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45877&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45877&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45877&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45877&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45877&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45877&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45877&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45877&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45877&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45877&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45877&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45877&r=mysqlcfg



#43948 [Com]: IMAP: Add imap_myrights() function

2008-08-20 Thread diegows at xtech dot com dot ar
 ID:   43948
 Comment by:   diegows at xtech dot com dot ar
 Reported By:  diegows at xtech dot com dot ar
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: Linux
 PHP Version:  5.2.5
 New Comment:

Please, use the version I sent to internals mailing list. The previous
one has a memory corruption bug.

http://marc.info/?l=php-internals&m=12192826493&w=2


Previous Comments:


[2008-02-14 22:56:21] [EMAIL PROTECTED]

Reclassified. And please don't change the summary again.



[2008-01-27 22:46:12] diegows at xtech dot com dot ar

Description:

I suggest that imap_myrights() function should be added to IMAP
extension. It's already implemented in uw-imap and it's useful.

Suggested patch:

http://www.woitasen.com.ar/php-myrights.patch







-- 
Edit this bug report at http://bugs.php.net/?id=43948&edit=1



#43540 [Com]: rfc1867 handler newlength problem

2008-08-20 Thread tomas at tomas-muller dot net
 ID:   43540
 Comment by:   tomas at tomas-muller dot net
 Reported By:  thomas at partyflock dot nl
 Status:   Open
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  5.2.5
 New Comment:

FYI a more detailed description can be found here:
http://pecl.php.net/bugs/bug.php?id=10715


Previous Comments:


[2008-08-21 01:23:33] tomas at tomas-muller dot net

I can confirm that making this change and recompiling fixes the bug for
me. Could anyone please review this and fix it? This annoying bug makes
the rfc1867 hook effectively unusable.



[2007-12-08 23:49:45] thomas at partyflock dot nl

Description:

In main/rfc1867.c, line 928, newlength is initialized to 0.

Shouldn't this be new_val_len?

Currently if your form handler does nothing and always returns SUCCESS,
all the viables get set, but with 0 length strings.







-- 
Edit this bug report at http://bugs.php.net/?id=43540&edit=1



#43540 [Com]: rfc1867 handler newlength problem

2008-08-20 Thread tomas at tomas-muller dot net
 ID:   43540
 Comment by:   tomas at tomas-muller dot net
 Reported By:  thomas at partyflock dot nl
 Status:   Open
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  5.2.5
 New Comment:

I can confirm that making this change and recompiling fixes the bug for
me. Could anyone please review this and fix it? This annoying bug makes
the rfc1867 hook effectively unusable.


Previous Comments:


[2007-12-08 23:49:45] thomas at partyflock dot nl

Description:

In main/rfc1867.c, line 928, newlength is initialized to 0.

Shouldn't this be new_val_len?

Currently if your form handler does nothing and always returns SUCCESS,
all the viables get set, but with 0 length strings.







-- 
Edit this bug report at http://bugs.php.net/?id=43540&edit=1



#45080 [Opn->Bgs]: PDOStatement - Mysql Driver - rowCount

2008-08-20 Thread kalle
 ID:   45080
 Updated by:   [EMAIL PROTECTED]
 Reported By:  paul dot cocei at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: CentOS 5.1
 PHP Version:  5.2.6
 New Comment:

This is expected behavior, the manual also says that the rowCount will
return affected rows.


Previous Comments:


[2008-05-23 13:10:24] paul dot cocei at gmail dot com

Description:

Because libmysql contains a method named mysql_stmt_num_rows, it is
possible in the mysql PDO driver to return correctly the total count of
rows selected by a SELECT statement.
Right now, the source code for mysql PDOStatement uses
mysql_stmt_affected_rows, which evidentely returns "0" for SELECT
queries.

Localization: php-5.2.6/ext/pdo_mysql.c, line 202.

Reproduce code:
---
row_count = mysql_stmt_affected_rows(S->stmt);






-- 
Edit this bug report at http://bugs.php.net/?id=45080&edit=1



#45876 [NEW]: DBLIB does not support getColumnMeta

2008-08-20 Thread ssufficool at rov dot sbcounty dot gov
From: ssufficool at rov dot sbcounty dot gov
Operating system: Gentoo Linux
PHP version:  5.2.6
PHP Bug Type: PDO related
Bug description:  DBLIB does not support getColumnMeta

Description:

When using the mssql_* functions it is possible to read column meta data
using mssql_fetch_field in conjunction with the freetds library. However it
is not possible to use PDOStatement::getColumnMeta using the same library.

The library must support this functionality in some way even if limited,
the additional attributes may be set to false or NULL.

Reproduce code:
---
$conn = new PDO("dblib:host=myhost","user","pass");

$rs = $conn->query("SELECT * FROM SOMETABLE");

print_r($rs->getColumnMeta(0));

Expected result:

Array(
"key" => "value",
"key" => "value",
"key" => "value",
"key" => "value"
);

Actual result:
--
Warning: PDOStatement::getColumnMeta() [pdostatement.getcolumnmeta]:
SQLSTATE[IM001]: Driver does not support this function: driver doesn't
support meta data 

-- 
Edit bug report at http://bugs.php.net/?id=45876&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45876&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45876&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45876&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45876&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45876&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45876&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45876&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45876&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45876&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45876&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45876&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45876&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45876&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45876&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45876&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45876&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45876&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45876&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45876&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45876&r=mysqlcfg



#45870 [Opn->Bgs]: Floating point exception/opt/apache2/bin/httpd -l

2008-08-20 Thread johannes
 ID:   45870
 Updated by:   [EMAIL PROTECTED]
 Reported By:  solo at krovatka dot su
-Status:   Open
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: SuSe ES 10 2.6.16.21-0.8-bigsmp
 PHP Version:  5.2CVS-2008-08-20 (snap)
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

.


Previous Comments:


[2008-08-20 19:45:05] solo at krovatka dot su

Description:

I have apache compilled and working version httpd-2.2.8.
and perl  v5.8.8 
when I'm trying to compile php I'm getting the following error:
Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using
--with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)
The output of /opt/apache2/bin/apxs follows:
sh: line 1:  3074 Floating point exception/opt/apache2/bin/httpd -l
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/opt/apache2/bin/httpd'..
configure: error: Aborting
make: *** [php-5.2.5/Makefile] Error 1

My makefile contains following keys:
$(PHP_MAKEFILE): Makefile
@cd $(PHP_SRC_DIR) \
&& CFLAGS=-s ./configure \
--with-libdir=$(LIBDIR) \
--with-apxs2=$(APXS)\
--with-oci8=$(ORACLE_HOME)  \
--with-pdo-oci=$(ORACLE_HOME)   \
--disable-cgi   \
--enable-mbstring   \
--enable-gd-native-ttf  \
--enable-ftp\
--enable-sockets\
--with-curl
\
--with-xsl 
\
--with-iconv\
--with-zlib
\
--with-gd  
\
--with-freetype-dir

I've googled 100 places already but still can't find anything similar.
Will be very glad if I get any hint how to resolve this.






-- 
Edit this bug report at http://bugs.php.net/?id=45870&edit=1



#45873 [Opn->Bgs]: feature request

2008-08-20 Thread johannes
 ID:   45873
 Updated by:   [EMAIL PROTECTED]
 Reported By:  firealwaysworks at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: linux
 PHP Version:  5.2.6
 New Comment:

Debuggers like xdebug can easily be installed on development systems.
We won't add them to the PHP core.

Feel free to start a petition.


Previous Comments:


[2008-08-20 19:58:41] firealwaysworks at gmail dot com

Description:

I beg you great architects of php,  please hear this. 

APC(http://us.php.net/apc) will be added to the core of PHP 6
(http://www.php.net/~derick/meeting-notes.html), 
APD(http://us.php.net/apd) should be added as well.  PHP needs more
debugging features such as hooking.  In the latest version of PHP5 there
is NO WORKING METHOD WHAT SO EVER to hook a function call!

If you do not hear me,  I will start a petition.

Thanks,
Michael  






-- 
Edit this bug report at http://bugs.php.net/?id=45873&edit=1



#45875 [Opn]: Saving an array under a key that equals a local class can fail

2008-08-20 Thread philipp dot gerard at zeitdenken dot de
 ID:   45875
 User updated by:  philipp dot gerard at zeitdenken dot de
 Reported By:  philipp dot gerard at zeitdenken dot de
 Status:   Open
 Bug Type: Session related
 Operating System: Linux
 PHP Version:  5.2.6
 New Comment:

Another note: This does not happen in PHP 5.2.5 but only in 5.2.6!


Previous Comments:


[2008-08-20 20:19:13] philipp dot gerard at zeitdenken dot de

Description:

Saving an array under a key that equals a local class can result in the

array becoming an object.






Reproduce code:
---
# Parts of Zelos_Session.php:
class Zelos_Session {

/**
 * Stores data in the session storage
 *
 * @param string $module 
 * @param string $key 
 * @param array $arrayData 
 * @return void
 * @author Philipp Gérard
 */
public function save($module, $key, $arrayData){
$_SESSION[$module][$key] = $arrayData;
}

/**
 * Returns a specific part of the storage
 *
 * @param string $module 
 * @param string $key 
 * @return void
 * @author Philipp Gérard
 */
public function read($module, $key){
if(isset($_SESSION[$module][$key])){
return $_SESSION[$module][$key];
} else {
return false;
}
}
}

# Parts of Zelos_Auth.php:
class Zelos_Auth {

public function authenticate($authArray){
# (...)
$results= $qObj->fetchAll(PDO::FETCH_ASSOC);
if(count($results)>0){
// Valid user, log em' in
$results[0]["status"] = true;

$GLOBALS["Zelos_Session"]->save("Zelos_Auth","userdata",$results[0]);
return true;
} else {
return false;
}
}

/**
 * Returns true if the user is logged in
 *
 * @return void
 * @author Philipp Gérard
 */
public function isActive(){
$userdata =
$GLOBALS["Zelos_Session"]->read("Zelos_Auth","userdata");
return ($userdata["status"] == true) ? true : false;
}

}

Expected result:

save() works, but after changing the page (refreshing or such) read() 
returns instead of

array(1) {
  ["Zelos_Auth"]=>
  array(1) {
["userdata"]=>
array(4) {
  ["id"]=>
  string(1) "1"
  ["username"]=>
  string(13) "username"
  ["usergroup"]=>
  string(1) "1"
  ["status"]=>
  bool(true)
}
  }
}






Actual result:
--
array(1) {
  ["Zelos_Auth"]=>
  &object(Zelos_Auth)#7 (2) {
["adapter:private"]=>
array(1) {
  ["table"]=>
  string(5) "users"
}
["credentials:private"]=>
array(5) {
  ["identifier"]=>
  string(2) "id"
  (...)
}
  }
}

Sometimes also an "incomplete class" is returned

array(1) {
  ["Zelos_Auth"]=>
  &object(__PHP_Incomplete_Class)#3 (3) {
["__PHP_Incomplete_Class_Name"]=>
string(10) "Zelos_Auth"
["adapter:private"]=>
array(1) {
  ["table"]=>
  string(5) "users"
}
["credentials:private"]=>
array(5) {
  ["identifier"]=>
  string(2) "id"
  ["username"]=>
  string(8) "username"
  ["password"]=>
  string(8) "password"
  ["encryption"]=>
  string(4) "sha1"
  ["optionals"]=>
  array(1) {
[0]=>
string(9) "usergroup"
  }
}
  }
}










-- 
Edit this bug report at http://bugs.php.net/?id=45875&edit=1



#45872 [Opn->Asn]: Win installer reports script file can't be run

2008-08-20 Thread bjori
 ID:   45872
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jperry at thepayrollpros dot com
-Status:   Open
+Status:   Assigned
-Bug Type: Website problem
+Bug Type: Unknown/Other Function
 Operating System: win xp
-PHP Version:  Irrelevant
+PHP Version:  5.2?
-Assigned To:  
+Assigned To:  jmertic
 New Comment:

Which installer? From PHP5.2.6?


Previous Comments:


[2008-08-20 19:55:35] jperry at thepayrollpros dot com

Description:

This won't allow me to paste in a copy of the error message. Good
Grief. Now I have to go back and try to remember the message text. How
lame!

"There is a problem with this Windows Installer Package. A script
required for this install to complete could not be run. Contact your
support personnel or package vendor."






-- 
Edit this bug report at http://bugs.php.net/?id=45872&edit=1



#45875 [NEW]: Saving an array under a key that equals a local class can fail

2008-08-20 Thread philipp dot gerard at zeitdenken dot de
From: philipp dot gerard at zeitdenken dot de
Operating system: Linux
PHP version:  5.2.6
PHP Bug Type: Session related
Bug description:  Saving an array under a key that equals a local class can fail

Description:

Saving an array under a key that equals a local class can result in the 
array becoming an object.






Reproduce code:
---
# Parts of Zelos_Session.php:
class Zelos_Session {

/**
 * Stores data in the session storage
 *
 * @param string $module 
 * @param string $key 
 * @param array $arrayData 
 * @return void
 * @author Philipp Gérard
 */
public function save($module, $key, $arrayData){
$_SESSION[$module][$key] = $arrayData;
}

/**
 * Returns a specific part of the storage
 *
 * @param string $module 
 * @param string $key 
 * @return void
 * @author Philipp Gérard
 */
public function read($module, $key){
if(isset($_SESSION[$module][$key])){
return $_SESSION[$module][$key];
} else {
return false;
}
}
}

# Parts of Zelos_Auth.php:
class Zelos_Auth {

public function authenticate($authArray){
# (...)
$results= $qObj->fetchAll(PDO::FETCH_ASSOC);
if(count($results)>0){
// Valid user, log em' in
$results[0]["status"] = true;

$GLOBALS["Zelos_Session"]->save("Zelos_Auth","userdata",$results[0]);
return true;
} else {
return false;
}
}

/**
 * Returns true if the user is logged in
 *
 * @return void
 * @author Philipp Gérard
 */
public function isActive(){
$userdata = 
$GLOBALS["Zelos_Session"]->read("Zelos_Auth","userdata");
return ($userdata["status"] == true) ? true : false;
}

}

Expected result:

save() works, but after changing the page (refreshing or such) read() 
returns instead of

array(1) {
  ["Zelos_Auth"]=>
  array(1) {
["userdata"]=>
array(4) {
  ["id"]=>
  string(1) "1"
  ["username"]=>
  string(13) "username"
  ["usergroup"]=>
  string(1) "1"
  ["status"]=>
  bool(true)
}
  }
}






Actual result:
--
array(1) {
  ["Zelos_Auth"]=>
  &object(Zelos_Auth)#7 (2) {
["adapter:private"]=>
array(1) {
  ["table"]=>
  string(5) "users"
}
["credentials:private"]=>
array(5) {
  ["identifier"]=>
  string(2) "id"
  (...)
}
  }
}

Sometimes also an "incomplete class" is returned

array(1) {
  ["Zelos_Auth"]=>
  &object(__PHP_Incomplete_Class)#3 (3) {
["__PHP_Incomplete_Class_Name"]=>
string(10) "Zelos_Auth"
["adapter:private"]=>
array(1) {
  ["table"]=>
  string(5) "users"
}
["credentials:private"]=>
array(5) {
  ["identifier"]=>
  string(2) "id"
  ["username"]=>
  string(8) "username"
  ["password"]=>
  string(8) "password"
  ["encryption"]=>
  string(4) "sha1"
  ["optionals"]=>
  array(1) {
[0]=>
string(9) "usergroup"
  }
}
  }
}






-- 
Edit bug report at http://bugs.php.net/?id=45875&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45875&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45875&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45875&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45875&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45875&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45875&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45875&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45875&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45875&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45875&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45875&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45875&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45875&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45875&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45875&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45875&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45875&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45875&r=float
No Zend Extensions:   http://b

#45874 [Com]: socket_read odn't work

2008-08-20 Thread roberto at spadim dot com dot br
 ID:   45874
 Comment by:   roberto at spadim dot com dot br
 Reported By:  roberto at spadim dot com dot br
 Status:   Open
 Bug Type: Sockets related
 Operating System: linux
 PHP Version:  5.2.6
 New Comment:

linux: archlinux 
the source compile ok without error
binary work ok without segmentation fault
just socket dont' work


Previous Comments:


[2008-08-20 20:04:29] roberto at spadim dot com dot br

this don't work:
phpconfig="--prefix=/usr \
--sysconfdir=/etc/php \
--with-layout=GNU \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--disable-static \
--enable-shared \
"



phpextensions="--with-openssl=shared \
--with-zlib=shared \
--enable-bcmath=shared \
--with-bz2=shared \
--with-curl=shared \
--enable-dba=shared \
--without-db2 \
--without-db3 \
--with-db4=shared \
--with-gdbm=shared \
--enable-dbase=shared \
--enable-exif=shared \
--enable-ftp=shared \
--with-gd=shared \
--enable-gd-native-ttf \
--with-jpeg-dir=shared,/usr \
--with-png-dir=shared,/usr \
--with-gettext=shared \
--with-ldap=shared \
--with-mcrypt=shared \
--with-mysql=shared \
--with-mysql-sock=/tmp/mysql.sock \
--with-mysql=shared \
--with-mysqli=shared \
--with-ncurses=shared \
--enable-pdo=shared \
--with-pdo-mysql=shared \
--with-pdo-sqlite=shared \
--with-sqlite=shared \
--enable-shmop=shared \
--with-snmp=shared \
--enable-soap=shared \
--enable-sqlite-utf8=shared \
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--with-tidy=shared \
--with-xsl=shared \
--enable-zip=shared \
--enable-posix=shared \
--enable-sockets=shared \
--enable-xml \
--with-ttf=shared \
--enable-session=shared \
--with-regex=php \
--with-pcre-regex=/usr \
--enable-json=shared \
--with-iconv=shared \
--with-xmlrpc=shared \
--with-pspell=shared \
--with-freetype-dir=shared,/usr \
"


./configure ${phpconfig} \
--disable-cgi \
--with-readline \
--enable-pcntl \
--with-pear=/usr/share/pear \
${phpextensions}



[2008-08-20 20:03:12] roberto at spadim dot com dot br

this work:
phpconfig="--prefix=/usr \
--sysconfdir=/etc \
--with-layout=PHP \
--with-ttf \
--enable-mailparse \
--with-config-file-scan-dir=/etc \
--enable-bcmath=shared \
--enable-ftp=shared \
--enable-gd-native-ttf \
--enable-magic-quotes \
--enable-posix=shared \
--enable-session \
--enable-shared \
--enable-shmop=shared \
--enable-pdo=shared \
--enable-sqlite-utf8 \
--enable-sockets=shared \
--enable-xml \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--enable-sysvmsg=shared \
--enable-track-vars \
--enable-safe-mode \
--with-readline \
--with-bz2=shared \
--with-curl \
--with-mime-magic \
--with-freetype-dir=/usr \
--with-gd=shared \
--enable-exif \
--with-jpeg-dir=/usr \
--enable-dba \
--without-db2 \
--without-db3 \
--with-inifile \
--with-flatfile \
--with-gdbm \
--with-openssl \
--with-gettext \
--with-ldap=shared \
--with-mcrypt=shared,/usr \
--with-mysql-sock=/tmp/mysql.sock \
--with-pdo-mysql=shared,/usr \
--with-mysql=shared,/usr \
--with-sqlite=shared \
--with-pdo-sqlite=shared,/usr \
--with-pear=/usr/share/pear \
--with-dom \
--with-dom-xslt \
--with-xsl \
--with-png-dir=/usr \
--with-regex=php \
--with-zlib \
--enable-soap=shared \
--enable-mbstring=all \
--enable-mbregex \
--with-snmp=shared,/usr \
--enable-dbase \
--enable-pcntl"


./configure ${phpconfig} \
--disable-cgi \
--with-readline \
--enable-pcntl \
--with-pear=/usr/share/pear



[2008-08-20 20:01:43] roberto at spadim dot com dot br

Description:

i can't read from socket (

#45874 [Com]: socket_read odn't work

2008-08-20 Thread roberto at spadim dot com dot br
 ID:   45874
 Comment by:   roberto at spadim dot com dot br
 Reported By:  roberto at spadim dot com dot br
 Status:   Open
 Bug Type: Sockets related
 Operating System: linux
 PHP Version:  5.2.6
 New Comment:

this don't work:
phpconfig="--prefix=/usr \
--sysconfdir=/etc/php \
--with-layout=GNU \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--disable-static \
--enable-shared \
"



phpextensions="--with-openssl=shared \
--with-zlib=shared \
--enable-bcmath=shared \
--with-bz2=shared \
--with-curl=shared \
--enable-dba=shared \
--without-db2 \
--without-db3 \
--with-db4=shared \
--with-gdbm=shared \
--enable-dbase=shared \
--enable-exif=shared \
--enable-ftp=shared \
--with-gd=shared \
--enable-gd-native-ttf \
--with-jpeg-dir=shared,/usr \
--with-png-dir=shared,/usr \
--with-gettext=shared \
--with-ldap=shared \
--with-mcrypt=shared \
--with-mysql=shared \
--with-mysql-sock=/tmp/mysql.sock \
--with-mysql=shared \
--with-mysqli=shared \
--with-ncurses=shared \
--enable-pdo=shared \
--with-pdo-mysql=shared \
--with-pdo-sqlite=shared \
--with-sqlite=shared \
--enable-shmop=shared \
--with-snmp=shared \
--enable-soap=shared \
--enable-sqlite-utf8=shared \
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--with-tidy=shared \
--with-xsl=shared \
--enable-zip=shared \
--enable-posix=shared \
--enable-sockets=shared \
--enable-xml \
--with-ttf=shared \
--enable-session=shared \
--with-regex=php \
--with-pcre-regex=/usr \
--enable-json=shared \
--with-iconv=shared \
--with-xmlrpc=shared \
--with-pspell=shared \
--with-freetype-dir=shared,/usr \
"


./configure ${phpconfig} \
--disable-cgi \
--with-readline \
--enable-pcntl \
--with-pear=/usr/share/pear \
${phpextensions}


Previous Comments:


[2008-08-20 20:03:12] roberto at spadim dot com dot br

this work:
phpconfig="--prefix=/usr \
--sysconfdir=/etc \
--with-layout=PHP \
--with-ttf \
--enable-mailparse \
--with-config-file-scan-dir=/etc \
--enable-bcmath=shared \
--enable-ftp=shared \
--enable-gd-native-ttf \
--enable-magic-quotes \
--enable-posix=shared \
--enable-session \
--enable-shared \
--enable-shmop=shared \
--enable-pdo=shared \
--enable-sqlite-utf8 \
--enable-sockets=shared \
--enable-xml \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--enable-sysvmsg=shared \
--enable-track-vars \
--enable-safe-mode \
--with-readline \
--with-bz2=shared \
--with-curl \
--with-mime-magic \
--with-freetype-dir=/usr \
--with-gd=shared \
--enable-exif \
--with-jpeg-dir=/usr \
--enable-dba \
--without-db2 \
--without-db3 \
--with-inifile \
--with-flatfile \
--with-gdbm \
--with-openssl \
--with-gettext \
--with-ldap=shared \
--with-mcrypt=shared,/usr \
--with-mysql-sock=/tmp/mysql.sock \
--with-pdo-mysql=shared,/usr \
--with-mysql=shared,/usr \
--with-sqlite=shared \
--with-pdo-sqlite=shared,/usr \
--with-pear=/usr/share/pear \
--with-dom \
--with-dom-xslt \
--with-xsl \
--with-png-dir=/usr \
--with-regex=php \
--with-zlib \
--enable-soap=shared \
--enable-mbstring=all \
--enable-mbregex \
--with-snmp=shared,/usr \
--enable-dbase \
--enable-pcntl"


./configure ${phpconfig} \
--disable-cgi \
--with-readline \
--enable-pcntl \
--with-pear=/usr/share/pear



[2008-08-20 20:01:43] roberto at spadim dot com dot br

Description:

i can't read from socket (socket_read) with some ./configure options,
but with other ./configure options the socket_Read work
i will send the wrong one, and the right one


Reproduce code:
---
socket_read don't work with the first and work with the second

Expecte

#45874 [Com]: socket_read odn't work

2008-08-20 Thread roberto at spadim dot com dot br
 ID:   45874
 Comment by:   roberto at spadim dot com dot br
 Reported By:  roberto at spadim dot com dot br
 Status:   Open
 Bug Type: Sockets related
 Operating System: linux
 PHP Version:  5.2.6
 New Comment:

this work:
phpconfig="--prefix=/usr \
--sysconfdir=/etc \
--with-layout=PHP \
--with-ttf \
--enable-mailparse \
--with-config-file-scan-dir=/etc \
--enable-bcmath=shared \
--enable-ftp=shared \
--enable-gd-native-ttf \
--enable-magic-quotes \
--enable-posix=shared \
--enable-session \
--enable-shared \
--enable-shmop=shared \
--enable-pdo=shared \
--enable-sqlite-utf8 \
--enable-sockets=shared \
--enable-xml \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--enable-sysvmsg=shared \
--enable-track-vars \
--enable-safe-mode \
--with-readline \
--with-bz2=shared \
--with-curl \
--with-mime-magic \
--with-freetype-dir=/usr \
--with-gd=shared \
--enable-exif \
--with-jpeg-dir=/usr \
--enable-dba \
--without-db2 \
--without-db3 \
--with-inifile \
--with-flatfile \
--with-gdbm \
--with-openssl \
--with-gettext \
--with-ldap=shared \
--with-mcrypt=shared,/usr \
--with-mysql-sock=/tmp/mysql.sock \
--with-pdo-mysql=shared,/usr \
--with-mysql=shared,/usr \
--with-sqlite=shared \
--with-pdo-sqlite=shared,/usr \
--with-pear=/usr/share/pear \
--with-dom \
--with-dom-xslt \
--with-xsl \
--with-png-dir=/usr \
--with-regex=php \
--with-zlib \
--enable-soap=shared \
--enable-mbstring=all \
--enable-mbregex \
--with-snmp=shared,/usr \
--enable-dbase \
--enable-pcntl"


./configure ${phpconfig} \
--disable-cgi \
--with-readline \
--enable-pcntl \
--with-pear=/usr/share/pear


Previous Comments:


[2008-08-20 20:01:43] roberto at spadim dot com dot br

Description:

i can't read from socket (socket_read) with some ./configure options,
but with other ./configure options the socket_Read work
i will send the wrong one, and the right one


Reproduce code:
---
socket_read don't work with the first and work with the second

Expected result:

work with first and second configurations






-- 
Edit this bug report at http://bugs.php.net/?id=45874&edit=1



#45874 [NEW]: socket_read odn't work

2008-08-20 Thread roberto at spadim dot com dot br
From: roberto at spadim dot com dot br
Operating system: linux
PHP version:  5.2.6
PHP Bug Type: Sockets related
Bug description:  socket_read odn't work

Description:

i can't read from socket (socket_read) with some ./configure options, but
with other ./configure options the socket_Read work
i will send the wrong one, and the right one


Reproduce code:
---
socket_read don't work with the first and work with the second

Expected result:

work with first and second configurations


-- 
Edit bug report at http://bugs.php.net/?id=45874&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45874&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45874&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45874&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45874&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45874&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45874&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45874&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45874&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45874&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45874&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45874&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45874&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45874&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45874&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45874&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45874&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45874&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45874&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45874&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45874&r=mysqlcfg



#45873 [NEW]: feature request

2008-08-20 Thread firealwaysworks at gmail dot com
From: firealwaysworks at gmail dot com
Operating system: linux
PHP version:  5.2.6
PHP Bug Type: Feature/Change Request
Bug description:  feature request 

Description:

I beg you great architects of php,  please hear this. 

APC(http://us.php.net/apc) will be added to the core of PHP 6
(http://www.php.net/~derick/meeting-notes.html), 
APD(http://us.php.net/apd) should be added as well.  PHP needs more
debugging features such as hooking.  In the latest version of PHP5 there is
NO WORKING METHOD WHAT SO EVER to hook a function call!

If you do not hear me,  I will start a petition.

Thanks,
Michael  


-- 
Edit bug report at http://bugs.php.net/?id=45873&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45873&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45873&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45873&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45873&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45873&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45873&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45873&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45873&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45873&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45873&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45873&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45873&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45873&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45873&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45873&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45873&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45873&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45873&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45873&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45873&r=mysqlcfg



#45871 [NEW]: session.gc_max_lifetime max value?

2008-08-20 Thread brett at pineconehill dot com
From: brett at pineconehill dot com
Operating system: Debian Etch/Lenny (2 machines)
PHP version:  5.2.6
PHP Bug Type: Session related
Bug description:  session.gc_max_lifetime max value?

Description:

While debugging session time out issues, I set the
"session.gc_maxlifetime' option in php.ini to 15778463 (6 months)  In doing
so, after restarting the server, of course, I was not able to log on to my
test site at all.  This was the only setting that was changed.  

I lowered the value until I reached a range that would allow logins again.
 Lowering the value to 240 allowed a log in to occur.  It seems that
somewhere around the 250 range is when it stopped permitting logins.

Logins are authenticated via a MySQL database.

It appears as if an unsigned value is accidentally being treated as a
signed one.

Reproduce code:
---
session.gc_maxlifetime = 15778463

Expected result:

Logins would be allowed, and sessions would not expire within 6 months, as
part of session troubleshooting.


-- 
Edit bug report at http://bugs.php.net/?id=45871&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45871&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45871&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45871&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45871&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45871&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45871&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45871&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45871&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45871&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45871&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45871&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45871&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45871&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45871&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45871&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45871&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45871&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45871&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45871&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45871&r=mysqlcfg



#45870 [NEW]: Floating point exception/opt/apache2/bin/httpd -l

2008-08-20 Thread solo at krovatka dot su
From: solo at krovatka dot su
Operating system: SuSe ES 10 2.6.16.21-0.8-bigsmp
PHP version:  5.2CVS-2008-08-20 (snap)
PHP Bug Type: Compile Failure
Bug description:  Floating point exception/opt/apache2/bin/httpd -l

Description:

I have apache compilled and working version httpd-2.2.8.
and perl  v5.8.8 
when I'm trying to compile php I'm getting the following error:
Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using
--with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is
displayed)
The output of /opt/apache2/bin/apxs follows:
sh: line 1:  3074 Floating point exception/opt/apache2/bin/httpd -l
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/opt/apache2/bin/httpd'..
configure: error: Aborting
make: *** [php-5.2.5/Makefile] Error 1

My makefile contains following keys:
$(PHP_MAKEFILE): Makefile
@cd $(PHP_SRC_DIR) \
&& CFLAGS=-s ./configure \
--with-libdir=$(LIBDIR) \
--with-apxs2=$(APXS)\
--with-oci8=$(ORACLE_HOME)  \
--with-pdo-oci=$(ORACLE_HOME)   \
--disable-cgi   \
--enable-mbstring   \
--enable-gd-native-ttf  \
--enable-ftp\
--enable-sockets\
--with-curl \
--with-xsl  \
--with-iconv\
--with-zlib \
--with-gd   \
--with-freetype-dir

I've googled 100 places already but still can't find anything similar.
Will be very glad if I get any hint how to resolve this.


-- 
Edit bug report at http://bugs.php.net/?id=45870&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45870&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45870&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45870&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45870&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45870&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45870&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45870&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45870&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45870&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45870&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45870&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45870&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45870&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45870&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45870&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45870&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45870&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45870&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45870&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45870&r=mysqlcfg



#45869 [Opn->Bgs]: Debugging Features in PHP 5/6

2008-08-20 Thread pajoye
 ID:   45869
 Updated by:   [EMAIL PROTECTED]
 Reported By:  firealwaysworks at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Feature/Change Request
 Operating System: Linux
 PHP Version:  5.2.6
 New Comment:

runkit and APD are both PECL projects, report issues or wishes there
:)

xdebug is actively maintained and is a very good debugger (works with
5.x).

no bug > bogus.


Previous Comments:


[2008-08-20 19:10:37] firealwaysworks at gmail dot com

Description:

Some really awesome debugging tools have been written for the PHP
platform,  unfortunately they no longer work in the latest versions of
PHP.  I behoove you great builders of PHP to add awesome debugging
features into the very core of PHP. 

The feature I need specifically is the ability to hook any function in
php:
http://us3.php.net/manual/en/function.runkit-function-rename.php
http://us3.php.net/manual/en/function.rename-function.php  

Runkit has some awesome features,  but it only works with PHP 4 and has
been abandoned for 4 years.   APD is 2 years old and doesn't seem to
work with my latest build of PHP5.






-- 
Edit this bug report at http://bugs.php.net/?id=45869&edit=1



#45822 [Com]: Invalid value passed to strtotime() causes endless loop

2008-08-20 Thread krimpet at toolserver dot org
 ID:   45822
 Comment by:   krimpet at toolserver dot org
 Reported By:  matt at neimeyer dot org
 Status:   Verified
 Bug Type: Date/time related
 Operating System: *
 PHP Version:  5.2CVS, 5.3CVS, 6CVS (2008-08-14)
 New Comment:

I can confirm this bug, and it's not limited to Windows platforms. 'php
-r "strtotime('+1 days');"' crashes my Linux laptop, for
example.

This bug is particularly dire where user input is fed to directly to
strtotime(), as it poses a DoS risk - for example, we use strtotime() in
MediaWiki to format times specified by the user. (See
.)


Previous Comments:


[2008-08-14 17:50:50] [EMAIL PROTECTED]

It hangs in this loop:

#1  0x004a7f5b in do_normalize (time=0x7bf1ed0) at
/home/jani/php-5.3CVS/ext/date/lib/tm2unixtime.c:166
166 do {} while (do_range_limit_days(&time->y, &time->m,
&time->d));



[2008-08-14 17:41:19] amelek32 at gmail dot com

http://bugs.php.net/?id=45822&edit=1



#45869 [NEW]: Debugging Features in PHP 5/6

2008-08-20 Thread firealwaysworks at gmail dot com
From: firealwaysworks at gmail dot com
Operating system: Linux
PHP version:  5.2.6
PHP Bug Type: Feature/Change Request
Bug description:  Debugging Features in PHP 5/6

Description:

Some really awesome debugging tools have been written for the PHP
platform,  unfortunately they no longer work in the latest versions of PHP.
 I behoove you great builders of PHP to add awesome debugging features into
the very core of PHP. 

The feature I need specifically is the ability to hook any function in
php:
http://us3.php.net/manual/en/function.runkit-function-rename.php
http://us3.php.net/manual/en/function.rename-function.php  

Runkit has some awesome features,  but it only works with PHP 4 and has
been abandoned for 4 years.   APD is 2 years old and doesn't seem to work
with my latest build of PHP5.


-- 
Edit bug report at http://bugs.php.net/?id=45869&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45869&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45869&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45869&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45869&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45869&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45869&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45869&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45869&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45869&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45869&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45869&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45869&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45869&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45869&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45869&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45869&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45869&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45869&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45869&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45869&r=mysqlcfg



#45868 [Opn->Bgs]: Unable to load dynamic libary

2008-08-20 Thread jani
 ID:   45868
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ruben1010 at live dot nl
-Status:   Open
+Status:   Bogus
 Bug Type: Dynamic loading
 Operating System: Windows XP Pro (SP2)
 PHP Version:  5.2.6
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:


[2008-08-20 18:12:43] ruben1010 at live dot nl

Description:

I'm setting up a website 0n my local computer using apace and php 5.3.6
(win32 binary) i've followd a documentaition on a other site andi get
the following errors:

- a lot of dll files could not be loaded but they are in the right
place

- a lot of modules could not be loaded 

see images in the folowing links
(http://as1studios.gethost.nl/php1.jpg)
(http://as1studios.gethost.nl/php2.jpg)


Reproduce code:
---
php -v

Expected result:

PHP 5.2.6 (cli) (built: Jan 11 2006 16:40:00)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

(Something like This)

Actual result:
--
see links in description for actual result





-- 
Edit this bug report at http://bugs.php.net/?id=45868&edit=1



#45868 [NEW]: Unable to load dynamic libary

2008-08-20 Thread ruben1010 at live dot nl
From: ruben1010 at live dot nl
Operating system: Windows XP Pro (SP2)
PHP version:  5.2.6
PHP Bug Type: Dynamic loading
Bug description:  Unable to load dynamic libary

Description:

I'm setting up a website 0n my local computer using apace and php 5.3.6
(win32 binary) i've followd a documentaition on a other site andi get the
following errors:

- a lot of dll files could not be loaded but they are in the right place

- a lot of modules could not be loaded 

see images in the folowing links
(http://as1studios.gethost.nl/php1.jpg)
(http://as1studios.gethost.nl/php2.jpg)


Reproduce code:
---
php -v

Expected result:

PHP 5.2.6 (cli) (built: Jan 11 2006 16:40:00)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

(Something like This)

Actual result:
--
see links in description for actual result

-- 
Edit bug report at http://bugs.php.net/?id=45868&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45868&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45868&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45868&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45868&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45868&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45868&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45868&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45868&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45868&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45868&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45868&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45868&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45868&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45868&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45868&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45868&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45868&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45868&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45868&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45868&r=mysqlcfg



#45867 [NEW]: get_var_dump();

2008-08-20 Thread bholbrook at tech-monkeys dot org
From: bholbrook at tech-monkeys dot org
Operating system: any
PHP version:  5.2.6
PHP Bug Type: Feature/Change Request
Bug description:  get_var_dump();

Description:

Add function get_var_dump() to relieve the inconveniences associated with
var_dump() automatically outputting.

Reproduce code:
---
//for expected result
$getDump = get_var_dump($_GET);
mail("[EMAIL PROTECTED]", "GET dump from [EMAIL PROTECTED]", $getDump);
header("content-type:{$_GET['type']}");

//for actual result
var_dump($_GET);
header("content-type:{$_GET['type']}");

//can be emulated with, but cumbersome, and not always enabled on remote
hosts
ob_start();
var_dump($_GET);
$getDump = ob_get_contents();
ob_end_clean();
mail("[EMAIL PROTECTED]", "GET dump from [EMAIL PROTECTED]", $getDump);
header("content-type:{$_GET['type']}");

Expected result:

1) No error.
2) Ability to send / manipulate (convert to json for ajax apps) var dump
data outside of php

Actual result:
--
1) Header fails
2) var_dump must be seen as processed by tester and cannot be collected in
a beta environment.

-- 
Edit bug report at http://bugs.php.net/?id=45867&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45867&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45867&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45867&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45867&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=45867&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=45867&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=45867&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=45867&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=45867&r=support
Expected behavior:http://bugs.php.net/fix.php?id=45867&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=45867&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=45867&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45867&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45867&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45867&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=45867&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=45867&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45867&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=45867&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=45867&r=mysqlcfg



#38915 [Com]: Apache: system() (and similar) don't cleanup opened handles of Apache

2008-08-20 Thread peterspoon at abv dot bg
 ID:   38915
 Comment by:   peterspoon at abv dot bg
 Reported By:  dimmoborgir at gmail dot com
 Status:   Open
 Bug Type: Feature/Change Request
 Operating System: UNIX
 PHP Version:  5.2.2, 4.4.7
 New Comment:

SO, can this problem be fixed within PHP/Apache or it cannot?
Do you think using funny scripts started by cron is a solution?


Previous Comments:


[2008-05-27 15:12:09] jeroen at unfix dot org

My solution to this very annoying issue (especially when Apache is
reloaded and the from PHP spawned app is still running and your
webserver thus simply dies off as the apache processes are gone, but the
spawned app keeps port 80 etc open for you, thus making Apache never
start again...

http://unfix.org/~jeroen/archive/closedexec.c

Compile: cc -o /usr/bin/closedexec closedexec.c

Just call it like: system("/usr/bin/closedexec /path/to/exe arg arg
arg") or whatever call you where using in PHP.

It first closes all sockets !1|!2 (stdout/stderr), setsid()'s, forks,
and then execv's the args given, doing a waitpid() in the other thread
and killing the process when it runs longer than 5 minutes.



[2008-04-30 00:06:18] support at ppnhosting dot com

5.2.3
also experiencing this 'bug' to the point of having to manually kill
Exim to just Apache restarted.. the mail() function is suffering from
the same problem. It is very annoying to see Apache failing to 
restart, because the MTA (exim via sendmail in our case) is already 
listening on port *:80



[2008-03-07 10:45:53] martin at activevb dot de

Will this ever be fixed... or shall we better rewrite our 3 lines
of PHP code in Perl? :-|

Is it possible to use apr_proc_create() and apr_pool_cleanup_for_exec()
directly from PHP source code without patching PHP?



[2008-02-19 03:59:36] anomie at users dot sf dot net

On 29 Jan 6:20pm UTC, adrian dot rollett at unt dot edu wrote:
>
> For those of you that found this page while looking for info on why
> exim is blocking port 80 after inheriting apache's file descriptors,
> I believe I found the reason for this. It seems that exim will only
> work with a maximum of 1000 file descriptors, (or 256 on older
> systems) after which point it will hang, consuming all available cpu
> cycles, and preventing apache from restarting.

You should submit more detailed information on this to Exim's bug
tracking system so it has a chance of being fixed.


As far as this ridiculous bug, I've been working around it by using a
small program that closes all FDs above 2 (either via the F_CLOSEM
fcntl, reading /proc/self/fd, or just blindly calling close for every
possible fd) and then execs the real program.



[2008-01-29 18:20:39] adrian dot rollett at unt dot edu

For those of you that found this page while looking for info on why
exim 
is blocking port 80 after inheriting apache's file descriptors, I 
believe I found the reason for this. It seems that exim will only work

with a maximum of 1000 file descriptors, (or 256 on older systems)
after 
which point it will hang, consuming all available cpu cycles, and 
preventing apache from restarting. The only possible solutions I have 
found:

1. modify the source, and re-compile exim with a higher file descriptor

limit.
2. run a cron job at regular intervals to search for hung exim
processes 
and kill them.
3. switch MUAs. (postfix may fail more gracefully, but I haven't tried

this yet)



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/38915

-- 
Edit this bug report at http://bugs.php.net/?id=38915&edit=1



#24359 [Com]: Function strtolower

2008-08-20 Thread c dot leborgne at yahoo dot fr
 ID:   24359
 Comment by:   c dot leborgne at yahoo dot fr
 Reported By:  daniel at adsdigita dot com dot br
 Status:   No Feedback
 Bug Type: Strings related
 Operating System: Windows / Linux
 PHP Version:  4.3.3
 New Comment:

I'm french on unix and PHP 4.2.3
 and I got the same bug whith this function

but, it works if you do :

$val = " NUMÉRO ";
$tab=array("É" => "é", ..);
$str =  strtolower(strtr($val,$tab));

voila c est fini :)


Previous Comments:


[2003-09-18 14:46:36] [EMAIL PROTECTED]

Verified with 4.3.3 and german umlauts:

strtolower("SÜDSTADT") results in "sÜdstadt"



[2003-07-02 22:17:27] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.





[2003-06-27 10:05:31] [EMAIL PROTECTED]

Works fine here:

[EMAIL PROTECTED] derick]$ php

é

Did you select the correct locale with setlocale() ?



[2003-06-27 09:54:37] daniel at adsdigita dot com dot br

Description:

So,

I leave in Brazil and in our language we have
de caracter "É" (means IS in English), the matter of
fact is: strtolower couldn't work in this caracter ("É") to change it
in "é"




Reproduce code:
---
//Example:
echo strtolower("É"); 


Expected result:

é

Actual result:
--
É





-- 
Edit this bug report at http://bugs.php.net/?id=24359&edit=1



#30764 [NoF->Bgs]: printf + zero fill + negative number = extra null character on windows xp

2008-08-20 Thread pajoye
 ID:   30764
 Updated by:   [EMAIL PROTECTED]
 Reported By:  php at arantius dot com
-Status:   No Feedback
+Status:   Bogus
 Bug Type: Output Control
 Operating System: Windows XP
 PHP Version:  4.3.9
 New Comment:

Can't reproduce with 5.x and see the manual about formatting numbers.


Previous Comments:


[2008-08-20 07:32:00] babu at ransysbios dot com

i am displaying percentage like 3.5%, 44.45% , 55.44%, 66.1 now i want
dispaly this result in to 3.50% and 66.1%



[2005-01-28 01:00:04] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2005-01-19 03:25:12] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


And try this script with the PHP CLI binary:







[2004-11-11 21:06:19] php at arantius dot com

Description:

When using printf, zero fill, floats, and negative numbers, PHP 4.3.9
on Windows XP Pro SP1 generates null characters at the end of the number
that should not be there.
Passing a negative number, i.e. -1, into the format string "%0.2f" will
give an invalid result, i.e. "-1.00[NULL]" where [NULL] is the 0th byte.

Reproduce code:
---
", 1.51555); //ok
printf("%0.2f", -1.51555);//broken
printf("%0.2f", -1);  //broken
printf("%.2f", -1.5); //ok
printf("%.2f", -1.51555); //ok
printf("%0.2f", 1.51555); //ok
?>

Expected result:

I expect "-1.00" or appropriately rounded values with no trailing null
bytes.

Actual result:
--
Cannot paste output, it is truncated at the first null byte.





-- 
Edit this bug report at http://bugs.php.net/?id=30764&edit=1



#30764 [Com]: printf + zero fill + negative number = extra null character on windows xp

2008-08-20 Thread babu at ransysbios dot com
 ID:   30764
 Comment by:   babu at ransysbios dot com
 Reported By:  php at arantius dot com
 Status:   No Feedback
 Bug Type: Output Control
 Operating System: Windows XP
 PHP Version:  4.3.9
 New Comment:

i am displaying percentage like 3.5%, 44.45% , 55.44%, 66.1 now i want
dispaly this result in to 3.50% and 66.1%


Previous Comments:


[2005-01-28 01:00:04] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2005-01-19 03:25:12] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


And try this script with the PHP CLI binary:







[2004-11-11 21:06:19] php at arantius dot com

Description:

When using printf, zero fill, floats, and negative numbers, PHP 4.3.9
on Windows XP Pro SP1 generates null characters at the end of the number
that should not be there.
Passing a negative number, i.e. -1, into the format string "%0.2f" will
give an invalid result, i.e. "-1.00[NULL]" where [NULL] is the 0th byte.

Reproduce code:
---
", 1.51555); //ok
printf("%0.2f", -1.51555);//broken
printf("%0.2f", -1);  //broken
printf("%.2f", -1.5); //ok
printf("%.2f", -1.51555); //ok
printf("%0.2f", 1.51555); //ok
?>

Expected result:

I expect "-1.00" or appropriately rounded values with no trailing null
bytes.

Actual result:
--
Cannot paste output, it is truncated at the first null byte.





-- 
Edit this bug report at http://bugs.php.net/?id=30764&edit=1