Edit report at https://bugs.php.net/bug.php?id=62235&edit=1
ID: 62235
Comment by: reeze dot xia at gmail dot com
Reported by: cory dot carson at boeing dot com
Summary: Classload error during parameter building causes
APPCRASH
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Windows
PHP Version: 5.4.3
Block user comment: N
Private report: N
New Comment:
I can't reproduce it , I got LogicException instead. do you use any other like
xdebug ?
reeze@MacBookPro ~/O/p/php-src-5.4> ../php-src-5.4/sapi/cli/php a.php
Fatal error: Uncaught exception 'LogicException' with message 'Class
NonExistantClass could not be loaded' in /Users/reeze/Opensource/php-test/php-
src-5.4/a.php:3
Stack trace:
#0 /Users/reeze/Opensource/php-test/php-src-5.4/a.php(3):
spl_autoload('NonExistantClas...')
#1 {main}
thrown in /Users/reeze/Opensource/php-test/php-src-5.4/a.php on line 3
reeze@MacBookPro ~/O/p/php-src-5.4> ../php-src-5.4/sapi/cli/php -v
PHP 5.4.5-dev (cli) (built: May 23 2012 15:33:54) (DEBUG)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
Previous Comments:
------------------------------------------------------------------------
[2012-06-05 17:39:18] cory dot carson at boeing dot com
Description:
------------
When classloading fails when attempting to call a function on the class, when
using the result as a parameter to another function call, will crash PHP itself
instead of PHP reporting an error.
Test script:
---------------
<?php
\spl_autoload_register();
(new \SplDoublyLinkedList)->push(NonExistantClass::functionCall());
Expected result:
----------------
"Fatal error: Class 'NonExistantClass' not found"
Actual result:
--------------
APPCRASH
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62235&edit=1