[PHP-BUG] Req #60302 [NEW]: DateTime::createFromFormat should new static(), not new self()

2011-11-14 Thread kontakt at beberlei dot de
From: 
Operating system: 
PHP version:  Irrelevant
Package:  Date/time related
Bug Type: Feature/Change Request
Bug description:DateTime::createFromFormat should new static(), not new self()

Description:

I want to extend DateTime, but without DateTime::createFromFormat, actually
creating instances from my class, i.e. "MyDateTime::createFromFormat" this
is rather problematic.



Test script:
---
https://bugs.php.net/bug.php?id=60302&edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60302&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60302&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=60302&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60302&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60302&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60302&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=60302&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=60302&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=60302&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=60302&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=60302&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=60302&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=60302&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60302&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=60302&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=60302&r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=60302&r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=60302&r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=60302&r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=60302&r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=60302&r=mysqlcfg



Bug #60275 [Fbk->Csd]: Segfault

2011-11-12 Thread kontakt at beberlei dot de
Edit report at https://bugs.php.net/bug.php?id=60275&edit=1

 ID: 60275
 User updated by:kontakt at beberlei dot de
 Reported by:kontakt at beberlei dot de
 Summary:Segfault
-Status: Feedback
+Status: Closed
 Type:   Bug
 Package:Reproducible crash
 Operating System:   Linux
 PHP Version:5.4.0RC1
 Block user comment: N
 Private report: N

 New Comment:

Sorry my mistake, this is not an issue.


Previous Comments:

[2011-11-12 03:47:11] larue...@php.net

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 the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.




[2011-11-11 22:23:53] kontakt at beberlei dot de

more juicy details :-) I recompiled with --enable-debug and got this:

benny@benny-dell:~/code/php/wsnetbeans/doctrine2(master)$ 
/usr/local/php54/bin/php /usr/local/php531/bin/phpunit 
PHPUnit 3.5.10 by Sebastian Bergmann.

.FF..   61 / 1280 (  4%)
..F..FSS.  122 / 1280 (  9%)
...S.  183 / 1280 ( 14%)
...F...*** glibc detected *** /usr/local/php54/bin/php: free(): 
invalid pointer: 0x0186ecb8 ***
=== Backtrace: =
/lib/libc.so.6(+0x775b6)[0x7fcbd84f45b6]
/lib/libc.so.6(cfree+0x73)[0x7fcbd84fae83]
/usr/local/php54/bin/php(zend_call_function+0x7c9)[0x72ac39]
/usr/local/php54/bin/php(zend_call_method+0x1c7)[0x74d707]
/usr/local/php54/bin/php(zend_std_cast_object_tostring+0xd3)[0x759ae3]
/usr/local/php54/bin/php(zend_make_printable_zval+0x9f)[0x736c0f]
/usr/local/php54/bin/php(concat_function+0x64)[0x72eb54]
/usr/local/php54/bin/php[0x7909de]
/usr/local/php54/bin/php(execute+0x220)[0x79f510]
/usr/local/php54/bin/php(zend_call_function+0x874)[0x72ace4]
/usr/local/php54/bin/php[0x5c9304]
/usr/local/php54/bin/php[0x7a4274]
/usr/local/php54/bin/php(execute+0x220)[0x79f510]
/usr/local/php54/bin/php(zend_execute_scripts+0x16f)[0x735a2f]
/usr/local/php54/bin/php(php_execute_script+0x1d8)[0x6dab28]
/usr/local/php54/bin/php[0x7d9db4]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fcbd849bc4d]
/usr/local/php54/bin/php[0x439689]
=== Memory map: 
0040-00c74000 r-xp  08:06 4618   
/usr/local/php54/bin/php
00e74000-00f24000 r--p 00874000 08:06 4618   
/usr/local/php54/bin/php
00f24000-00f34000 rw-p 00924000 08:06 4618   
/usr/local/php54/bin/php
00f34000-00f56000 rw-p  00:00 0 
01593000-07fb3000 rw-p  00:00 0  [heap]
7fcbd000-7fcbd0021000 rw-p  00:00 0 
7fcbd0021000-7fcbd400 ---p  00:00 0 
7fcbd4417000-7fcbd4518000 rw-p  00:00 0 
7fcbd4599000-7fcbd4d1a000 rw-p  00:00 0 
7fcbd4d5b000-7fcbd4d67000 r-xp  08:06 199
/lib/libnss_files-2.11.1.so
7fcbd4d67000-7fcbd4f66000 ---p c000 08:06 199
/lib/libnss_files-2.11.1.so
7fcbd4f66000-7fcbd4f67000 r--p b000 08:06 199
/lib/libnss_files-2.11.1.so
7fcbd4f67000-7fcbd4f68000 rw-p c000 08:06 199
/lib/libnss_files-2.11.1.so
7fcbd4f68000-7fcbd4f7 r-xp  08:06 4614   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so
7fcbd4f7-7fcbd517 ---p 8000 08:06 4614   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so
7fcbd517-7fcbd5171000 r--p 8000 08:06 4614   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so
7fcbd5171000-7fcbd5172000 rw-p 9000 08:06 4614   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so
7fcbd5172000-7fcbd5179000 r-xp  08:06 4613   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so
7fcbd5179000-7fcbd5378000 ---p 7000 08:06 4613   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so
7fcbd5378000-7fcbd5379000 r--p 6000 08:06 4613   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so
7fcbd5379000-7fcbd537a000 rw-p 7000 08:06 4613   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-2010

[PHP-BUG] Bug #60278 [NEW]: BC Break + warning in array_diff with nested arrays

2011-11-12 Thread kontakt at beberlei dot de
From: 
Operating system: 
PHP version:  5.4.0RC1
Package:  Arrays related
Bug Type: Bug
Bug description:BC Break + warning in array_diff with nested arrays

Description:

A warning occurs when you call array_diff with one nested and one flat
array. This code worked on 5.3.

Test script:
---
 "id");
$b = array(0 => array("foo" => "bar"));

$d = array_diff($a, $b);

var_dump($d);

Expected result:

array(1) {
  [0]=>
  string(2) "id"
}


Actual result:
--
Notice: Array to string conversion in
/home/benny/code/php/tests/array_diff.php on line 6
array(1) {
  [0]=>
  string(2) "id"
}


-- 
Edit bug report at https://bugs.php.net/bug.php?id=60278&edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60278&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60278&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=60278&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60278&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60278&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60278&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=60278&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=60278&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=60278&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=60278&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=60278&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=60278&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=60278&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60278&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=60278&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=60278&r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=60278&r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=60278&r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=60278&r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=60278&r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=60278&r=mysqlcfg



