php.net |  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:
 [2009-10-23 12:59 UTC] wimartin at uk dot ibm dot com
Description:
------------
Crash in PHP when an undefined function is called upon an AppendIterator. Also crashes on 5.3 snap but untested on 6.



Reproduce code:
---------------
<?php

$iterator = new AppendIterator();

$iterator->undefined();

?>

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

Actual result:
--------------
PHP crashes outright.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-23 14:30 UTC] johannes@php.net
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.
 [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.

http://pastebin.com/f1294c4ac
 [2009-10-23 15:25 UTC] wimartin at uk dot ibm dot com
Returning status to open.
 [2009-10-23 16:47 UTC] svn@php.net
Automatic comment from SVN on behalf of johannes
Revision: http://svn.php.net/viewvc/?view=revision&revision=289890
Log: Fix #49972 (AppendIterator undefined function crash)
 [2009-10-23 16:48 UTC] johannes@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Mon Apr 21 12:02:07 2014 UTC