|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59186 Strange errors from time to time
Submitted: 2010-05-02 11:08 UTC Modified: 2013-02-23 14:20 UTC
From: pahan at hubbitus dot info Assigned: pollita (profile)
Status: Closed Package: runkit (PECL)
PHP Version: 5.2.13 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pahan at hubbitus dot info
New email:
PHP Version: OS:


 [2010-05-02 11:08 UTC] pahan at hubbitus dot info
runkit.internal_override is On in php.ini:

Several runs of reproduce code in first 1-4 times finished 
correctly, but then I see very strange errors like:
Fatal error: Cannot redeclare __autoload() (previously 
declared in /var/www/_SHARED_/autoload.php:114322992) in 
/var/www/_SHARED_/autoload.php on line 47
Fatal error: Cannot redeclare __autoload() (previously 
declared in /var/www/_SHARED_/autoload.php:17) in 
/var/www/_SHARED_/autoload.php on line 47

Reproduce code:
var_dump(substr('&#1090;&#1077;&#1089;&#1090;', 0, 2));
var_dump(mb_substr('&#1090;&#1077;&#1089;&#1090;', 0, 2));
runkit_function_rename('mb_substr', 'substr');
#runkit_function_redefine('substr','$a,$b,$c','return mb_substr($a,$b,$c);'); # as variant
var_dump(substr('&#1090;&#1077;&#1089;&#1090;', 0, 2));


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-23 14:20 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

 [2013-02-23 14:20 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: pollita
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 07:01:31 2024 UTC