Bug #60275 [Com]: Segfault

2011-11-11 Thread kontakt at beberlei dot de
Edit report at https://bugs.php.net/bug.php?id=60275&edit=1

 ID: 60275
 Comment by: kontakt at beberlei dot de
 Reported by:kontakt at beberlei dot de
 Summary:Segfault
 Status: Open
 Type:   Bug
 Package:Reproducible crash
 Operating System:   Linux
 PHP Version:5.4.0RC1
 Block user comment: N
 Private report: N

 New Comment:

more juicy details :-) I recompiled with --enable-debug and got this:

benny@benny-dell:~/code/php/wsnetbeans/doctrine2(master)$ 
/usr/local/php54/bin/php /usr/local/php531/bin/phpunit 
PHPUnit 3.5.10 by Sebastian Bergmann.

.FF..   61 / 1280 (  4%)
..F..FSS.  122 / 1280 (  9%)
...S.  183 / 1280 ( 14%)
...F...*** glibc detected *** /usr/local/php54/bin/php: free(): 
invalid pointer: 0x0186ecb8 ***
=== Backtrace: =
/lib/libc.so.6(+0x775b6)[0x7fcbd84f45b6]
/lib/libc.so.6(cfree+0x73)[0x7fcbd84fae83]
/usr/local/php54/bin/php(zend_call_function+0x7c9)[0x72ac39]
/usr/local/php54/bin/php(zend_call_method+0x1c7)[0x74d707]
/usr/local/php54/bin/php(zend_std_cast_object_tostring+0xd3)[0x759ae3]
/usr/local/php54/bin/php(zend_make_printable_zval+0x9f)[0x736c0f]
/usr/local/php54/bin/php(concat_function+0x64)[0x72eb54]
/usr/local/php54/bin/php[0x7909de]
/usr/local/php54/bin/php(execute+0x220)[0x79f510]
/usr/local/php54/bin/php(zend_call_function+0x874)[0x72ace4]
/usr/local/php54/bin/php[0x5c9304]
/usr/local/php54/bin/php[0x7a4274]
/usr/local/php54/bin/php(execute+0x220)[0x79f510]
/usr/local/php54/bin/php(zend_execute_scripts+0x16f)[0x735a2f]
/usr/local/php54/bin/php(php_execute_script+0x1d8)[0x6dab28]
/usr/local/php54/bin/php[0x7d9db4]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fcbd849bc4d]
/usr/local/php54/bin/php[0x439689]
=== Memory map: 
0040-00c74000 r-xp  08:06 4618   
/usr/local/php54/bin/php
00e74000-00f24000 r--p 00874000 08:06 4618   
/usr/local/php54/bin/php
00f24000-00f34000 rw-p 00924000 08:06 4618   
/usr/local/php54/bin/php
00f34000-00f56000 rw-p  00:00 0 
01593000-07fb3000 rw-p  00:00 0  [heap]
7fcbd000-7fcbd0021000 rw-p  00:00 0 
7fcbd0021000-7fcbd400 ---p  00:00 0 
7fcbd4417000-7fcbd4518000 rw-p  00:00 0 
7fcbd4599000-7fcbd4d1a000 rw-p  00:00 0 
7fcbd4d5b000-7fcbd4d67000 r-xp  08:06 199
/lib/libnss_files-2.11.1.so
7fcbd4d67000-7fcbd4f66000 ---p c000 08:06 199
/lib/libnss_files-2.11.1.so
7fcbd4f66000-7fcbd4f67000 r--p b000 08:06 199
/lib/libnss_files-2.11.1.so
7fcbd4f67000-7fcbd4f68000 rw-p c000 08:06 199
/lib/libnss_files-2.11.1.so
7fcbd4f68000-7fcbd4f7 r-xp  08:06 4614   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so
7fcbd4f7-7fcbd517 ---p 8000 08:06 4614   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so
7fcbd517-7fcbd5171000 r--p 8000 08:06 4614   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so
7fcbd5171000-7fcbd5172000 rw-p 9000 08:06 4614   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_pgsql.so
7fcbd5172000-7fcbd5179000 r-xp  08:06 4613   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so
7fcbd5179000-7fcbd5378000 ---p 7000 08:06 4613   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so
7fcbd5378000-7fcbd5379000 r--p 6000 08:06 4613   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so
7fcbd5379000-7fcbd537a000 rw-p 7000 08:06 4613   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so
7fcbd537a000-7fcbd5404000 r-xp  08:06 3410707
/usr/lib/libsqlite3.so.0.8.6
7fcbd5404000-7fcbd5603000 ---p 0008a000 08:06 3410707
/usr/lib/libsqlite3.so.0.8.6
7fcbd5603000-7fcbd5605000 r--p 00089000 08:06 3410707
/usr/lib/libsqlite3.so.0.8.6
7fcbd5605000-7fcbd5607000 rw-p 0008b000 08:06 3410707
/usr/lib/libsqlite3.so.0.8.6
7fcbd5607000-7fcbd560d000 r-xp  08:06 4616   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_sqlite.so
7fcbd560d000-7fcbd580c000 ---p 6000 08:06 4616   
/usr/local/php54/lib/php/extensions/no-debug-non-zts-20100525/pdo_sqlite.so
7fcbd580c000-7fcbd580d000 r--p 5000 08:06 4616   
/usr/local/p

Bug #60275 [Com]: Segfault

2011-11-11 Thread kontakt at beberlei dot de
Edit report at https://bugs.php.net/bug.php?id=60275&edit=1

 ID: 60275
 Comment by: kontakt at beberlei dot de
 Reported by:kontakt at beberlei dot de
 Summary:Segfault
 Status: Open
 Type:   Bug
 Package:Reproducible crash
 Operating System:   Linux
 PHP Version:5.4.0RC1
 Block user comment: N
 Private report: N

 New Comment:

Got another one in another scenario with I think almost the same stack trace:

