php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29904 php crash ( object creation + autoload )
Submitted: 2004-08-31 06:33 UTC Modified: 2004-08-31 15:35 UTC
From: segv at sayclub dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.0.1 OS: linux
Private report: No CVE-ID: None
 [2004-08-31 06:33 UTC] segv at sayclub dot com
Description:
------------
It seems that php crashes when creating object with arguments of autoloaded class.

Reproduce code:
---------------
test.inc --------------------
<?
  class B {
    function func() {
      return true;
    }
  }
?>

test.php --------------------
<?
  function __autoload($className) {
    include "test.inc";
  }

  class A {
    function __construct ($a) { }
  }
  $a = new A(B::func());
  var_dump($a)
?>


Actual result:
--------------
% php test.php
segment fault


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-31 07:06 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

Cannot reproduce. Please try it with the latest snapshot.

 [2004-08-31 07:38 UTC] segv at sayclub dot com
I'm sorry. It was a problem of xdebug. :-)
I'm really sorry for annoying you.
 [2004-08-31 08:01 UTC] tony2001@php.net
Not a PHP bug -> bogus.
 [2004-08-31 15:35 UTC] derick@php.net
I also can't reproduce this bug with Xdebug loaded btw. 

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 22:01:28 2024 UTC