php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62235 Classload error during parameter building causes APPCRASH
Submitted: 2012-06-05 17:39 UTC Modified: 2013-02-18 00:35 UTC
From: cory dot carson at boeing dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.4.3 OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-06-05 17:39 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-07 09:30 UTC] 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-07 16:42 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2012-06-07 16:42 UTC] felipe@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.


 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 11:01:28 2024 UTC