#0  0x in ?? ()
#1  0x007a3bcb in zend_do_fcall_common_helper_SPEC 
(execute_data=0x77f8bed0) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_vm_execute.h:693
#2  0x0079f510 in execute (op_array=0x1dec230) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_vm_execute.h:410
#3  0x0072ace4 in zend_call_function (fci=0x7fffb5f0, 
fci_cache=)
at /home/benny/Downloads/php5.4-201105301830/Zend/zend_execute_API.c:957
#4  0x0065a1f7 in zif_call_user_func_array (ht=, 
return_value=0x1dfe278, return_value_ptr=, 
this_ptr=, return_value_used=) at 
/home/benny/Downloads/php5.4-201105301830/ext/standard/basic_functions.c:4729
#5  0x007a4274 in zend_do_fcall_common_helper_SPEC 
(execute_data=0x77f8acc8) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_vm_execute.h:642
#6  0x0079f510 in execute (op_array=0x1de0918) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_vm_execute.h:410
#7  0x0072ace4 in zend_call_function (fci=0x7fffb910, 
fci_cache=)
at /home/benny/Downloads/php5.4-201105301830/Zend/zend_execute_API.c:957
#8  0x005c9304 in zim_reflection_method_invokeArgs (ht=, return_value=0x1df7dc0, return_value_ptr=, 
this_ptr=, return_value_used=) at 
/home/benny/Downloads/php5.4-201105301830/ext/reflection/php_reflection.c:2902
#9  0x007a4274 in zend_do_fcall_common_helper_SPEC 
(execute_data=0x77f899e0) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_vm_execute.h:642
#10 0x0079f510 in execute (op_array=0x14c06a8) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_vm_execute.h:410
#11 0x00735a2f in zend_execute_scripts (type=8, retval=, file_count=3) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend.c:1212
#12 0x006dab28 in php_execute_script (primary_file=) at /home/benny/Downloads/php5.4-201105301830/main/main.c:2352
#13 0x007d9db4 in main (argc=, argv=) at 
/home/benny/Downloads/php5.4-201105301830/sapi/cli/php_cli.c:1136


Previous Comments:

[2011-11-11 21:54:52] kontakt at beberlei dot de

Description:

This runs against the Doctrine 2 testsuite and fails at the same location all 
the time. I will investigate more, this is just so i don't forget the progress 
for now :)

Program received signal SIGSEGV, Segmentation fault.
_zend_mm_free_int (heap=0xf56300, p=0x77f8b7a8) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_alloc.c:2091
2091if (ZEND_MM_IS_FREE_BLOCK(next_block)) {
(gdb) bt
#0  _zend_mm_free_int (heap=0xf56300, p=0x77f8b7a8) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_alloc.c:2091
#1  0x0072ac39 in zend_call_function (fci=0x7fffb520, fci_cache=
)
at /home/benny/Downloads/php5.4-201105301830/Zend/zend_execute_API.c:1018
#2  0x0074d707 in zend_call_method (object_pp=0x7fffb648, 
obj_ce=0x77d2d68, fn_proxy=0x77d2ed0, function_name=0xbdc24b "__tostring", 
function_name_len=-303805192, retval_ptr_ptr=, 
param_count=0, arg1=0x0, arg2=0x0)
at /home/benny/Downloads/php5.4-201105301830/Zend/zend_interfaces.c:97
#3  0x00759ae3 in zend_std_cast_object_tostring 
(readobj=0x77f8b7a8, 
writeobj=0x7fffb6d0, type=)
at /home/benny/Downloads/php5.4-
201105301830/Zend/zend_object_handlers.c:1472
#4  0x00736c0f in zend_make_printable_zval (expr=0xf56300, 
expr_copy=0x7fffb6d0, use_copy=0x7fffb708)
at /home/benny/Downloads/php5.4-201105301830/Zend/zend.c:257
#5  0x0072eb54 in concat_function (result=0x77f8b7c8, 
op1=0x77f8b728, op2=0x77f8b7a8)
at /home/benny/Downloads/php5.4-201105301830/Zend/zend_operators.c:1246
#6  0x007909de in ZEND_CONCAT_SPEC_TMP_TMP_HANDLER 
(execute_data=0x77f8b548) at /home/benny/Downloads/php5.4-
201105301830/Zend/zend_vm_execute.h:7881
#7  0x0079f510 in execute (op_array=0x64d8010) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_vm_execute.h:410
#8  0x0072ace4 in zend_call_function (fci=0x7fffb910, fci_cache=
)
at /home/benny/Downloads/php5.4-201105301830/Zend/zend_execute_API.c:957
#9  0x005c9304 in zim_reflection_method_invokeArgs (ht=, return_value=0x77d0f78, return_value_ptr=, 
this_ptr=, return_value_used=) at 
/home/benny/Downloads/php5.4-201105301830/ext/reflection/php_reflection.c:2902
#10 0x

[PHP-BUG] Bug #60275 [NEW]: Segfault

2011-11-11 Thread kontakt at beberlei dot de
From: 
Operating system: Linux
PHP version:  5.4.0RC1
Package:  Reproducible crash
Bug Type: Bug
Bug description:Segfault 

Description:

This runs against the Doctrine 2 testsuite and fails at the same location
all 
the time. I will investigate more, this is just so i don't forget the
progress 
for now :)

Program received signal SIGSEGV, Segmentation fault.
_zend_mm_free_int (heap=0xf56300, p=0x77f8b7a8) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_alloc.c:2091
2091if (ZEND_MM_IS_FREE_BLOCK(next_block)) {
(gdb) bt
#0  _zend_mm_free_int (heap=0xf56300, p=0x77f8b7a8) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_alloc.c:2091
#1  0x0072ac39 in zend_call_function (fci=0x7fffb520,
fci_cache=
)
at
/home/benny/Downloads/php5.4-201105301830/Zend/zend_execute_API.c:1018
#2  0x0074d707 in zend_call_method (object_pp=0x7fffb648, 
obj_ce=0x77d2d68, fn_proxy=0x77d2ed0, function_name=0xbdc24b "__tostring",

