php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33054 call_user_func + autoloader
Submitted: 2005-05-18 13:33 UTC Modified: 2005-05-26 01:00 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mateusz at oksinski dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.0.4 OS: OpenBSD 3.6, Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mateusz at oksinski dot com
New email:
PHP Version: OS:

 

 [2005-05-18 13:33 UTC] mateusz at oksinski dot com
Description:
------------
PHP produces a coredump on unix/linux systems or crashes on windows xp after trying to execute a method using call_user_func on a class that should have been loaded using autoload.

Reproduce code:
---------------
<?php //file OneClass.php
class OneClass
{
  function paint()
  {
    return 'Class one';
  }
}
?>

<?php //file mainFile.php
echo call_user_func(array('OneClass','paint'));
?>

Expected result:
----------------
returns string 'Class one'

Actual result:
--------------
produces coredump

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-18 14:01 UTC] mateusz at oksinski dot com
It isn't as simple as I wrote in an example code. I'll try to put some more code in the future.
 [2005-05-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 14:01:33 2025 UTC