php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pahan at hubbitus dot info
New email:
PHP Version: OS:

 

 [2010-05-02 11:08 UTC] pahan at hubbitus dot info
Description:
------------
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
or
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_remove('substr');
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));
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-23 14:20 UTC] pollita@php.net
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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2013-02-23 14:20 UTC] pollita@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pollita
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 14:01:28 2024 UTC