function_name_len=-303805192, retval_ptr_ptr=, 
param_count=0, arg1=0x0, arg2=0x0)
at /home/benny/Downloads/php5.4-201105301830/Zend/zend_interfaces.c:97
#3  0x00759ae3 in zend_std_cast_object_tostring
(readobj=0x77f8b7a8, 
writeobj=0x7fffb6d0, type=)
at /home/benny/Downloads/php5.4-
201105301830/Zend/zend_object_handlers.c:1472
#4  0x00736c0f in zend_make_printable_zval (expr=0xf56300, 
expr_copy=0x7fffb6d0, use_copy=0x7fffb708)
at /home/benny/Downloads/php5.4-201105301830/Zend/zend.c:257
#5  0x0072eb54 in concat_function (result=0x77f8b7c8, 
op1=0x77f8b728, op2=0x77f8b7a8)
at
/home/benny/Downloads/php5.4-201105301830/Zend/zend_operators.c:1246
#6  0x007909de in ZEND_CONCAT_SPEC_TMP_TMP_HANDLER 
(execute_data=0x77f8b548) at /home/benny/Downloads/php5.4-
201105301830/Zend/zend_vm_execute.h:7881
#7  0x0079f510 in execute (op_array=0x64d8010) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_vm_execute.h:410
#8  0x0072ace4 in zend_call_function (fci=0x7fffb910,
fci_cache=
)
at
/home/benny/Downloads/php5.4-201105301830/Zend/zend_execute_API.c:957
#9  0x005c9304 in zim_reflection_method_invokeArgs (ht=, return_value=0x77d0f78, return_value_ptr=, 
this_ptr=, return_value_used=) at 
/home/benny/Downloads/php5.4-201105301830/ext/reflection/php_reflection.c:2902
#10 0x007a4274 in zend_do_fcall_common_helper_SPEC 
(execute_data=0x77f899e0) at /home/benny/Downloads/php5.4-
201105301830/Zend/zend_vm_execute.h:642
#11 0x0079f510 in execute (op_array=0x1a64848) at 
/home/benny/Downloads/php5.4-201105301830/Zend/zend_vm_execute.h:410
#12 0x00735a2f in zend_execute_scripts (type=8, retval=, file_count=3) at /home/benny/Downloads/php5.4-
201105301830/Zend/zend.c:1212
#13 0x006dab28 in php_execute_script (primary_file=) at /home/benny/Downloads/php5.4-201105301830/main/main.c:2352
#14 0x007d9db4 in main (argc=, argv=) at /home/benny/Downloads/php5.4-
201105301830/sapi/cli/php_cli.c:1136



-- 
Edit bug report at https://bugs.php.net/bug.php?id=60275&edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60275&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60275&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=60275&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60275&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60275&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60275&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=60275&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=60275&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=60275&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=60275&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=60275&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=60275&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=60275&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60275&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=60275&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=60275&r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=60275&r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=60275&r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=60275&r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=60275&r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=60275&

[PHP-BUG] Bug #55578 [NEW]: Segfault on implode/concat

2011-09-03 Thread kontakt at beberlei dot de
From: 
Operating system: 
PHP version:  5.4.0alpha3
Package:  Reproducible crash
Bug Type: Bug
Bug description:Segfault on implode/concat

Description:

I found this issue running the Doctrine 2 testsuite with PHP 5.4.0 alpha 3
and could isolate the segfault behavior to a very simple php script.

I cant make anything out of the backtrace with regard to the nature of the
failing. But it seems to have something to do with the __toString() that
gets implicitly called.

Test script:
---
 '(',
'post' => ')',
'separator' => ' AND ',
);

class Foo
{
public function __toString()
{
return 'Foo';
}
}   

function test($options, $queryPart)
{
return (isset($options['pre']) ? $options['pre'] : '')
 . (is_array($queryPart) ? implode($options['separator'],
$queryPart) : $queryPart)
 . (isset($options['post']) ? $options['post'] : '');
}

#echo test($options, "test"); // comment this in and the line after works
aswell
echo test($options, new Foo()); // this segfaults

Expected result:

(Foo)




Actual result:
--
Segfault, Backtrace is:

#0  gc_remove_zval_from_buffer (zv=0xb5f5b1b0) at
/home/benny/downloads/php-5.4.0alpha3/Zend/zend_gc.c:265
#1  0x083723c8 in _zval_ptr_dtor (zval_ptr=0x8913da8) at
/home/benny/downloads/php-5.4.0alpha3/Zend/zend_execute_API.c:437
#2  0x08374065 in zend_call_function (fci=0xbfffc8ac, fci_cache=0xbfffc8d0)
at /home/benny/downloads/php-5.4.0alpha3/Zend/zend_execute_API.c:1018
#3  0x0839660b in zend_call_method (object_pp=0xbfffc9a0, obj_ce=, fn_proxy=0xb5f76d38, function_name=0x8866e95 "__tostring",
function_name_len=10, 
retval_ptr_ptr=0xbfffc97c, param_count=0, arg1=0x0, arg2=0x0) at
/home/benny/downloads/php-5.4.0alpha3/Zend/zend_interfaces.c:97
#4  0x083a0f11 in zend_std_cast_object_tostring (readobj=0xb5f5b1b0,
writeobj=0xbfffca48, type=6)
at
/home/benny/downloads/php-5.4.0alpha3/Zend/zend_object_handlers.c:1472
#5  0x0838152b in zend_make_printable_zval (expr=0xb5f5b1b0,
expr_copy=0xbfffca48, use_copy=0xbfffca68) at
/home/benny/downloads/php-5.4.0alpha3/Zend/zend.c:260
#6  0x0837c678 in concat_function (result=0xb5f5b1c0, op1=0xb5f5b170,
op2=0xb5f5b1b0) at
/home/benny/downloads/php-5.4.0alpha3/Zend/zend_operators.c:1243
#7  0x083d4d53 in ZEND_CONCAT_SPEC_TMP_TMP_HANDLER
(execute_data=0xb5f5b0f8) at
/home/benny/downloads/php-5.4.0alpha3/Zend/zend_vm_execute.h:8133
#8  0x083e52e6 in execute (op_array=0x8a5e7b0) at
/home/benny/downloads/php-5.4.0alpha3/Zend/zend_vm_execute.h:410
#9  0x08381d82 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /home/benny/downloads/php-5.4.0alpha3/Zend/zend.c:1262
#10 0x083247a2 in php_execute_script (primary_file=0xbfffeebc) at
/home/benny/downloads/php-5.4.0alpha3/main/main.c:2385
#11 0x0842005e in do_cli (argc=2, argv=0xb144) at
/home/benny/downloads/php-5.4.0alpha3/sapi/cli/php_cli.c:983
#12 0x084208d7 in main (argc=2, argv=0xb144) at
/home/benny/downloads/php-5.4.0alpha3/sapi/cli/php_cli.c:1356

-- 
Edit bug report at https://bugs.php.net/bug.php?id=55578&edit=1
-- 
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=55578&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=55578&r=trysnapshot53
Try a snapshot (trunk):  
https://bugs.php.net/fix.php?id=55578&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=55578&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55578&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=55578&r=alreadyfixed
Need backtrace:  
https://bugs.php.net/fix.php?id=55578&r=needtrace
Need Reproduce Script:   
https://bugs.php.net/fix.php?id=55578&r=needscript
Try newer version:   
https://bugs.php.net/fix.php?id=55578&r=oldversion
Not developer issue: 
https://bugs.php.net/fix.php?id=55578&r=support
Expected behavior:   
https://bugs.php.net/fix.php?id=55578&r=notwrong
Not enough info: 
https://bugs.php.net/fix.php?id=55578&r=notenoughinfo
Submitted twice: 
https://bugs.php.net/fix.php?id=55578&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=55578&r=globals
PHP 4 support discontinued:  
https://bugs.php.net/fix.php?id=55578&r=php4
Daylight Savings:https://bugs.php.net/fix.php?id=55578&r=dst
IIS Stability:   
https://bugs.php.net/fix.php?id=55578&r=isapi
Install GNU Sed: 
https://bugs.php.net/fix.php?id=55578&r=gnused
Floating point limitations:  
https://bugs.php.net/fix.php?id=55578&r=float
No Zend Extensions:  
https://bugs.php.net/fix.php?id=55578&r=nozend
MySQL Configuration Error:   
https://bugs.php.net/fix.php?id=55578&r=mysqlcfg



