#35560 [Asn->Bgs]: Failure on list($a, $b) = $b

2005-12-11 Thread dmitry
 ID:   35560
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ktk at bigfoot dot com
-Status:   Assigned
+Status:   Bogus
 Bug Type: Arrays related
 Operating System: GNU/Linux
 PHP Version:  5.1.1
 Assigned To:  dmitry
 New Comment:

Duplicated. See http://bugs.php.net/bug.php?id=35277&edit=1


Previous Comments:


[2005-12-05 21:39:06] [EMAIL PROTECTED]

Dmitry, is there something we can do about it?
It definitely looks wrong to me, but somehow it works in 5.0.



[2005-12-05 21:27:21] ktk at bigfoot dot com

Description:

In PHP 5.1 the list() operator fails to correctly assign values to
variables that appear left of the variable that is used as the source
array, if the source variable is itself listed as one of the variables
to be assigned.

list($a, $b) = $b; fails to properly assign $a.

PHP 5.0 and earlier have no problem with this syntax.


Reproduce code:
---
$c = array("Apple", "Banana", "Pear", "Grape", "Orange");
list($a, $b, $c, $d, $e) = $c;
var_dump($a);
var_dump($b);
var_dump($c);
var_dump($d);
var_dump($e);




Expected result:

string(5) "Apple"
string(6) "Banana"
string(4) "Pear"
string(5) "Grape"
string(6) "Orange"

Actual result:
--
string(1) "P"
string(1) "e"
string(4) "Pear"
string(5) "Grape"
string(6) "Orange"





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


#35637 [Opn->Fbk]: Mysqli "Lost connection to MySQL server during query"

2005-12-11 Thread sniper
 ID:   35637
 Updated by:   [EMAIL PROTECTED]
 Reported By:  realbenzin at inbox dot lv
-Status:   Open
+Status:   Feedback
 Bug Type: MySQLi related
 Operating System: Win XP SP2
 PHP Version:  5.1.1
 New Comment:

How about showing how you defined the procedure?


Previous Comments:


[2005-12-12 07:11:29] realbenzin at inbox dot lv

It is not the same! Because I am calling the sp twice and sp
contains only one select not two like in that other "bug". PS i red
about that multi query, but that won`t help me...



[2005-12-11 23:30:56] [EMAIL PROTECTED]

Duplicate of bug #32882.



[2005-12-11 23:22:07] realbenzin at inbox dot lv

5.0.15



[2005-12-11 23:12:55] [EMAIL PROTECTED]

What mysql version are you connecting to?



[2005-12-11 22:49:42] realbenzin at inbox dot lv

Description:

When mysql stored procedures are called twice in a row I get  mysqli
error "Lost connection to MySQL server during query", it does not
happen if I do it once or in row with simple sql statements... Mysql is
ok, and no free_result is helping...

Reproduce code:
---
$db = new mysqli('localhost','root','qwerty','VT_SYS');
$u = $db->query("call spRazList(NULL);");
$u = $db->query("call spRazList(NULL);") or die('asdasdad'.$db->error);

Expected result:

That stored procedure would execute twice with no errors.

Actual result:
--
Mysqli error "Lost connection to MySQL server during query"





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


#35641 [Opn->Bgs]: not consistent __set method

2005-12-11 Thread sniper
 ID:   35641
 Updated by:   [EMAIL PROTECTED]
 Reported By:  khad at landak dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: linux 2.6
 PHP Version:  5.1.1
 New Comment:

No.


Previous Comments:


[2005-12-12 04:52:17] khad at landak dot com

Description:

in prior 5.1, it is allowed to do: 
class MyClass { 
public function __set($key, &$value) {} 
} 
$c = new MyClass(); 
$c->d=10; 

in 5.1 up: 
that code result this: 
Fatal error: Couldn't execute method MyClass::__set in Unknown on line
0 

I have submit this bug. My question is, is it possible to assign as
reference using setter method ? 



Reproduce code:
---
class MyClass { 
public function __set($key, &$value) {} 
} 
$c = new MyClass(); 
$c->d=10; 






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


#35639 [Opn->Bgs]: mysqli_connect errors crash apache

2005-12-11 Thread sniper
 ID:   35639
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jackmcslay at hotmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Apache related
 Operating System: WinXP
 PHP Version:  5.1.1
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.




Previous Comments:


[2005-12-12 01:59:37] jackmcslay at hotmail dot com

Description:

if I input any valid values into mysqli_connect (object ot not) it will
connect ok
however if I try putting anything invalid (either username, host,
password or database) it will spend some time trying to load and then a
crash message from apache (1.3.33) will appear instead of just giving an
error message






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


#35637 [Bgs->Opn]: Mysqli "Lost connection to MySQL server during query"

2005-12-11 Thread realbenzin at inbox dot lv
 ID:   35637
 User updated by:  realbenzin at inbox dot lv
 Reported By:  realbenzin at inbox dot lv
-Status:   Bogus
+Status:   Open
 Bug Type: MySQLi related
 Operating System: Win XP SP2
 PHP Version:  5.1.1
 New Comment:

not bogus


Previous Comments:


[2005-12-12 07:11:29] realbenzin at inbox dot lv

It is not the same! Because I am calling the sp twice and sp
contains only one select not two like in that other "bug". PS i red
about that multi query, but that won`t help me...



[2005-12-11 23:30:56] [EMAIL PROTECTED]

Duplicate of bug #32882.



[2005-12-11 23:22:07] realbenzin at inbox dot lv

5.0.15



[2005-12-11 23:12:55] [EMAIL PROTECTED]

What mysql version are you connecting to?



[2005-12-11 22:49:42] realbenzin at inbox dot lv

Description:

When mysql stored procedures are called twice in a row I get  mysqli
error "Lost connection to MySQL server during query", it does not
happen if I do it once or in row with simple sql statements... Mysql is
ok, and no free_result is helping...

Reproduce code:
---
$db = new mysqli('localhost','root','qwerty','VT_SYS');
$u = $db->query("call spRazList(NULL);");
$u = $db->query("call spRazList(NULL);") or die('asdasdad'.$db->error);

Expected result:

That stored procedure would execute twice with no errors.

Actual result:
--
Mysqli error "Lost connection to MySQL server during query"





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


#35637 [Bgs]: Mysqli "Lost connection to MySQL server during query"

2005-12-11 Thread realbenzin at inbox dot lv
 ID:   35637
 User updated by:  realbenzin at inbox dot lv
 Reported By:  realbenzin at inbox dot lv
 Status:   Bogus
 Bug Type: MySQLi related
 Operating System: Win XP SP2
 PHP Version:  5.1.1
 New Comment:

It is not the same! Because I am calling the sp twice and sp
contains only one select not two like in that other "bug". PS i red
about that multi query, but that won`t help me...


Previous Comments:


[2005-12-11 23:30:56] [EMAIL PROTECTED]

Duplicate of bug #32882.



[2005-12-11 23:22:07] realbenzin at inbox dot lv

5.0.15



[2005-12-11 23:12:55] [EMAIL PROTECTED]

What mysql version are you connecting to?



[2005-12-11 22:49:42] realbenzin at inbox dot lv

Description:

When mysql stored procedures are called twice in a row I get  mysqli
error "Lost connection to MySQL server during query", it does not
happen if I do it once or in row with simple sql statements... Mysql is
ok, and no free_result is helping...

Reproduce code:
---
$db = new mysqli('localhost','root','qwerty','VT_SYS');
$u = $db->query("call spRazList(NULL);");
$u = $db->query("call spRazList(NULL);") or die('asdasdad'.$db->error);

Expected result:

That stored procedure would execute twice with no errors.

Actual result:
--
Mysqli error "Lost connection to MySQL server during query"





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


#35629 [Asn->Csd]: http:// wrapper crashes with redirections

2005-12-11 Thread iliaa
 ID:   35629
 Updated by:   [EMAIL PROTECTED]
 Reported By:  marius at joy2share dot com
-Status:   Assigned
+Status:   Closed
 Bug Type: Filesystem function related
 Operating System: *
 PHP Version:  5CVS-2005-12-12 (cvs)
 Assigned To:  iliaa
 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:


[2005-12-11 23:20:43] [EMAIL PROTECTED]

Ilia, it's your patch
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/http_fopen_wrapper.c?r1=1.102&r2=1.103&diff_format=u
causing it.

The following fix did the trick: 
http://tony2001.phpclub.net/dev/tmp/bug35629.diff



[2005-12-11 23:14:56] [EMAIL PROTECTED]

Verified and assigned to the streams mastah.



[2005-12-11 22:22:04] marius at joy2share dot com

gdb backtrace :

(gdb) bt
#0  0xb7d77218 in php_stream_url_wrap_http_ex (wrapper=0x81ea440,
path=0xbfbbcbe4
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-4279985-3370440?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
redirect_max=19, header_init=0,
__php_stream_call_depth=0, __zend_filename=0xb7eaed18
"/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c",
__zend_lineno=643, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at
/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:648
#1  0xb7d77132 in php_stream_url_wrap_http_ex (wrapper=0x81ea440,
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=Variable "options" is not available.
) at /share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:643
#2  0xb7d786f7 in php_stream_url_wrap_http (wrapper=0x81ea440,
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
__php_stream_call_depth=1,
__zend_filename=0xb7eb478c
"/share2/php5.1-200512111530/main/streams/streams.c",
__zend_lineno=1773,
__zend_orig_filename=0xb7ea77d4
"/share2/php5.1-200512111530/ext/standard/file.c",
__zend_orig_lineno=701)
at
/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:703
#3  0xb7da9610 in _php_stream_open_wrapper_ex (
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
__php_stream_call_depth=0,
__zend_filename=0xb7ea77d4
"/share2/php5.1-200512111530/ext/standard/file.c", __zend_lineno=701,
__zend_orig_filename=Variable "__zend_orig_filename" is not available.
)
at /share2/php5.1-200512111530/main/streams/streams.c:1771
#4  0xb7d2be29 in zif_file (ht=1, return_value=0x823b824,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
at /share2/php5.1-200512111530/ext/standard/file.c:701
#5  0xb7dfeba6 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfbbd740)
at /share2/php5.1-200512111530/Zend/zend_vm_execute.h:192
#6  0xb7dfe1a1 in execute (op_array=0x8233f2c) at
/share2/php5.1-200512111530/Zend/zend_vm_execute.h:92
#7  0xb7ddc205 in zend_execute_scripts (type=8, retval=Variable
"retval" is not available.
) at /share2/php5.1-200512111530/Zend/zend.c:1101
#8  0xb7d9386b in php_execute_script (primary_file=0xbfbbfa84) at
/share2/php5.1-200512111530/main/main.c:1720
#9  0xb7e7f153 in php_handler (r=0x8219200) at
/share2/php5.1-200512111530/sapi/apache2handler/sapi_apache2.c:584
#10 0x08076c6c in ap_run_handler ()
#11 0x080795f0 in ap_invoke_handler ()
#12 0x080997de in ap_process_request ()
#13 0x080961cf in ap_process_http_connection ()
#14 0x0807dedb in ap_run_process_connection ()
#15 0x0807e257 in ap_process_connection ()
#16 0x080b64f5 in child_main ()
#17 0x080b6814 in make_child ()
---Type  to continue, or q  to quit---
#18 0x080b6f7e in ap_mpm_run ()
#19 0x080624df in main ()
(gdb)



[2005-12-11 04:23:15] marius at joy2share dot com

Description:

[Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal
Segmentation fault (11)

The script below worked fine with PHP 5.0.5.

I have : Apache/2.2.0 PHP/5.1.1 configured on my system.

Reproduce code:
---
http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";;
$f = file($link);
?>

Expected 

#35641 [NEW]: not consistent __set method

2005-12-11 Thread khad at landak dot com
From: khad at landak dot com
Operating system: linux 2.6
PHP version:  5.1.1
PHP Bug Type: Scripting Engine problem
Bug description:  not consistent __set method

Description:

in prior 5.1, it is allowed to do: 
class MyClass { 
public function __set($key, &$value) {} 
} 
$c = new MyClass(); 
$c->d=10; 

in 5.1 up: 
that code result this: 
Fatal error: Couldn't execute method MyClass::__set in Unknown on line 0 

I have submit this bug. My question is, is it possible to assign as
reference using setter method ? 



Reproduce code:
---
class MyClass { 
public function __set($key, &$value) {} 
} 
$c = new MyClass(); 
$c->d=10; 


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


#35640 [NEW]: configure thinks in conjunction with java that sablot 1.0.1 is older than 0.96

2005-12-11 Thread systemadministrator at internet dot lu
From: systemadministrator at internet dot lu
Operating system: SuSE Linux 9.3
PHP version:  4.4.1
PHP Bug Type: XSLT related
Bug description:  configure thinks in conjunction with java that sablot 1.0.1 
is older than 0.96

Description:

always when i try to configure php with java, it exits saying:

checking for Sablotron libraries in the default path... found in /usr
checking for sablot-config... found
checking for Sablotron version... configure: error: Sablotron version 0.96
or greater required.

but i do have installed 1.0.1 on SuSE 9.3 :
newsrv:~/install/php-4.4.1 # /usr/bin/sablot-config --version
1.0.1
newsrv:~/install/php-4.4.1 #

Reproduce code:
---
./configure --enable-force-cgi-redirect --without-mm --enable-fastcgi
--prefix=/var/fastcgi/php4.1.1 \
--with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar \
--with-curl --with-dom --with-dom-xslt --with-dom-exslt \
--enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir \
--with-zlib-dir --with-freetype-dir --with-iconv \
--with-imap --with-imap-ssl --enable-mbstring --with-mcal=/usr \
--with-mcrypt --with-mhash --with-unixODBC=/usr --with-swf=/usr/lib/libswf
\
--enable-wddx --enable-xml --enable-xslt --with-xslt-sablot --with-zip \
--with-pear --enable-memory-limit --enable-zend-multibyte \
--with-mysql --with-pgsql --with-java=/usr/java/jdk1.5.0_06

When i dont use java, there is no sablot error message:
./configure --enable-force-cgi-redirect --without-mm --enable-fastcgi
--prefix=/var/fastcgi/php4.1.1 \
--with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar \
--with-curl --with-dom --with-dom-xslt --with-dom-exslt \
--enable-exif --enable-ftp --with-gd --with-jpeg-dir --with-png-dir \
--with-zlib-dir --with-freetype-dir --with-iconv \
--with-imap --with-imap-ssl --enable-mbstring --with-mcal=/usr \
--with-mcrypt --with-mhash --with-unixODBC=/usr --with-swf=/usr/lib/libswf
\
--enable-wddx --enable-xml --enable-xslt --with-xslt-sablot --with-zip \
--with-pear --enable-memory-limit --enable-zend-multibyte \
--with-mysql --with-pgsql


Expected result:

the configure script should accept my version and NOT exit with a wrong
error message

Actual result:
--
last lines from config.log:

configure:94187: checking for Sablotron version
configure:94212: gcc -o conftest -g -O2  -I/usr/include 
-Wl,-rpath,/usr/ssl/lib -L/usr/ssl/lib -Wl,-rpath,/usr/java/jd
k1.5.0_06/jre/lib/i386/server -L/usr/java/jdk1.5.0_06/jre/lib/i386/server
-Wl,-rpath,/usr/java/jdk1.5.0_06/jre/lib/i386
/native_threads -L/usr/java/jdk1.5.0_06/jre/lib/i386/native_threads
-Wl,-rpath,/usr/java/jdk1.5.0_06/jre/lib/i386 -L/us
r/java/jdk1.5.0_06/jre/lib/i386 -Wl,-rpath,/usr/lib/libswf/lib
-L/usr/lib/libswf/lib conftest.c -lswf -lcrypt -lpq -lmh
ash -lmcrypt -lltdl -ljava -lssl -lcrypto -lcrypt -lpam -lfreetype -lpng
-lz -ljpeg -lexslt -lxml2 -lxslt -lz -lcurl -l
bz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcurl -lssl -lcrypto -ldl
-lz -lxml2 -lz -lm -lodbc -lcrypt 1>&5
configure: failed program was:
#line 94194 "configure"
#include "confdefs.h"

#include 
#include 

int main ()
{
double version;
version = atof(SAB_VERSION);

if (version >= 0.96) {
exit(0);
}
exit(255);
}


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


#35639 [NEW]: mysqli_connect errors crash apache

2005-12-11 Thread jackmcslay at hotmail dot com
From: jackmcslay at hotmail dot com
Operating system: WinXP
PHP version:  5.1.1
PHP Bug Type: Apache related
Bug description:  mysqli_connect errors crash apache

Description:

if I input any valid values into mysqli_connect (object ot not) it will
connect ok
however if I try putting anything invalid (either username, host, password
or database) it will spend some time trying to load and then a crash
message from apache (1.3.33) will appear instead of just giving an error
message


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


#35288 [Asn]: iconv() function defined as libiconv()

2005-12-11 Thread moriyoshi
 ID:   35288
 Updated by:   [EMAIL PROTECTED]
 Reported By:  webmaster at negeta dot com
 Status:   Assigned
 Bug Type: ICONV related
 Operating System: FreeBSD 5.4
 PHP Version:  5.1.1
 Assigned To:  moriyoshi
 New Comment:

Well, then are you *really* sure that the userland function named
libiconv() is defined instead of iconv() in your build and that's the
case?

Regarding the issues you call "more basal things", -liconv is appended
to resolve libxml2 dependency there and so it's not a problem in the
iconv extension.

You always need to specify --with-iconv=[PREFIX] when the libc doesn't
have an iconv implementation nor no alternative can be found in the
default header search path (supposedly /usr/include).







Previous Comments:


[2005-12-10 01:28:14] webmaster at negeta dot com

I found more basal things which cause this problem.
configure checks iconv in libc first.
But '-liconv' is added to compile option.
My system does not have iconv in libc , but it is found.
My system should find 'libiconv' in configure:44354.

-- output
checking for iconv support... yes
checking for iconv... yes

-- config.log
configure:44060: checking for iconv support
configure:44122: checking for iconv
configure:44150: gcc -o conftest -g -O2   -R/usr/local/lib
-L/usr/local/lib conftest.c -lm  -lxml2 -lz -liconv -lm -lxml2 -lz
-liconv -lm 1>&5



[2005-12-07 12:01:24] [EMAIL PROTECTED]

Since when having libiconv() instead of iconv() is expected behaviour?



[2005-12-07 11:56:18] [EMAIL PROTECTED]

That's expected behaviour. I did not break anything. Rather, it would
never detect the correct header if with --with-iconv before I fixed.





[2005-12-06 23:01:55] [EMAIL PROTECTED]

Assigned to the person who broke it.



[2005-12-01 13:04:54] webmaster at negeta dot com

I specified the path of iconv explicitly.
I ran './configure --with-iconv=/usr/local',
and HAVE_LIBICONV was defined.
'libiconv' comes before 'iconv' when the path is specified.
But above priority is inverted when the path is not specified.
I was able to avoid this problem by using this difference.

I hope 'libiconv' comes before 'iconv' automatically
on the system that has both functions.
But, I will back out this problem if this difference
was designed for changing priority of them manually.



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/35288

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


#35624 [Asn->Csd]: strtotime doesn't accept 3 character weekdays

2005-12-11 Thread iliaa
 ID:   35624
 Updated by:   [EMAIL PROTECTED]
 Reported By:  uwe dot dauernheim at gmx dot de
-Status:   Assigned
+Status:   Closed
 Bug Type: Date/time related
 Operating System: *
 PHP Version:  5CVS-2005-12-10 (cvs)
 Assigned To:  derick
 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:


[2005-12-10 19:18:32] [EMAIL PROTECTED]

It happens with latest CVS too.



[2005-12-10 19:11:47] uwe dot dauernheim at gmx dot de

Description:

The function strtotime() does not work correctly, when using three
character weekdays.

Reproduce code:
---
echo date('D', strtotime('mon'));

Expected result:

Mon

Actual result:
--
(Suggest it's saturday)

Mon (5.0.4)
Mon (5.0.5)
Sat (5.1.0)
Sat (5.1.1)
? (CVS)





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


#35637 [Opn->Bgs]: Mysqli "Lost connection to MySQL server during query"

2005-12-11 Thread tony2001
 ID:   35637
 Updated by:   [EMAIL PROTECTED]
 Reported By:  realbenzin at inbox dot lv
-Status:   Open
+Status:   Bogus
 Bug Type: MySQLi related
 Operating System: Win XP SP2
 PHP Version:  5.1.1
 New Comment:

Duplicate of bug #32882.


Previous Comments:


[2005-12-11 23:22:07] realbenzin at inbox dot lv

5.0.15



[2005-12-11 23:12:55] [EMAIL PROTECTED]

What mysql version are you connecting to?



[2005-12-11 22:49:42] realbenzin at inbox dot lv

Description:

When mysql stored procedures are called twice in a row I get  mysqli
error "Lost connection to MySQL server during query", it does not
happen if I do it once or in row with simple sql statements... Mysql is
ok, and no free_result is helping...

Reproduce code:
---
$db = new mysqli('localhost','root','qwerty','VT_SYS');
$u = $db->query("call spRazList(NULL);");
$u = $db->query("call spRazList(NULL);") or die('asdasdad'.$db->error);

Expected result:

That stored procedure would execute twice with no errors.

Actual result:
--
Mysqli error "Lost connection to MySQL server during query"





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


#35611 [Opn->Fbk]: ldap_sasl_bind() sends bind DN as authz_id

2005-12-11 Thread sniper
 ID:   35611
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bfg at frost dot ath dot cx
-Status:   Open
+Status:   Feedback
 Bug Type: LDAP related
 Operating System: linux
 PHP Version:  5.1.1
 New Comment:

Exactly how did you call ldapsearch program to get those results..?



Previous Comments:


[2005-12-09 10:30:47] bfg at frost dot ath dot cx

Description:

ldap_sasl_bind() sends bind DN as sasl authz id.

This is wrong ;)



Reproduce code:
---
ldap://ldap.example.org";;
$dn =
"uid=bfg,ou=users,ou=unix,ou=production,dc=noviforum,dc=si";
$pw = "test";
$realm = "PROD.EXAMPLE.ORG";
$mech = "PLAIN";
$authz_id = "bfg";
$props = null;

$r = ldap_connect($host);

if (! $r) {
echo "Unable to connect: \n";
exit(1);
}

ldap_set_option($r, LDAP_OPT_PROTOCOL_VERSION, 3);
echo "Connected, trying to bind...\n";

$b = ldap_sasl_bind($r, $dn, $pw, $mech, $realm, $authz_id,
$props);
echo "LDAP bind: " . (($b) ? "OK" : "FAILED") . "\n";

?>


Expected result:

OK

... i've written php patch which i've sent to jani.

Actual result:
--
Dec  8 11:31:34 orion slapd[5404]: conn=113 fd=15 ACCEPT from 
IP=192.168.2.232:55217 (IP=0.0.0.0:389)


LDAP: Dec  8 11:31:12 orion slapd[5404]: conn=112 op=0 BIND 
dn="uid=bfg,ou=users,ou=unix,ou=production,dc=example,dc=si"
method=163
PHP:  Dec  8 11:31:34 orion slapd[5404]: conn=113 op=0 BIND 
dn="uid=bfg,ou=users,ou=unix,ou=production,dc=example,dc=si"
method=163



LDAP: Dec  8 11:31:12 orion saslauthd[17532]: rel_accept_lock :
released 
accept lock
PHP:  Dec  8 11:31:34 orion saslauthd[17533]: rel_accept_lock :
released 
accept lock


LDAP: Dec  8 11:31:12 orion saslauthd[17533]: get_accept_lock :
acquired 
accept lock
PHP:  Dec  8 11:31:34 orion saslauthd[17531]: get_accept_lock :
acquired 
accept lock
FAILED

Kerberos logs (ldap server authenticates against kerberos)

LDAP marked lines are produced when connecting to ldap server with
ldapsearch(1), PHP marked lines are produced with php interpreter
running script above.

LDAP: Dec  8 11:31:12 orion krb5kdc[5468]: AS_REQ (1 etypes {18}) 
195.250.198.144: NEEDED_PREAUTH: [EMAIL PROTECTED] for 
krbtgt/[EMAIL PROTECTED], Additional pre-authentication

required
PHP:  Dec  8 11:31:34 orion krb5kdc[5468]: AS_REQ (1 etypes {18}) 
195.250.198.144: CLIENT_NOT_FOUND: 
uid=bfg,ou=users,ou=unix,ou=production,dc=examle,[EMAIL PROTECTED]

for krbtgt/[EMAIL PROTECTED], Client not found in
Kerberos 
database






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


#35637 [Fbk->Opn]: Mysqli "Lost connection to MySQL server during query"

2005-12-11 Thread realbenzin at inbox dot lv
 ID:   35637
 User updated by:  realbenzin at inbox dot lv
 Reported By:  realbenzin at inbox dot lv
-Status:   Feedback
+Status:   Open
 Bug Type: MySQLi related
 Operating System: Win XP SP2
 PHP Version:  5.1.1
 New Comment:

5.0.15


Previous Comments:


[2005-12-11 23:12:55] [EMAIL PROTECTED]

What mysql version are you connecting to?



[2005-12-11 22:49:42] realbenzin at inbox dot lv

Description:

When mysql stored procedures are called twice in a row I get  mysqli
error "Lost connection to MySQL server during query", it does not
happen if I do it once or in row with simple sql statements... Mysql is
ok, and no free_result is helping...

Reproduce code:
---
$db = new mysqli('localhost','root','qwerty','VT_SYS');
$u = $db->query("call spRazList(NULL);");
$u = $db->query("call spRazList(NULL);") or die('asdasdad'.$db->error);

Expected result:

That stored procedure would execute twice with no errors.

Actual result:
--
Mysqli error "Lost connection to MySQL server during query"





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


#35629 [Asn]: http:// wrapper crashes with redirections

2005-12-11 Thread tony2001
 ID:   35629
 Updated by:   [EMAIL PROTECTED]
 Reported By:  marius at joy2share dot com
 Status:   Assigned
 Bug Type: Filesystem function related
 Operating System: *
 PHP Version:  5CVS-2005-12-12 (cvs)
-Assigned To:  wez
+Assigned To:  ilia
 New Comment:

Ilia, it's your patch
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/http_fopen_wrapper.c?r1=1.102&r2=1.103&diff_format=u
causing it.

The following fix did the trick: 
http://tony2001.phpclub.net/dev/tmp/bug35629.diff


Previous Comments:


[2005-12-11 23:14:56] [EMAIL PROTECTED]

Verified and assigned to the streams mastah.



[2005-12-11 22:22:04] marius at joy2share dot com

gdb backtrace :

(gdb) bt
#0  0xb7d77218 in php_stream_url_wrap_http_ex (wrapper=0x81ea440,
path=0xbfbbcbe4
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-4279985-3370440?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
redirect_max=19, header_init=0,
__php_stream_call_depth=0, __zend_filename=0xb7eaed18
"/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c",
__zend_lineno=643, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at
/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:648
#1  0xb7d77132 in php_stream_url_wrap_http_ex (wrapper=0x81ea440,
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=Variable "options" is not available.
) at /share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:643
#2  0xb7d786f7 in php_stream_url_wrap_http (wrapper=0x81ea440,
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
__php_stream_call_depth=1,
__zend_filename=0xb7eb478c
"/share2/php5.1-200512111530/main/streams/streams.c",
__zend_lineno=1773,
__zend_orig_filename=0xb7ea77d4
"/share2/php5.1-200512111530/ext/standard/file.c",
__zend_orig_lineno=701)
at
/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:703
#3  0xb7da9610 in _php_stream_open_wrapper_ex (
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
__php_stream_call_depth=0,
__zend_filename=0xb7ea77d4
"/share2/php5.1-200512111530/ext/standard/file.c", __zend_lineno=701,
__zend_orig_filename=Variable "__zend_orig_filename" is not available.
)
at /share2/php5.1-200512111530/main/streams/streams.c:1771
#4  0xb7d2be29 in zif_file (ht=1, return_value=0x823b824,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
at /share2/php5.1-200512111530/ext/standard/file.c:701
#5  0xb7dfeba6 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfbbd740)
at /share2/php5.1-200512111530/Zend/zend_vm_execute.h:192
#6  0xb7dfe1a1 in execute (op_array=0x8233f2c) at
/share2/php5.1-200512111530/Zend/zend_vm_execute.h:92
#7  0xb7ddc205 in zend_execute_scripts (type=8, retval=Variable
"retval" is not available.
) at /share2/php5.1-200512111530/Zend/zend.c:1101
#8  0xb7d9386b in php_execute_script (primary_file=0xbfbbfa84) at
/share2/php5.1-200512111530/main/main.c:1720
#9  0xb7e7f153 in php_handler (r=0x8219200) at
/share2/php5.1-200512111530/sapi/apache2handler/sapi_apache2.c:584
#10 0x08076c6c in ap_run_handler ()
#11 0x080795f0 in ap_invoke_handler ()
#12 0x080997de in ap_process_request ()
#13 0x080961cf in ap_process_http_connection ()
#14 0x0807dedb in ap_run_process_connection ()
#15 0x0807e257 in ap_process_connection ()
#16 0x080b64f5 in child_main ()
#17 0x080b6814 in make_child ()
---Type  to continue, or q  to quit---
#18 0x080b6f7e in ap_mpm_run ()
#19 0x080624df in main ()
(gdb)



[2005-12-11 04:23:15] marius at joy2share dot com

Description:

[Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal
Segmentation fault (11)

The script below worked fine with PHP 5.0.5.

I have : Apache/2.2.0 PHP/5.1.1 configured on my system.

Reproduce code:
---
http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";;
$f = file($link);
?>

Expected result:

$f will contain an array with that file.

Actual result:
--
[Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal
Segmentation fault (11)

And I get the file with the code mentioned above for download.
The file is empty.





-- 
Edit this bug report 

#35634 [Opn->Bgs]: Erroneous "Class declarations may not be nested" error raised.

2005-12-11 Thread sniper
 ID:   35634
 Updated by:   [EMAIL PROTECTED]
 Reported By:  robert at interjinn dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Linux
 PHP Version:  5.1.1
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php




Previous Comments:


[2005-12-11 19:15:37] robert at interjinn dot com

Description:

PHP bails out with class declaration nesting error when an error
handler dynamically loads an error handling class during a class
related E_STRICT warning.

Reproduce code:
---
test.php
handleException(
$errorNumber, $errorMessage, $fileName, $lineNumber );
}


require_once( 'testClass.php' );

$test = new TestClass();
?>

-

testClass.php
__construct();
}
}

?>

-

errorClass.php




Expected result:

I expect to properly be able to handle the following E_STRICT in my
custom error class:


Strict Standards:  Redefining already defined constructor for
class TestClass in /home/suds/testClass.php on line 9



Actual result:
--
Fatal error:  Class declarations may not be nested in
/home/suds/errorClass.php on line 4






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


#35638 [NEW]: Adding udate to imap_fetch_overview results?

2005-12-11 Thread charlesb at ekit-inc dot com
From: charlesb at ekit-inc dot com
Operating system: Solaris/i86
PHP version:  4.4.1
PHP Bug Type: Feature/Change Request
Bug description:  Adding udate to imap_fetch_overview results?

Description:

Would it be possible to add the arrival date for an email (preferably in
unixtime) to the results for imap_fetch_overview?  It would help us _alot_
with our webmail.

Thanks, Charles



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


#35629 [Opn->Asn]: Apache2 [notice] child pid 12388 exit signal Segmentation fault (11)

2005-12-11 Thread sniper
 ID:   35629
 Updated by:   [EMAIL PROTECTED]
 Reported By:  marius at joy2share dot com
-Status:   Open
+Status:   Assigned
-Bug Type: Reproducible crash
+Bug Type: Filesystem function related
-Operating System: Linux (Fedora Core 4)
+Operating System: *
-PHP Version:  5.1.1
+PHP Version:  5CVS-2005-12-12 (cvs)
-Assigned To:  
+Assigned To:  wez
 New Comment:

Verified and assigned to the streams mastah.


Previous Comments:


[2005-12-11 22:22:04] marius at joy2share dot com

gdb backtrace :

(gdb) bt
#0  0xb7d77218 in php_stream_url_wrap_http_ex (wrapper=0x81ea440,
path=0xbfbbcbe4
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-4279985-3370440?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
redirect_max=19, header_init=0,
__php_stream_call_depth=0, __zend_filename=0xb7eaed18
"/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c",
__zend_lineno=643, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at
/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:648
#1  0xb7d77132 in php_stream_url_wrap_http_ex (wrapper=0x81ea440,
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=Variable "options" is not available.
) at /share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:643
#2  0xb7d786f7 in php_stream_url_wrap_http (wrapper=0x81ea440,
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
__php_stream_call_depth=1,
__zend_filename=0xb7eb478c
"/share2/php5.1-200512111530/main/streams/streams.c",
__zend_lineno=1773,
__zend_orig_filename=0xb7ea77d4
"/share2/php5.1-200512111530/ext/standard/file.c",
__zend_orig_lineno=701)
at
/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:703
#3  0xb7da9610 in _php_stream_open_wrapper_ex (
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
__php_stream_call_depth=0,
__zend_filename=0xb7ea77d4
"/share2/php5.1-200512111530/ext/standard/file.c", __zend_lineno=701,
__zend_orig_filename=Variable "__zend_orig_filename" is not available.
)
at /share2/php5.1-200512111530/main/streams/streams.c:1771
#4  0xb7d2be29 in zif_file (ht=1, return_value=0x823b824,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
at /share2/php5.1-200512111530/ext/standard/file.c:701
#5  0xb7dfeba6 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfbbd740)
at /share2/php5.1-200512111530/Zend/zend_vm_execute.h:192
#6  0xb7dfe1a1 in execute (op_array=0x8233f2c) at
/share2/php5.1-200512111530/Zend/zend_vm_execute.h:92
#7  0xb7ddc205 in zend_execute_scripts (type=8, retval=Variable
"retval" is not available.
) at /share2/php5.1-200512111530/Zend/zend.c:1101
#8  0xb7d9386b in php_execute_script (primary_file=0xbfbbfa84) at
/share2/php5.1-200512111530/main/main.c:1720
#9  0xb7e7f153 in php_handler (r=0x8219200) at
/share2/php5.1-200512111530/sapi/apache2handler/sapi_apache2.c:584
#10 0x08076c6c in ap_run_handler ()
#11 0x080795f0 in ap_invoke_handler ()
#12 0x080997de in ap_process_request ()
#13 0x080961cf in ap_process_http_connection ()
#14 0x0807dedb in ap_run_process_connection ()
#15 0x0807e257 in ap_process_connection ()
#16 0x080b64f5 in child_main ()
#17 0x080b6814 in make_child ()
---Type  to continue, or q  to quit---
#18 0x080b6f7e in ap_mpm_run ()
#19 0x080624df in main ()
(gdb)



[2005-12-11 21:48:33] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.





[2005-12-11 21:32:26] marius at joy2share dot com

I tried with the CVS snapshot(PHP/5.1.2-dev) and I get the same
result.

[Sun Dec 11 22:32:11 2005] [notice] child pid 12430 exit signal
Segmentation fault (11)



[2005-12-11 14:09:37] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/ph

#35637 [Opn->Fbk]: Mysqli "Lost connection to MySQL server during query"

2005-12-11 Thread sniper
 ID:   35637
 Updated by:   [EMAIL PROTECTED]
 Reported By:  realbenzin at inbox dot lv
-Status:   Open
+Status:   Feedback
 Bug Type: MySQLi related
 Operating System: Win XP SP2
 PHP Version:  5.1.1
 New Comment:

What mysql version are you connecting to?


Previous Comments:


[2005-12-11 22:49:42] realbenzin at inbox dot lv

Description:

When mysql stored procedures are called twice in a row I get  mysqli
error "Lost connection to MySQL server during query", it does not
happen if I do it once or in row with simple sql statements... Mysql is
ok, and no free_result is helping...

Reproduce code:
---
$db = new mysqli('localhost','root','qwerty','VT_SYS');
$u = $db->query("call spRazList(NULL);");
$u = $db->query("call spRazList(NULL);") or die('asdasdad'.$db->error);

Expected result:

That stored procedure would execute twice with no errors.

Actual result:
--
Mysqli error "Lost connection to MySQL server during query"





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


#35637 [NEW]: Mysqli "Lost connection to MySQL server during query"

2005-12-11 Thread realbenzin at inbox dot lv
From: realbenzin at inbox dot lv
Operating system: Win XP SP2
PHP version:  5.1.1
PHP Bug Type: MySQLi related
Bug description:  Mysqli "Lost connection to MySQL server during query"

Description:

When mysql stored procedures are called twice in a row I get  mysqli error
"Lost connection to MySQL server during query", it does not happen if I do
it once or in row with simple sql statements... Mysql is ok, and no
free_result is helping...

Reproduce code:
---
$db = new mysqli('localhost','root','qwerty','VT_SYS');
$u = $db->query("call spRazList(NULL);");
$u = $db->query("call spRazList(NULL);") or die('asdasdad'.$db->error);

Expected result:

That stored procedure would execute twice with no errors.

Actual result:
--
Mysqli error "Lost connection to MySQL server during query"

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


#35629 [Fbk->Opn]: Apache2 [notice] child pid 12388 exit signal Segmentation fault (11)

2005-12-11 Thread marius at joy2share dot com
 ID:   35629
 User updated by:  marius at joy2share dot com
 Reported By:  marius at joy2share dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Linux (Fedora Core 4)
 PHP Version:  5.1.1
 New Comment:

gdb backtrace :

(gdb) bt
#0  0xb7d77218 in php_stream_url_wrap_http_ex (wrapper=0x81ea440,
path=0xbfbbcbe4
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-4279985-3370440?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
redirect_max=19, header_init=0,
__php_stream_call_depth=0, __zend_filename=0xb7eaed18
"/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c",
__zend_lineno=643, __zend_orig_filename=0x0, __zend_orig_lineno=0)
at
/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:648
#1  0xb7d77132 in php_stream_url_wrap_http_ex (wrapper=0x81ea440,
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=Variable "options" is not available.
) at /share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:643
#2  0xb7d786f7 in php_stream_url_wrap_http (wrapper=0x81ea440,
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
__php_stream_call_depth=1,
__zend_filename=0xb7eb478c
"/share2/php5.1-200512111530/main/streams/streams.c",
__zend_lineno=1773,
__zend_orig_filename=0xb7ea77d4
"/share2/php5.1-200512111530/ext/standard/file.c",
__zend_orig_lineno=701)
at
/share2/php5.1-200512111530/ext/standard/http_fopen_wrapper.c:703
#3  0xb7da9610 in _php_stream_open_wrapper_ex (
path=0x823414c
"http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";,
mode=0xb7e81808 "rb", options=4, opened_path=0x0, context=0x82341f4,
__php_stream_call_depth=0,
__zend_filename=0xb7ea77d4
"/share2/php5.1-200512111530/ext/standard/file.c", __zend_lineno=701,
__zend_orig_filename=Variable "__zend_orig_filename" is not available.
)
at /share2/php5.1-200512111530/main/streams/streams.c:1771
#4  0xb7d2be29 in zif_file (ht=1, return_value=0x823b824,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
at /share2/php5.1-200512111530/ext/standard/file.c:701
#5  0xb7dfeba6 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfbbd740)
at /share2/php5.1-200512111530/Zend/zend_vm_execute.h:192
#6  0xb7dfe1a1 in execute (op_array=0x8233f2c) at
/share2/php5.1-200512111530/Zend/zend_vm_execute.h:92
#7  0xb7ddc205 in zend_execute_scripts (type=8, retval=Variable
"retval" is not available.
) at /share2/php5.1-200512111530/Zend/zend.c:1101
#8  0xb7d9386b in php_execute_script (primary_file=0xbfbbfa84) at
/share2/php5.1-200512111530/main/main.c:1720
#9  0xb7e7f153 in php_handler (r=0x8219200) at
/share2/php5.1-200512111530/sapi/apache2handler/sapi_apache2.c:584
#10 0x08076c6c in ap_run_handler ()
#11 0x080795f0 in ap_invoke_handler ()
#12 0x080997de in ap_process_request ()
#13 0x080961cf in ap_process_http_connection ()
#14 0x0807dedb in ap_run_process_connection ()
#15 0x0807e257 in ap_process_connection ()
#16 0x080b64f5 in child_main ()
#17 0x080b6814 in make_child ()
---Type  to continue, or q  to quit---
#18 0x080b6f7e in ap_mpm_run ()
#19 0x080624df in main ()
(gdb)


Previous Comments:


[2005-12-11 21:48:33] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.





[2005-12-11 21:32:26] marius at joy2share dot com

I tried with the CVS snapshot(PHP/5.1.2-dev) and I get the same
result.

[Sun Dec 11 22:32:11 2005] [notice] child pid 12430 exit signal
Segmentation fault (11)



[2005-12-11 14:09:37] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2005-12-11 04:23:15] marius at joy2share dot com

Description:

[Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal
Segmentation fault (11)

The script below worked fine with PHP 5.0.5.

I 

#35635 [Bgs]: is_dir and is_file not working properly

2005-12-11 Thread plesek at nln dot cz
 ID:   35635
 User updated by:  plesek at nln dot cz
 Reported By:  plesek at nln dot cz
 Status:   Bogus
 Bug Type: Directory function related
 Operating System: Windows XP Professional SP2
 PHP Version:  4.4.1
 New Comment:

You're right of course, my apologies, I won't try to report bugs after
9 hours of work. 
Iteresting notice: Got my code working on linux box, rather
confusing,but never mind.
Thanks anyway


Previous Comments:


[2005-12-11 21:59:27] [EMAIL PROTECTED]

Did you try to see what's in the $element?
Of course it doesn't work, you need to do it this way:
is_dir("./whatever/".$element);

No bug here.



[2005-12-11 21:54:18] plesek at nln dot cz

Description:

The behavior of following code is rather unpredictable. In the case of
opendir("."), all works perfecty, but if you add something like
/anotherdir, then you run into problems. In this example, let's assume
we have dir structure ./whatever/ with another 2 folders and files. The
result CAN be, as following, but it happened to me, that all dirs were
recognized correctly or for example only one was. Only special dirs, .
and .. are recognized. I tried several tips, that were on the internet,
like ending slash, or backslashes instead of normal ones (windows), with
no result. And on different folders, again the same, with minor
fluctuations, as mentioned above.
And as for is_file, te result will be all false in any case, tried
several times.Again, it applies only for other directories, than "."
All extensions disabled,of course.

Reproduce code:
---
$handler=opendir("./whatever");
while($element=readdir($handler)) {
$tmp=is_dir($element);
var_dump($tmp);
echo " $element";
}

Expected result:

bool(true) dir1
bool(true) dir2
bool(false) file1.txt
bool(false) file2.txt

Actual result:
--
bool(false) dir1
bool(false) dir2
bool(false) file1.txt
bool(false) file2.txt





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


#35635 [Opn->Bgs]: is_dir and is_file not working properly

2005-12-11 Thread tony2001
 ID:   35635
 Updated by:   [EMAIL PROTECTED]
 Reported By:  plesek at nln dot cz
-Status:   Open
+Status:   Bogus
 Bug Type: Directory function related
 Operating System: Windows XP Professional SP2
 PHP Version:  4.4.1
 New Comment:

Did you try to see what's in the $element?
Of course it doesn't work, you need to do it this way:
is_dir("./whatever/".$element);

No bug here.


Previous Comments:


[2005-12-11 21:54:18] plesek at nln dot cz

Description:

The behavior of following code is rather unpredictable. In the case of
opendir("."), all works perfecty, but if you add something like
/anotherdir, then you run into problems. In this example, let's assume
we have dir structure ./whatever/ with another 2 folders and files. The
result CAN be, as following, but it happened to me, that all dirs were
recognized correctly or for example only one was. Only special dirs, .
and .. are recognized. I tried several tips, that were on the internet,
like ending slash, or backslashes instead of normal ones (windows), with
no result. And on different folders, again the same, with minor
fluctuations, as mentioned above.
And as for is_file, te result will be all false in any case, tried
several times.Again, it applies only for other directories, than "."
All extensions disabled,of course.

Reproduce code:
---
$handler=opendir("./whatever");
while($element=readdir($handler)) {
$tmp=is_dir($element);
var_dump($tmp);
echo " $element";
}

Expected result:

bool(true) dir1
bool(true) dir2
bool(false) file1.txt
bool(false) file2.txt

Actual result:
--
bool(false) dir1
bool(false) dir2
bool(false) file1.txt
bool(false) file2.txt





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


#35635 [NEW]: is_dir and is_file not working properly

2005-12-11 Thread plesek at nln dot cz
From: plesek at nln dot cz
Operating system: Windows XP Professional SP2
PHP version:  4.4.1
PHP Bug Type: Directory function related
Bug description:  is_dir and is_file not working properly

Description:

The behavior of following code is rather unpredictable. In the case of
opendir("."), all works perfecty, but if you add something like
/anotherdir, then you run into problems. In this example, let's assume we
have dir structure ./whatever/ with another 2 folders and files. The
result CAN be, as following, but it happened to me, that all dirs were
recognized correctly or for example only one was. Only special dirs, . and
.. are recognized. I tried several tips, that were on the internet, like
ending slash, or backslashes instead of normal ones (windows), with no
result. And on different folders, again the same, with minor fluctuations,
as mentioned above.
And as for is_file, te result will be all false in any case, tried several
times.Again, it applies only for other directories, than "."
All extensions disabled,of course.

Reproduce code:
---
$handler=opendir("./whatever");
while($element=readdir($handler)) {
$tmp=is_dir($element);
var_dump($tmp);
echo " $element";
}

Expected result:

bool(true) dir1
bool(true) dir2
bool(false) file1.txt
bool(false) file2.txt

Actual result:
--
bool(false) dir1
bool(false) dir2
bool(false) file1.txt
bool(false) file2.txt

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


#35629 [Opn->Fbk]: Apache2 [notice] child pid 12388 exit signal Segmentation fault (11)

2005-12-11 Thread tony2001
 ID:   35629
 Updated by:   [EMAIL PROTECTED]
 Reported By:  marius at joy2share dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: Linux (Fedora Core 4)
 PHP Version:  5.1.1
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.




Previous Comments:


[2005-12-11 21:32:26] marius at joy2share dot com

I tried with the CVS snapshot(PHP/5.1.2-dev) and I get the same
result.

[Sun Dec 11 22:32:11 2005] [notice] child pid 12430 exit signal
Segmentation fault (11)



[2005-12-11 14:09:37] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2005-12-11 04:23:15] marius at joy2share dot com

Description:

[Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal
Segmentation fault (11)

The script below worked fine with PHP 5.0.5.

I have : Apache/2.2.0 PHP/5.1.1 configured on my system.

Reproduce code:
---
http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";;
$f = file($link);
?>

Expected result:

$f will contain an array with that file.

Actual result:
--
[Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal
Segmentation fault (11)

And I get the file with the code mentioned above for download.
The file is empty.





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


#35629 [Fbk->Opn]: Apache2 [notice] child pid 12388 exit signal Segmentation fault (11)

2005-12-11 Thread marius at joy2share dot com
 ID:   35629
 User updated by:  marius at joy2share dot com
 Reported By:  marius at joy2share dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: Linux (Fedora Core 4)
 PHP Version:  5.1.1
 New Comment:

I tried with the CVS snapshot(PHP/5.1.2-dev) and I get the same
result.

[Sun Dec 11 22:32:11 2005] [notice] child pid 12430 exit signal
Segmentation fault (11)


Previous Comments:


[2005-12-11 14:09:37] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2005-12-11 04:23:15] marius at joy2share dot com

Description:

[Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal
Segmentation fault (11)

The script below worked fine with PHP 5.0.5.

I have : Apache/2.2.0 PHP/5.1.1 configured on my system.

Reproduce code:
---
http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";;
$f = file($link);
?>

Expected result:

$f will contain an array with that file.

Actual result:
--
[Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal
Segmentation fault (11)

And I get the file with the code mentioned above for download.
The file is empty.





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


#35633 [Bgs]: gzdeflate function causes Apache Segmentation fault

2005-12-11 Thread krang at krang dot org dot uk
 ID:   35633
 User updated by:  krang at krang dot org dot uk
 Reported By:  krang at krang dot org dot uk
 Status:   Bogus
 Bug Type: Zlib Related
 Operating System: Red Hat 9
 PHP Version:  4.4.1
 New Comment:

Installed php4-STABLE-200512111736 (4.4.2RC2-dev), and I have  upgraded
zlib to v1.2.3, but still doing a "Segmentation fault".


Previous Comments:


[2005-12-11 20:05:25] [EMAIL PROTECTED]

Cannot replicate in latest cvs.



[2005-12-11 20:02:26] judas dot iscariote at gmail dot com

use:

http://snaps.php.net/php4-STABLE-latest.tar.bz2



[2005-12-11 19:47:23] krang at krang dot org dot uk

I'm really sorry, I cant upgrade PHP that simply... The problem is
occurring on a production server with software which is not quite ready
for PHP 5.



[2005-12-11 18:44:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2005-12-11 17:36:37] krang at krang dot org dot uk

Description:

Sorry, I don't know much about the gzdeflate() function, but it appears
in one of the libraries I use (pclzip.lib.php) to create zip files.

When it gets executed, it always causes a "Segmentation fault" on
Apache 1.3.34 (not sure about other versions)

I have re-compiled PHP 4.4.1, and done "make test" with no problems.
This is my configure line:

./configure
--prefix=/opt/php
--with-apxs=/opt/apache/bin/apxs
--with-config-file-path=/etc/
--with-jpeg-dir=/usr/local/
--with-zlib
--with-gd
--with-mysql=/opt/mysql/
--with-openssl
--with-kerberos


Reproduce code:
---








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


#35633 [Opn->Bgs]: gzdeflate function causes Apache Segmentation fault

2005-12-11 Thread iliaa
 ID:   35633
 Updated by:   [EMAIL PROTECTED]
 Reported By:  krang at krang dot org dot uk
-Status:   Open
+Status:   Bogus
 Bug Type: Zlib Related
 Operating System: Red Hat 9
 PHP Version:  4.4.1
 New Comment:

Cannot replicate in latest cvs.


Previous Comments:


[2005-12-11 20:02:26] judas dot iscariote at gmail dot com

use:

http://snaps.php.net/php4-STABLE-latest.tar.bz2



[2005-12-11 19:47:23] krang at krang dot org dot uk

I'm really sorry, I cant upgrade PHP that simply... The problem is
occurring on a production server with software which is not quite ready
for PHP 5.



[2005-12-11 18:44:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2005-12-11 17:36:37] krang at krang dot org dot uk

Description:

Sorry, I don't know much about the gzdeflate() function, but it appears
in one of the libraries I use (pclzip.lib.php) to create zip files.

When it gets executed, it always causes a "Segmentation fault" on
Apache 1.3.34 (not sure about other versions)

I have re-compiled PHP 4.4.1, and done "make test" with no problems.
This is my configure line:

./configure
--prefix=/opt/php
--with-apxs=/opt/apache/bin/apxs
--with-config-file-path=/etc/
--with-jpeg-dir=/usr/local/
--with-zlib
--with-gd
--with-mysql=/opt/mysql/
--with-openssl
--with-kerberos


Reproduce code:
---








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


#35633 [Com]: gzdeflate function causes Apache Segmentation fault

2005-12-11 Thread judas dot iscariote at gmail dot com
 ID:   35633
 Comment by:   judas dot iscariote at gmail dot com
 Reported By:  krang at krang dot org dot uk
 Status:   Open
 Bug Type: Zlib Related
 Operating System: Red Hat 9
 PHP Version:  4.4.1
 New Comment:

use:

http://snaps.php.net/php4-STABLE-latest.tar.bz2


Previous Comments:


[2005-12-11 19:47:23] krang at krang dot org dot uk

I'm really sorry, I cant upgrade PHP that simply... The problem is
occurring on a production server with software which is not quite ready
for PHP 5.



[2005-12-11 18:44:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2005-12-11 17:36:37] krang at krang dot org dot uk

Description:

Sorry, I don't know much about the gzdeflate() function, but it appears
in one of the libraries I use (pclzip.lib.php) to create zip files.

When it gets executed, it always causes a "Segmentation fault" on
Apache 1.3.34 (not sure about other versions)

I have re-compiled PHP 4.4.1, and done "make test" with no problems.
This is my configure line:

./configure
--prefix=/opt/php
--with-apxs=/opt/apache/bin/apxs
--with-config-file-path=/etc/
--with-jpeg-dir=/usr/local/
--with-zlib
--with-gd
--with-mysql=/opt/mysql/
--with-openssl
--with-kerberos


Reproduce code:
---








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


#35633 [Fbk->Opn]: gzdeflate function causes Apache Segmentation fault

2005-12-11 Thread krang at krang dot org dot uk
 ID:   35633
 User updated by:  krang at krang dot org dot uk
 Reported By:  krang at krang dot org dot uk
-Status:   Feedback
+Status:   Open
 Bug Type: Zlib Related
 Operating System: Red Hat 9
 PHP Version:  4.4.1
 New Comment:

I'm really sorry, I cant upgrade PHP that simply... The problem is
occurring on a production server with software which is not quite ready
for PHP 5.


Previous Comments:


[2005-12-11 18:44:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2005-12-11 17:36:37] krang at krang dot org dot uk

Description:

Sorry, I don't know much about the gzdeflate() function, but it appears
in one of the libraries I use (pclzip.lib.php) to create zip files.

When it gets executed, it always causes a "Segmentation fault" on
Apache 1.3.34 (not sure about other versions)

I have re-compiled PHP 4.4.1, and done "make test" with no problems.
This is my configure line:

./configure
--prefix=/opt/php
--with-apxs=/opt/apache/bin/apxs
--with-config-file-path=/etc/
--with-jpeg-dir=/usr/local/
--with-zlib
--with-gd
--with-mysql=/opt/mysql/
--with-openssl
--with-kerberos


Reproduce code:
---








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


#35634 [NEW]: Erroneous "Class declarations may not be nested" error raised.

2005-12-11 Thread robert at interjinn dot com
From: robert at interjinn dot com
Operating system: Linux
PHP version:  5.1.1
PHP Bug Type: Scripting Engine problem
Bug description:  Erroneous "Class declarations may not be nested" error raised.

Description:

PHP bails out with class declaration nesting error when an error handler
dynamically loads an error handling class during a class related E_STRICT
warning.

Reproduce code:
---
test.php
handleException(
$errorNumber, $errorMessage, $fileName, $lineNumber );
}


require_once( 'testClass.php' );

$test = new TestClass();
?>

-

testClass.php
__construct();
}
}

?>

-

errorClass.php




Expected result:

I expect to properly be able to handle the following E_STRICT in my custom
error class:


Strict Standards:  Redefining already defined constructor for class
TestClass in /home/suds/testClass.php on line 9



Actual result:
--
Fatal error:  Class declarations may not be nested in
/home/suds/errorClass.php on line 4


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


#35627 [Bgs]: XSLTProcessor turns my XHTML code into HTML.

2005-12-11 Thread veracon at veracon dot net
 ID:   35627
 User updated by:  veracon at veracon dot net
 Reported By:  veracon at veracon dot net
 Status:   Bogus
 Bug Type: XSLT related
 Operating System: Linux
 PHP Version:  5.1.1
 New Comment:

Yet it doesn't keep any linebreaks or indentation - isn't that
possible, or do I have to use CDATA for that?


Previous Comments:


[2005-12-11 17:10:10] [EMAIL PROTECTED]

there's no mode="xhtml", but still user error :)

if you want xhtml, set it to "xml", if you want html, set it to
"html"... 



[2005-12-11 13:44:21] veracon at veracon dot net

Unfortunately, it gives me a warning and still removes my linebreaks.

Warning: compilation error: file /home/veracon/public_html/vorb/
element output in /home/veracon/public_html/vorb/bug.php on line 22

Warning: invalid value for method: xhtml in
/home/veracon/public_html/vorb/bug.php on line 22

(http://www.veracon.net/vorb/bug.phps)



[2005-12-11 00:51:13] [EMAIL PROTECTED]

User error. You're telling in your xsl stylesheet that you want html,
not xhtml. Changing this makes it work:

http://www.veracon.net/vorb/bug.phps

Expected result:

http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
  Test
  
  This is just a test.

Actual result:
--
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
TestThis is just a test.





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


#35632 [Opn->Bgs]: mktime() + gmmktime() - give incorrect year if...

2005-12-11 Thread sniper
 ID:   35632
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vbassasssin at coderheaven dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: Windows XP
 PHP Version:  4.4.1
 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.

RTFM


Previous Comments:


[2005-12-11 16:43:17] vbassasssin at coderheaven dot com

Description:

Hi ya,

Why does (code below in "reproduce code") give the year of 2004 instead
of 2005 when i enter date("Y", time()) which gives the date 2005.

The timestamp generated is for 2004!

I have checked my server time and that is correct and 2005.

Best regards,
scott

Reproduce code:
---
$timestamp = mktime( 0, 0, 0, date("F", time()), date("j", time()),
date("Y", time()));
print "Query Timestamp: $timestamp --- " . date("jS F Y", $timestamp) .
"";

Expected result:

Todays date! With this years year of 2005 and not 2004!






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


#35633 [Opn->Fbk]: gzdeflate function causes Apache Segmentation fault

2005-12-11 Thread sniper
 ID:   35633
 Updated by:   [EMAIL PROTECTED]
 Reported By:  krang at krang dot org dot uk
-Status:   Open
+Status:   Feedback
 Bug Type: Zlib Related
 Operating System: Red Hat 9
 PHP Version:  4.4.1
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip




Previous Comments:


[2005-12-11 17:36:37] krang at krang dot org dot uk

Description:

Sorry, I don't know much about the gzdeflate() function, but it appears
in one of the libraries I use (pclzip.lib.php) to create zip files.

When it gets executed, it always causes a "Segmentation fault" on
Apache 1.3.34 (not sure about other versions)

I have re-compiled PHP 4.4.1, and done "make test" with no problems.
This is my configure line:

./configure
--prefix=/opt/php
--with-apxs=/opt/apache/bin/apxs
--with-config-file-path=/etc/
--with-jpeg-dir=/usr/local/
--with-zlib
--with-gd
--with-mysql=/opt/mysql/
--with-openssl
--with-kerberos


Reproduce code:
---








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


#35633 [NEW]: gzdeflate function causes Apache Segmentation fault

2005-12-11 Thread krang at krang dot org dot uk
From: krang at krang dot org dot uk
Operating system: Red Hat 9
PHP version:  4.4.1
PHP Bug Type: Zlib Related
Bug description:  gzdeflate function causes Apache Segmentation fault

Description:

Sorry, I don't know much about the gzdeflate() function, but it appears in
one of the libraries I use (pclzip.lib.php) to create zip files.

When it gets executed, it always causes a "Segmentation fault" on Apache
1.3.34 (not sure about other versions)

I have re-compiled PHP 4.4.1, and done "make test" with no problems. This
is my configure line:

./configure
--prefix=/opt/php
--with-apxs=/opt/apache/bin/apxs
--with-config-file-path=/etc/
--with-jpeg-dir=/usr/local/
--with-zlib
--with-gd
--with-mysql=/opt/mysql/
--with-openssl
--with-kerberos


Reproduce code:
---




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


#35627 [Bgs]: XSLTProcessor turns my XHTML code into HTML.

2005-12-11 Thread chregu
 ID:   35627
 Updated by:   [EMAIL PROTECTED]
 Reported By:  veracon at veracon dot net
 Status:   Bogus
 Bug Type: XSLT related
 Operating System: Linux
 PHP Version:  5.1.1
 New Comment:

there's no mode="xhtml", but still user error :)

if you want xhtml, set it to "xml", if you want html, set it to
"html"... 


Previous Comments:


[2005-12-11 13:44:21] veracon at veracon dot net

Unfortunately, it gives me a warning and still removes my linebreaks.

Warning: compilation error: file /home/veracon/public_html/vorb/
element output in /home/veracon/public_html/vorb/bug.php on line 22

Warning: invalid value for method: xhtml in
/home/veracon/public_html/vorb/bug.php on line 22

(http://www.veracon.net/vorb/bug.phps)



[2005-12-11 00:51:13] [EMAIL PROTECTED]

User error. You're telling in your xsl stylesheet that you want html,
not xhtml. Changing this makes it work:

http://www.veracon.net/vorb/bug.phps

Expected result:

http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
  Test
  
  This is just a test.

Actual result:
--
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
TestThis is just a test.





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


#35632 [NEW]: mktime() + gmmktime() - give incorrect year if...

2005-12-11 Thread vbassasssin at coderheaven dot com
From: vbassasssin at coderheaven dot com
Operating system: Windows XP
PHP version:  4.4.1
PHP Bug Type: Unknown/Other Function
Bug description:  mktime() + gmmktime() - give incorrect year if...

Description:

Hi ya,

Why does (code below in "reproduce code") give the year of 2004 instead of
2005 when i enter date("Y", time()) which gives the date 2005.

The timestamp generated is for 2004!

I have checked my server time and that is correct and 2005.

Best regards,
scott

Reproduce code:
---
$timestamp = mktime( 0, 0, 0, date("F", time()), date("j", time()),
date("Y", time()));
print "Query Timestamp: $timestamp --- " . date("jS F Y", $timestamp) .
"";

Expected result:

Todays date! With this years year of 2005 and not 2004!


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


#35631 [Opn->Bgs]: No bundled php.ini file?

2005-12-11 Thread sniper
 ID:   35631
 Updated by:   [EMAIL PROTECTED]
 Reported By:  amol at hatwar dot org
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: Debian GNU/Linux 3.1
 PHP Version:  5.1.1
 New Comment:

The "bundled" file is in the source package. It's never installed
unless you copy it in place. 

The files are php.ini-dist and php.ini-recommended



Previous Comments:


[2005-12-11 15:17:22] amol at hatwar dot org

Description:

I searched the sources and the compiled binaries for the php.ini config
file, but couldn't find any bundled. The command I used for doing this
was:

find /usr/local/src/php -iname php.ini* <-- For the Sources
find /usr/local/php5 -iname php.ini*<-- For the Binaries

The phpinfo() function output reports that the path for the php.ini
file is /usr/local/php5/lib. The file is non-existent there.

I compiled PHP 5.1.1 with Apache 2.0.55. The configure string I used
was:
./configure --prefix=/usr/local/php5
--with-apxs2=/usr/local/apache/bin/apxs --enable-debug --with-openssl
--with-kerberos --with-curl --with-curlwrappers --with-db4 --with-cdb
--with-gd --with-imap --with-imap-ssl --with-ldap=/usr/local/openldap
--with-ldap-sasl --with-mhash --with-mcrypt
--with-mysqli=/usr/local/mysql5/bin/mysql_config --enable-soap
--enable-wddx --with-xmlrpc --with-xsl --with-mysql=/usr/local/mysql5
--enable-ftp --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr/lib
--enable-maintainer-zts

The unbundled php.ini is a bug or a feature, or am I doing something
wrong?






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


#35631 [NEW]: No bundled php.ini file?

2005-12-11 Thread amol at hatwar dot org
From: amol at hatwar dot org
Operating system: Debian GNU/Linux 3.1
PHP version:  5.1.1
PHP Bug Type: Unknown/Other Function
Bug description:  No bundled php.ini file?

Description:

I searched the sources and the compiled binaries for the php.ini config
file, but couldn't find any bundled. The command I used for doing this
was:

find /usr/local/src/php -iname php.ini* <-- For the Sources
find /usr/local/php5 -iname php.ini*<-- For the Binaries

The phpinfo() function output reports that the path for the php.ini file
is /usr/local/php5/lib. The file is non-existent there.

I compiled PHP 5.1.1 with Apache 2.0.55. The configure string I used was:
./configure --prefix=/usr/local/php5
--with-apxs2=/usr/local/apache/bin/apxs --enable-debug --with-openssl
--with-kerberos --with-curl --with-curlwrappers --with-db4 --with-cdb
--with-gd --with-imap --with-imap-ssl --with-ldap=/usr/local/openldap
--with-ldap-sasl --with-mhash --with-mcrypt
--with-mysqli=/usr/local/mysql5/bin/mysql_config --enable-soap
--enable-wddx --with-xmlrpc --with-xsl --with-mysql=/usr/local/mysql5
--enable-ftp --with-jpeg-dir=/usr/lib --with-zlib-dir=/usr/lib
--enable-maintainer-zts

The unbundled php.ini is a bug or a feature, or am I doing something
wrong?


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


#33811 [Bgs]: session file is not written under certain circumstances

2005-12-11 Thread sniper
 ID:   33811
 Updated by:   [EMAIL PROTECTED]
 Reported By:  hartmann at mayflower dot de
 Status:   Bogus
 Bug Type: Session related
 Operating System: Windows XP
 PHP Version:  5.0.4
 New Comment:

Never EVER do anything like that! This is expected to fail if you try
outsmarting the session engine.


Previous Comments:


[2005-07-22 00:03:19] hartmann at mayflower dot de

Nicer reproduction code: 
$nil) {
$GLOBALS[$key] =& $_SESSION[$key];
}
}
$i++; 
echo $i; 
?>



[2005-07-21 23:41:51] hartmann at mayflower dot de

Please read my bug report again. The session is started, and there is
data in $_SESSION - but the session file is 0 bytes.
The bug does not happen if register_globals is off and
register_long_arrays is set to on.



[2005-07-21 20:47:24] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

It happens *exactly* because register_globals is Off and that's well
expected.



[2005-07-21 20:41:41] hartmann at mayflower dot de

Description:

If register_globals and register_long_arrays is Off (as in
php.ini-recommended), under certain circumstances _SESSION data does
not get saved.

Reproduce code:
---
http://thinkforge.org/snippet/detail.php?type=snippet&id=11

Expected result:

$_SESSION['i'] is incremented with every request

Actual result:
--
$_SESSION[i] does not get incremented, session file is 0 bytes.





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


#34542 [Opn->Bgs]: register_long_arrays causes $_SESSIONS vars to disappear

2005-12-11 Thread sniper
 ID:   34542
 Updated by:   [EMAIL PROTECTED]
 Reported By:  marcus dot uy at virtualthinking dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: WinXP Pro
 PHP Version:  5.1.0RC4
 New Comment:

This still doesn't happen.


Previous Comments:


[2005-12-11 08:32:37] marcus dot uy at virtualthinking dot com

There have been test cases posted for this bug.  Please review.



[2005-11-11 01:00:24] 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-11-10 17:06:42] uap-php at cheeky dot org

Hello,

Having similar problems on 5.0.5.  Basically all I can say is, if you
have register_long_arrays=Off in your ini file, $_SESSION stuff does
work, apart from when you iterate over it.  Run the code below, with
register_long_arrays=On and then with it off.  The final result will be
different.  It seems that if you iterate over $_SESSION, the
session_save handler does not get called and the session data is not
saved.

Hope this sheds some light on the problem,


$value){
$_SESSION[$key]='';
}
$step='empty session "search_test"';
$refresh='';
break;
case 1:
$step='nothing set in this step';
$refresh='';
break;
default:
$_SESSION['search_test'] = 'Hello!';
$step='set session "search_test" to "Hello"';
$refresh='';
}

?>

Session Data:';
print_r($_SESSION);
echo '';

?>




[2005-11-09 23:43:51] mail at lenzw dot de

see Bug #33811 for a reproduction code.



[2005-11-03 22:10:18] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.





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/34542

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


#35629 [Opn->Fbk]: Apache2 [notice] child pid 12388 exit signal Segmentation fault (11)

2005-12-11 Thread tony2001
 ID:   35629
 Updated by:   [EMAIL PROTECTED]
 Reported By:  marius at joy2share dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: Linux (Fedora Core 4)
 PHP Version:  5.1.1
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip




Previous Comments:


[2005-12-11 04:23:15] marius at joy2share dot com

Description:

[Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal
Segmentation fault (11)

The script below worked fine with PHP 5.0.5.

I have : Apache/2.2.0 PHP/5.1.1 configured on my system.

Reproduce code:
---
http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";;
$f = file($link);
?>

Expected result:

$f will contain an array with that file.

Actual result:
--
[Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal
Segmentation fault (11)

And I get the file with the code mentioned above for download.
The file is empty.





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


#35626 [Bgs]: throwing an exception in error handler is makeing it display a warning

2005-12-11 Thread elg at op dot pl
 ID:   35626
 User updated by:  elg at op dot pl
 Reported By:  elg at op dot pl
 Status:   Bogus
 Bug Type: Compile Warning
 Operating System: windows
 PHP Version:  5.1.1
 New Comment:

If I've miss undersend your sugestion then I'm truelly sory but I know
that my exceptions handler makes nothing with cought exception and I
dont think this is the problem. Even if there would be no exception
handler or if it would write this exception information into a file it
should not display this worning (in fact it is not showing any warnings
when I am not throwing exceptions in error handler). Sory for taking
your time with this problem but I have searched many forums for help
and there was nobody that could help me :(


Previous Comments:


[2005-12-10 22:59:46] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You're using exception handler that apparently makes exceptions to
disappear. 



[2005-12-10 22:49:03] elg at op dot pl

Description:

I wanted to convert errors to exceptions by writing an error handler
that throws them as exceptions.
Then I wanted to check if it works so I tried to include a non 
existing file (info.txt)

Reproduce code:
---


Expected result:

:)

Actual result:
--
Warning: main() [function.include]: Failed opening 'info.txt' for
inclusion (include_path='.;C:\php5\pear') in
E:\usr\\www\index.php on line 8
:)





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


#35627 [Bgs]: XSLTProcessor turns my XHTML code into HTML.

2005-12-11 Thread veracon at veracon dot net
 ID:   35627
 User updated by:  veracon at veracon dot net
 Reported By:  veracon at veracon dot net
 Status:   Bogus
 Bug Type: XSLT related
 Operating System: Linux
 PHP Version:  5.1.1
 New Comment:

Unfortunately, it gives me a warning and still removes my linebreaks.

Warning: compilation error: file /home/veracon/public_html/vorb/
element output in /home/veracon/public_html/vorb/bug.php on line 22

Warning: invalid value for method: xhtml in
/home/veracon/public_html/vorb/bug.php on line 22

(http://www.veracon.net/vorb/bug.phps)


Previous Comments:


[2005-12-11 00:51:13] [EMAIL PROTECTED]

User error. You're telling in your xsl stylesheet that you want html,
not xhtml. Changing this makes it work:

http://www.veracon.net/vorb/bug.phps

Expected result:

http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
  Test
  
  This is just a test.

Actual result:
--
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
TestThis is just a test.





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


#35625 [Bgs]: Partition table for first hard drive deleted after compile

2005-12-11 Thread peterupfold at gmail dot com
 ID:   35625
 User updated by:  peterupfold at gmail dot com
 Reported By:  peterupfold at gmail dot com
 Status:   Bogus
 Bug Type: *Compile Issues
 Operating System: Linux
 PHP Version:  5.1.1
 New Comment:

This issue did not happen with PHP 5.0.5, but on the two occasions of
compiling PHP 5.1.1, it has happened. This led me to believe it may be
an issue with PHP.

I wouldn't have reported this if it hadn't have happened twice - once
on a build of SUSE 10 I'd been using for a while, and the second time
on a new clean build of SUSE 10.


Previous Comments:


[2005-12-10 22:52:47] [EMAIL PROTECTED]

Do you **REALLY** think it's a problem of PHP or are you kidding?
Just think about it: if your a program (in your case - a compiler) eats
your HDD, the one and only place to report about it is PHP bug database,
right?



[2005-12-10 22:40:19] peterupfold at gmail dot com

Description:

After compiling & building PHP 5.1.1 as Apache module on Apache 2.2
(and 2.0 on a separate occasion), my partition table for my primary
hard drive is gone. Is on a dual boot Windows XP/SUSE Linux 10
(2.4.21-99-smp4G) box. 

A reboot just after configuring and making PHP shows that partition
table is completely gone. Primary (Windows C:) and extended (including
some Windows data partitions and Linux) are now effectively deleted
from my hard drive.

This has now occurred on two occasions, both with the source code
version. MD5 sums were checked before compile. Downloaded from one of
these:

uk.php.net or uk2.php.net (not sure which)

Reproduce code:
---
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql

make

su

make install

Expected result:

Install correctly and be able to reboot into my GRUB bootloader, to
choose Windows or Linux.

Actual result:
--
As above, the drive partition table (or possibly MBR) is gone, so the
system will not boot and my computer has no operating systems on it.
Unable to give you any more debugging info as Linux is now no longer on
my computer.





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


#35630 [Opn->Asn]: strtotime - Segmentation fault

2005-12-11 Thread johannes
 ID:   35630
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sf at hyh dot pl
-Status:   Open
+Status:   Assigned
 Bug Type: Date/time related
 Operating System: FreeBSD / Debian
-PHP Version:  5.1.1
+PHP Version:  5CVS-2005-12-11
-Assigned To:  
+Assigned To:  Derick
 New Comment:

(gdb) run -r "strtotime('5 january 2006+3 day+1 month');" 
Starting 
program: /home/johannes/src/php/cvs/PHP_5_1/sapi/cli/php 
-r "strtotime(' 
5 january 2006+3 day+1 month');" 
 
Program received signal SIGSEGV, Segmentation fault. 
0x080a4bed in timelib_set_relative (ptr=0xbfffe9d4, 
amount=3, behavior=0, 
s=0xbfffea20) at parse_date.re:544 
544 switch (relunit->unit) { 
(gdb) bt 
#0  0x080a4bed in timelib_set_relative (ptr=0xbfffe9d4, 
amount=3, behavior=0, 
s=0xbfffea20) at parse_date.re:544 
#1  0x080a6e94 in scan (s=0xbfffea20) at 
parse_date.re:1355 
#2  0x080c20ad in timelib_strtotime ( 
s=0x845c3ac "5 january 2006+3 day+1 month", len=28, 
errors=0xbfffeaa8, 
tzdb=0x837a528) at parse_date.re:1427 
#3  0x080a2e37 in zif_strtotime (ht=1, 
return_value=0x845a55c, 
return_value_ptr=0x0, this_ptr=0x0, 
return_value_used=0) 

at /home/johannes/src/php/cvs/PHP_5_1/ext/date/php_date.c:811 
#4  0x08272aec in zend_do_fcall_common_helper_SPEC 
(execute_data=0xbfffeba0) 
at zend_vm_execute.h:192 
#5  0x08275832 in ZEND_DO_FCALL_SPEC_CONST_HANDLER 
(execute_data=0xbfffeba0) 
at zend_vm_execute.h:1587 
#6  0x08272799 in execute (op_array=0x845adbc) at 
zend_vm_execute.h:92 
#7  0x0824aa6c in zend_eval_string ( 
str=0xb163 "strtotime('5 january 2006+3 day+1 
month');", 
retval_ptr=0x0, string_name=0x8320898 "Command line 
code") 

at /home/johannes/src/php/cvs/PHP_5_1/Zend/zend_execute_API.c:1049 
#8  0x0824abcc in zend_eval_string_ex ( 
str=0xb163 "strtotime('5 january 2006+3 day+1 
month');", 
retval_ptr=0x0, string_name=0x8320898 "Command line 
code", 
handle_exceptions=1) 

at /home/johannes/src/php/cvs/PHP_5_1/Zend/zend_execute_API.c:1083 
#9  0x082bab3d in main (argc=3, argv=0xbfffef34) 

at /home/johannes/src/php/cvs/PHP_5_1/sapi/cli/php_cli.c:1116 
 


Previous Comments:


[2005-12-11 09:32:19] sf at hyh dot pl

Description:

strtotime sometimes exit with signal Segmentation fault, its always
when you add some +sth and after add + without space

Reproduce code:
---
strtotime('5 january 2006+3day+1day'); // Segmentation fault
strtotime('5 january 2006+3day +1day'); // ok
strtotime('5 january 2006 +3 day +1 day'); // ok
strtotime('5 january 2006+3 day+1 month'); // Segmentation fault






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


#35630 [NEW]: strtotime - Segmentation fault

2005-12-11 Thread sf at hyh dot pl
From: sf at hyh dot pl
Operating system: FreeBSD / Debian
PHP version:  5.1.1
PHP Bug Type: Date/time related
Bug description:  strtotime - Segmentation fault

Description:

strtotime sometimes exit with signal Segmentation fault, its always when
you add some +sth and after add + without space

Reproduce code:
---
strtotime('5 january 2006+3day+1day'); // Segmentation fault
strtotime('5 january 2006+3day +1day'); // ok
strtotime('5 january 2006 +3 day +1 day'); // ok
strtotime('5 january 2006+3 day+1 month'); // Segmentation fault


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