Bug #62235 [Opn->Fbk]: Classload error during parameter building causes APPCRASH
| From: | felipe@php.net | Date: | Thu, 07 Jun 2012 16:42:20 +0000 |
| Subject: | Bug #62235 [Opn->Fbk]: Classload error during parameter building causes APPCRASH | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-171112@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62235&edit=1
ID: 62235
Updated by: felipe@php.net
Reported by: cory dot carson at boeing dot com
Summary: Classload error during parameter building causes
APPCRASH
-Status: Open
+Status: Feedback
Type: Bug
Package: Reproducible crash
Operating System: Windows
PHP Version: 5.4.3
Block user comment: N
Private report: N
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:
------------------------------------------------------------------------
[2012-06-07 09:30:31] reeze dot xia at gmail dot com
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
------------------------------------------------------------------------
[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