[PHP-BUG] Bug #53380 [NEW]: fgets() hangs on repetitive connection to same url

2010-11-22 Thread kontakt at beberlei dot de
From: 
Operating system: Ubuntu 10.10
PHP version:  5.3.3
Package:  Sockets related
Bug Type: Bug
Bug description:fgets() hangs on repetitive connection to same url

Description:

I stumbled into this bug where fgets() hangs on me as long as the
connection timeout with a http socket resource (CouchDB webserver).



The reproduce code is a bit longish as i think it has to do with the
fetching of the same url twice. It makes no difference though if i use Keep
Alive or close Connections after usage.



Code: http://pastie.org/1317962

Xdebug Output: http://pastie.org/1317997



Strace output is attached.


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



Bug #52958 [Com]: Segfault in PDO_OCI on cleanup after running a long testsuite

2010-10-06 Thread kontakt at beberlei dot de
Edit report at http://bugs.php.net/bug.php?id=52958&edit=1

 ID: 52958
 Comment by: kontakt at beberlei dot de
 Reported by:kontakt at beberlei dot de
 Summary:Segfault in PDO_OCI on cleanup after running a long
 testsuite
 Status: Assigned
 Type:   Bug
 Package:Oracle related
 Operating System:   Ubuntu
 PHP Version:5.3.3
 Assigned To:sixd
 Block user comment: N

 New Comment:

As an additional info, i changed to using the OCI 11.1 Instaclient
Library to compile against with the same error as described in the
original report.



When applying the patch this sort of breaks it completly for both my
other bug http://bugs.php.net/bug.php?id=52957 and this a comparable
error :-)



I get a binary output of a screen and this error:



Errors in file :

OCI-21500: internal error code, arguments: [kghfrempty:ds], [0xC84EB3C],
[], [], [], [], [], []



GDB has the following backtraces:



Program received signal SIGSEGV, Segmentation fault.

0x02adb4cc in slaac_int () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

(gdb) bt

#0  0x02adb4cc in slaac_int () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#1  0x02adb406 in slrac () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#2  0x0392acaf in sskgds_plt_adjust () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#3  0x0392ad69 in sskgds_find_rtn_hdr () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#4  0x039210ce in skgdstpcs () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#5  0x036d5435 in kgdsdst () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#6  0x031a3b6e in skgudmp () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#7  0x036a0938 in kgeriv_int () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#8  0x036a08af in kgeriv () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#9  0x036a325c in kgeric1 () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#10 0x03687682 in kgherror () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#11 0x03e98eea in kghfrmrg () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#12 0x03e97eb0 in kghfre () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#13 0x03df3cfb in kpuhhfre () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#14 0x0271866e in kpufhndl0 () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#15 0x02715dfe in kpufhndl () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#16 0x026eaea6 in OCIHandleFree () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#17 0x024989d3 in oci_handle_closer (dbh=0x9a02d80) at
/home/benny/downloads/php-5.3.3/ext/pdo_oci/oci_driver.c:193





Program received signal SIGSEGV, Segmentation fault.

0x02adb4cc in slaac_int () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

(gdb) bt

#0  0x02adb4cc in slaac_int () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#1  0x02adb406 in slrac () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#2  0x0392acaf in sskgds_plt_adjust () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#3  0x0392ad69 in sskgds_find_rtn_hdr () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#4  0x039210ce in skgdstpcs () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#5  0x036d5435 in kgdsdst () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#6  0x031a3b6e in skgudmp () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#7  0x036a0540 in kgerinv_internal () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#8  0x036a04cb in kgerinv () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#9  0x036a2493 in kgerin () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#10 0x03688378 in kghnerror () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#11 0x03e9cd98 in kghfrempty () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#12 0x03e9a7af in kghgex () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#13 0x03e9bcc0 in kghfnd () from
/home/benny/downl

Bug #52957 [Com]: Segfault in PDO_OCI on a large testsuite inside prepare Stmt

2010-09-29 Thread kontakt at beberlei dot de
Edit report at http://bugs.php.net/bug.php?id=52957&edit=1

 ID: 52957
 Comment by: kontakt at beberlei dot de
 Reported by:kontakt at beberlei dot de
 Summary:Segfault in PDO_OCI on a large testsuite inside
 prepare Stmt
 Status: Open
 Type:   Bug
 Package:Oracle related
 Operating System:   Ubuntu
 PHP Version:5.3.3
 Block user comment: N

 New Comment:

New backtrace with Oracle Instaclient 11.2.0.1:



OCI-21500: internal error code, arguments: [kghfrempty:ds], [0xA1666DC],
[], [], [], [], [], []



Program received signal SIGSEGV, Segmentation fault.

0x02a1f4cc in slaac_int () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

(gdb) bt

#0  0x02a1f4cc in slaac_int () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#1  0x02a1f406 in slrac () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#2  0x0386ecaf in sskgds_plt_adjust () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#3  0x0386ed69 in sskgds_find_rtn_hdr () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#4  0x038650ce in skgdstpcs () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#5  0x03619435 in kgdsdst () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#6  0x030e7b6e in skgudmp () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#7  0x035e4540 in kgerinv_internal () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#8  0x035e44cb in kgerinv () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#9  0x035e6493 in kgerin () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#10 0x035cc378 in kghnerror () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#11 0x03de0d98 in kghfrempty () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#12 0x03dde7af in kghgex () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#13 0x03ddfcc0 in kghfnd () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#14 0x03ddeb33 in kghalo () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#15 0x03dde3c4 in kghgex () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#16 0x03ddfcc0 in kghfnd () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#17 0x03dd9e65 in kghprmalo () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#18 0x03dd9637 in kghalp () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#19 0x0260e7fa in kpuhhalpuc () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#20 0x026509b4 in kpuexAllocPrefMem () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#21 0x026501c5 in kpuexInitStmh () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#22 0x0264ef18 in kpuexCallback () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#23 0x03da2e23 in ttcdrv () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#24 0x03d5d3b8 in nioqwa () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#25 0x03d481e5 in upirtrc () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#26 0x03d52a60 in kpurcsc () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#27 0x03d4cbe5 in kpuexec () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#28 0x03d48bbe in OCIStmtExecute () from
/home/benny/downloads/oracle-instaclient/instantclient_11_2/libclntsh.so.11.1

