|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49972 AppendIterator undefined function crash
Submitted: 2009-10-23 12:59 UTC Modified: 2009-10-23 16:48 UTC
From: wimartin at uk dot ibm dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5.2SVN-2009-10-23 (snap) OS: Windows
Private report: No CVE-ID: None
 [2009-10-23 12:59 UTC] wimartin at uk dot ibm dot com
Crash in PHP when an undefined function is called upon an AppendIterator. Also crashes on 5.3 snap but untested on 6.

Reproduce code:

$iterator = new AppendIterator();



Expected result:
Fatal error: Call to undefined method AppendIterator::undefined() in %s on line %d

Actual result:
PHP crashes outright.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-23 14:30 UTC]
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 for *NIX and 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.
 [2009-10-23 15:20 UTC] wimartin at uk dot ibm dot com
Here is the backtrace as provided by the Microsoft Debug Diagnostic Tool:

Function     Arg 1     Arg 2     Arg 3   Source 
php5ts!zend_hash_find+f0     0000001c     011aa760     0000000a    
php5ts!spl_dual_it_get_method+50     011ac240     011aa760     00000009    
php5ts!ZEND_INIT_METHOD_CALL_SPEC_CV_CONST_HANDLER+185     011aa760     003225c8     003225c8    
php5ts!execute+1c5     011abd18     003225c8     00000000    
php5ts!zend_execute_scripts+107     00000008     003225c8     00000000    
php5ts!php_execute_script+20d     00c0fec8     003225c8     0000000e    
php!main+bca     00000002     00323f88     00322c70    
php!mainCRTStartup+e3     0000000e     00000000     7ffd9000    
kernel32!BaseProcessStart+23     00402f72     00000000     00000000
 [2009-10-23 15:23 UTC] wimartin at uk dot ibm dot com
Apologies for the messy copy paste above. Here is a formatted pastebin link.
 [2009-10-23 15:25 UTC] wimartin at uk dot ibm dot com
Returning status to open.
 [2009-10-23 16:47 UTC]
Automatic comment from SVN on behalf of johannes
Log: Fix #49972 (AppendIterator undefined function crash)
 [2009-10-23 16:48 UTC]
This bug has been fixed in SVN.

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

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 22:01:27 2019 UTC