#29 0x023deb92 in oci_stmt_execute (stmt=0xa826ec0) at
/home/benny/downloads/php-5.3.3/ext/pdo_oci/oci_statement.c:144

#30 0x023bf8ba in zim_PDOStatement_execute (ht=1,
return_value=0xa827f50, return_value_ptr=0x0, this_ptr=0xa837d0c,
return_value_used=0) at
/home/benny/downloads/php-5.3.3/ext/pdo/pdo_stmt.c:508

#31 0x0839c721 in zend_do_fcall_common_helper_SPEC
(execute_data=0x8b1d590) at
/home/benny/downloads/php-5.3.3/Zend/zend_vm_execute.h:316

#32 0x08378246 in execute (op_array=0xa637b80) at
/home/benny/downloads/php-5.3.3/Zend/zend_vm_execute.h:107

#33 0x0834bcae in zend_call_function (fci=0xbfffcbd8,
fci_cache=0xbfffcbfc) at
/home/benny/downloads/php-5.3.3/Zend/zend_execute_API.c:963

#34 0x081f2a55 in zim_reflection_method_invokeArgs (ht=2,
return_value=0xa81edc8, return_value_ptr=0x0, this_ptr=0xa80892c,
return_value_used=1)

at
/

[PHP-BUG] Bug #52958 [NEW]: Segfault in PDO_OCI on cleanup after running a long testsuite

2010-09-29 Thread kontakt at beberlei dot de
From: 
Operating system: Ubuntu
PHP version:  5.3.3
Package:  Oracle related
Bug Type: Bug
Bug description:Segfault in PDO_OCI on cleanup after running a long testsuite

Description:

I couldnt reproduce this (tried creating lots of connections, queries and
statements to simulate a long running testsuite), so here is the GDB report
without a reproduce case:

Actual result:
--
#0  0x019a1138 in slrac () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#1  0x0195a7c2 in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#2  0x0197883e in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#3  0x01979237 in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#4  0x0195b163 in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#5  0x0196e9e7 in kghfrh_internal () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#6  0x0196eb8e in kghfrh () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#7  0x01548179 in kpuhhfrh () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#8  0x0155de34 in kpufhndl0 () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#9  0x0155c7d0 in kpufhndl () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#10 0x0162e644 in OCIHandleFree () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#11 0x0240e9d3 in oci_handle_closer (dbh=0x9a74700) at
/home/benny/downloads/php-5.3.3/ext/pdo_oci/oci_driver.c:193

#12 0x023e868e in dbh_free (dbh=0x98f78a0) at
/home/benny/downloads/php-5.3.3/ext/pdo/pdo_dbh.c:1511

#13 0x0837ad3c in zend_objects_store_del_ref_by_handle_ex (handle=338,
handlers=0x23f9140) at
/home/benny/downloads/php-5.3.3/Zend/zend_objects_API.c:220

#14 0x0837ad6f in zend_objects_store_del_ref (zobject=0x9aeadec) at
/home/benny/downloads/php-5.3.3/Zend/zend_objects_API.c:172

#15 0x0834edf5 in _zval_dtor (zval_ptr=0x8edd710) at
/home/benny/downloads/php-5.3.3/Zend/zend_variables.h:35

#16 _zval_ptr_dtor (zval_ptr=0x8edd710) at
/home/benny/downloads/php-5.3.3/Zend/zend_execute_API.c:443

#17 0x08365dd8 in zend_hash_destroy (ht=0x8ed59f0) at
/home/benny/downloads/php-5.3.3/Zend/zend_hash.c:526

#18 0x083776c3 in zend_object_std_dtor (object=0x987b958) at
/home/benny/downloads/php-5.3.3/Zend/zend_objects.c:45

#19 0x083776f2 in zend_objects_free_object_storage (object=0x987b958) at
/home/benny/downloads/php-5.3.3/Zend/zend_objects.c:128

#20 0x0837a88e in zend_objects_store_free_object_storage
(objects=0x8872590) at
/home/benny/downloads/php-5.3.3/Zend/zend_objects_API.c:92

#21 0x0834f14d in shutdown_executor () at
/home/benny/downloads/php-5.3.3/Zend/zend_execute_API.c:302

#22 0x0835aaa3 in zend_deactivate () at
/home/benny/downloads/php-5.3.3/Zend/zend.c:890

#23 0x08309633 in php_request_shutdown (dummy=0x0) at
/home/benny/downloads/php-5.3.3/main/main.c:1633

#24 0x083dc986 in main (argc=6, argv=0xb234) at
/home/benny/downloads/php-5.3.3/sapi/cli/php_cli.c:1373





* Internal heap ERROR kghfrh:ds addr=0x926435c ds=0x8a5f128 *



* Dump of memory around addr 0x926435c: 

9263350  []

9263360      []

Repeat 61 times

9263740    00021200  []

9263750    0100  []

9263760      []

Repeat 1 times

9263780 0003 000B000A  0926378C  [.7&.]

9263790 0926378C 09264328 08A5DADC   [.7&.(C&.]

92637A0 092637A0 092637A0    [.7&..7&.]

92637B0      []

Repeat 3 times

92637F0   C325 09263320  [%... 3&.]

9263800 08A4AF68 08A5AB78    [h...x...]

9263810      []

Repeat 47 times

9263B10    1821  [!...]

9263B20 092637F8 08A4AF14 08A5DE6C 08A5DA3C  [.7&.l...<...]

9263B30 180D  020AAFC0 84000802  []

9263B40  08A5DE5C 08A5DA5C 08A5DEF8  [\...\...]

9263B50 B89E  08A5E0FC 08A5E0FC  []

9263B60      []

Repeat 83 times

92640A0    B082  []

92640B0 09263B50 02087438 000A12CD 01006600  [P;&.8t...f..]

92640C0 00080C02 0100 0100 B092  []

92640D0 09263B50 02087438 000A12CD 01007700  [P;&.8t...w..]

92640E0 00080C02 0100 0100 63CA0300  [...c]

92640F0 7F6

[PHP-BUG] Bug #52957 [NEW]: Segfault in PDO_OCI on a large testsuite inside prepare Stmt

2010-09-29 Thread kontakt at beberlei dot de
From: 
Operating system: Ubuntu
PHP version:  5.3.3
Package:  Oracle related
Bug Type: Bug
Bug description:Segfault in PDO_OCI on a large testsuite inside prepare Stmt

Description:

I tried very hard to reproduce this in a simple phpt but i couldn't. This
segfault happens on Ubuntu + PHP 5.3.3 + Oracle 10.1 running the Doctrine 2
testsuite with the PDO_OCI Driver.



Doctrine 2 uses mostly $stmt->bindValue() always with the PDO::PARAM_*
constants and an unqualified execute(). The segfault is produced by this
SQL query:



$stmt = $dbh->prepare("SELECT t1.id AS ID2, t1.name AS NAME3, t0.salary
AS SALARY4, t0.department AS DEPARTMENT5, t1.spouse_id AS spouse_id6,
t1.discr, t7.title AS TITLE8, t7.car_id AS car_id9 FROM company_employees
t0 INNER JOIN company_persons t1 ON t0.id = t1.id LEFT JOIN
company_managers t7 ON t0.id = t7.id WHERE t1.id = ?");

$stmt->bindValue(1, "1", PDO::PARAM_INT);

$stmt->execute();



Here is the GDB Backtrace and Memory Dump:



Program received signal SIGSEGV, Segmentation fault.

0x019a1138 in slrac () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

(gdb) bt

#0  0x019a1138 in slrac () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#1  0x0195a7c2 in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#2  0x0197883e in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#3  0x01979237 in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#4  0x0195b163 in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#5  0x0196fc03 in kghfrempty () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#6  0x019645cd in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#7  0x01966a0c in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#8  0x019686b2 in kghalo () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#9  0x01964261 in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#10 0x01966a0c in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#11 0x0196755b in ?? () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#12 0x01969a60 in kghalp () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#13 0x01547b9f in kpuhhalpuc () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#14 0x01553ade in kpuexAllocPrefMem () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#15 0x01554935 in kpuexInitStmh () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#16 0x01554de5 in kpuexCallback () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#17 0x018d6508 in ttcdrv () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#18 0x017bd7d0 in nioqwa () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#19 0x0162aa3c in upirtrc () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#20 0x015a04e2 in kpurcsc () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#21 0x01555eef in kpuexecv8 () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#22 0x0155847f in kpuexec () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#23 0x0162f58a in OCIStmtExecute () from
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/libclntsh.so.10.1

#24 0x02410b92 in oci_stmt_execute (stmt=0x0) at
/home/benny/downloads/php-5.3.3/ext/pdo_oci/oci_statement.c:144

#25 0x023f18ba in zim_PDOStatement_execute (ht=1, return_value=0xaba168c,
return_value_ptr=0x0, this_ptr=0xaba15e8, return_value_used=0)

at /home/benny/downloads/php-5.3.3/ext/pdo/pdo_stmt.c:508

#26 0x0837b26e in execute_internal (execute_data_ptr=0x8ac9e7c,
return_value_used=0) at
/home/benny/downloads/php-5.3.3/Zend/zend_execute.c:1261

#27 0x01304d04 in xdebug_execute_internal (current_execute_data=0x8ac9e7c,
return_value_used=0) at /tmp/pear/temp/xdebug/xdebug.c:1339

#28 0x083a1983 in zend_do_fcall_common_helper_SPEC (execute_data=0x8ac9e7c)
at /home/benny/downloads/php-5.3.3/Zend/zend_vm_execute.h:318

#29 0x0837d696 in execute (op_array=0x9d56388) at
/home/benny/downloads/php-5.3.3/Zend/zend_vm_execute.h:107

#30 0x013049b3 in xdebug_execute (op_array=0x9d56388) at
/tmp/pear/temp/xdebug/xdebug.c:1272

#31 0x083a16cb in zend_do_fcall_common_helper_SPEC (execute_data=0x8ac9ca4)
at /home/benny/downloads/php-5.3.3/Zend/zend_vm_execute.h:340

#32 0x0837d696 in execute (op_array=0xabc49a4) at
/home/benny/downloads/php-5.3.3/Zend/zend_vm_execute.h:107



* Inter

[PHP-BUG] Bug #52955 [NEW]: Test-Failure ext/pdo_oci/tests/pdo_oci_attr_client.php using deprecated split()

2010-09-29 Thread kontakt at beberlei dot de
From: 
Operating system: Linux
PHP version:  5.3.3
Package:  Oracle related
Bug Type: Bug
Bug description:Test-Failure ext/pdo_oci/tests/pdo_oci_attr_client.php using 
deprecated split()

Description:

The ext/pdo_oci/tests/pdo_oci_attr_client.php test uses split() and
therefore fails during execution when error_reporting includes
E_DEPRECATED.


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



Bug #48614 [Com]: Loading "pdo_sqlite.so" fails: undefined symbol: sqlite3_libversion

2010-06-08 Thread kontakt at beberlei dot de
Edit report at http://bugs.php.net/bug.php?id=48614&edit=1

 ID:   48614
 Comment by:   kontakt at beberlei dot de
 Reported by:  kaspernj at gmail dot com
 Summary:  Loading "pdo_sqlite.so" fails: undefined symbol:
   sqlite3_libversion
 Status:   Assigned
 Type: Bug
 Package:  PDO related
 Operating System: Ubuntu Jaunty
 PHP Version:  5.3.0RC4
 Assigned To:  scottmac

 New Comment:

You can get this working with the following configure:



--without-sqlite --with-sqlite3=shared --with-pdo-sqlite=shared,/usr



More information in this thread: http://news.php.net/php.pdo/427


Previous Comments:

[2010-05-25 23:50:30] ashoat at gmail dot com

The problem is still occurring. There really ought to be a patch by now.


[2010-04-25 13:00:18] ovidio dot balan at gmail dot com

lol .. :(


[2010-04-05 15:41:51] koubel at volny dot cz

Year will be gone, and problem is still here: tested on 5.3.2 debian
stable


[2010-02-23 03:54:27] l27n at yahoo dot com

Same problem, PHP 5.3.1, CENTOS 5.4


[2010-02-02 09:40:03] marc dot bennewitz at giata dot de

I have the same problem with suse 10.x 32/64 bit using php 5.3.0/1
stable.



My configure is:

cd "/home/worker/download/php-5.3.1"

./configure \

--with-apxs2=/usr/local/apache2/bin/apxs \

--with-mm \

--with-mysql=shared,/usr/local \

--with-mysqli=shared,/usr/local/bin/mysql_config \

--with-sqlite=shared \

--with-sqlite3=shared \

--enable-pdo=shared \

--with-pdo-mysql=shared,/usr/local \

--with-pdo-sqlite=shared \

--with-libxml-dir=/usr/local/lib \

--enable-soap \

--with-zlib \

--disable-cgi \

--with-gd=shared \

--with-freetype-dir \

--with-jpeg-dir=/usr/lib \

--enable-gd-native-ttf \

--enable-exif \

--with-xsl \

--with-mcrypt \

--with-openssl \

--enable-mbstring \

--enable-mbregex \

--enable-ftp=shared \

--with-kerberos \

--enable-zip



And extension order:

extension=pdo.so

extension=sqlite.so

extension=sqlite3.so

extension=mysql.so

extension=mysqli.so

extension=pdo_mysql.so

extension=pdo_sqlite.so



Additionally if I load sqlite.so before pdo.so than I get 1 more error:

PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so:
undefined symbol: php_pdo_unregister_driver in Unknown on line 0



Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so' -
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so:
undefined symbol: php_pdo_unregister_driver in Unknown on line 0




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/bug.php?id=48614


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


#51168 [Com]: Userland Cyclic Reference with Nested DateTime are not garbage collected

2010-02-27 Thread kontakt at beberlei dot de
 ID:   51168
 Comment by:   kontakt at beberlei dot de
 Reported By:  kontakt at beberlei dot de
 Status:   Open
 Bug Type: Unknown/Other Function
 Operating System: Linux/Ubuntu
 PHP Version:  5.3.1
 New Comment:

Sorry it seems this is a duplicate of
http://bugs.php.net/bug.php?id=49700


Previous Comments:


[2010-02-27 16:45:34] kontakt at beberlei dot de

Description:

When one of the participants of a cyclic reference holds a reference to
a DateTime instance, the GC seems to be unable to do its job.

NOTE: Even without a DateTime reference memory keeps increasing slowly
but steadily. This is not the case as soon as either $a->b = $b or $b->a
= $a is commented out, i.e. the cyclic reference is removed. So even
though the GC seems to work almost perfectly (without a DateTime
reference), a small leak remains.

The leakage also occurs with PDO, however not with other php internal
objects.

Reproduce code:
---
class A {
  public $b;
  public $ref;
  function __construct() {
$this->ref = new DateTime; // "large" leak. comment out for small
leak.
  }
}

class B {
  public $a;
}


for ($i=1; $i<=20; ++$i) {
  $a = new A;
  $b = new B;
  $a->b = $b; // comment out to avoid any leakage, with or without
DateTime, doesnt matter.
  $b->a = $a; // comment out to avoid any leakage, with or without
DateTime, doesnt matter.

  if ($i % 1 == 0) {
gc_collect_cycles();
printf('- Memory usage after %d iterations: %2.2f MB' .PHP_EOL,
$i, memory_get_usage() / 1024 / 1024);
  }
}


Expected result:

- Memory usage after 1 iterations: 0.79 MB
- Memory usage after 2 iterations: 0.79 MB
- Memory usage after 3 iterations: 0.79 MB
- Memory usage after 4 iterations: 0.79 MB
- Memory usage after 5 iterations: 0.79 MB
- Memory usage after 6 iterations: 0.79 MB
- Memory usage after 7 iterations: 0.79 MB
- Memory usage after 8 iterations: 0.79 MB
- Memory usage after 9 iterations: 0.79 MB
- Memory usage after 10 iterations: 0.79 MB



Actual result:
--
- Memory usage after 1 iterations: 4.53 MB
- Memory usage after 2 iterations: 8.38 MB
- Memory usage after 3 iterations: 12.15 MB
- Memory usage after 4 iterations: 15.90 MB
- Memory usage after 5 iterations: 19.65 MB
- Memory usage after 6 iterations: 23.40 MB
- Memory usage after 7 iterations: 27.15 MB
- Memory usage after 8 iterations: 30.90 MB
- Memory usage after 9 iterations: 34.65 MB
- Memory usage after 10 iterations: 38.41 MB







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



#51168 [NEW]: Userland Cyclic Reference with Nested DateTime are not garbage collected

2010-02-27 Thread kontakt at beberlei dot de
From: kontakt at beberlei dot de
Operating system: Linux/Ubuntu
PHP version:  5.3.1
PHP Bug Type: Unknown/Other Function
Bug description:  Userland Cyclic Reference with Nested DateTime are not 
garbage collected

Description:

When one of the participants of a cyclic reference holds a reference to a
DateTime instance, the GC seems to be unable to do its job.

NOTE: Even without a DateTime reference memory keeps increasing slowly but
steadily. This is not the case as soon as either $a->b = $b or $b->a = $a
is commented out, i.e. the cyclic reference is removed. So even though the
GC seems to work almost perfectly (without a DateTime reference), a small
leak remains.

The leakage also occurs with PDO, however not with other php internal
objects.

Reproduce code:
---
class A {
  public $b;
  public $ref;
  function __construct() {
$this->ref = new DateTime; // "large" leak. comment out for small
leak.
  }
}

class B {
  public $a;
}


for ($i=1; $i<=20; ++$i) {
  $a = new A;
  $b = new B;
  $a->b = $b; // comment out to avoid any leakage, with or without
DateTime, doesnt matter.
  $b->a = $a; // comment out to avoid any leakage, with or without
DateTime, doesnt matter.

  if ($i % 1 == 0) {
gc_collect_cycles();
printf('- Memory usage after %d iterations: %2.2f MB' .PHP_EOL,
$i, memory_get_usage() / 1024 / 1024);
  }
}


Expected result:

- Memory usage after 1 iterations: 0.79 MB
- Memory usage after 2 iterations: 0.79 MB
- Memory usage after 3 iterations: 0.79 MB
- Memory usage after 4 iterations: 0.79 MB
- Memory usage after 5 iterations: 0.79 MB
- Memory usage after 6 iterations: 0.79 MB
- Memory usage after 7 iterations: 0.79 MB
- Memory usage after 8 iterations: 0.79 MB
- Memory usage after 9 iterations: 0.79 MB
- Memory usage after 10 iterations: 0.79 MB



Actual result:
--
- Memory usage after 1 iterations: 4.53 MB
- Memory usage after 2 iterations: 8.38 MB
- Memory usage after 3 iterations: 12.15 MB
- Memory usage after 4 iterations: 15.90 MB
- Memory usage after 5 iterations: 19.65 MB
- Memory usage after 6 iterations: 23.40 MB
- Memory usage after 7 iterations: 27.15 MB
- Memory usage after 8 iterations: 30.90 MB
- Memory usage after 9 iterations: 34.65 MB
- Memory usage after 10 iterations: 38.41 MB



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