php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61606 Unstable function renaming
Submitted: 2012-04-03 06:42 UTC Modified: 2012-04-03 09:45 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: michael dot rouges at gmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.4.0 OS: Debian Squeeze
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: michael dot rouges at gmail dot com
New email:
PHP Version: OS:

 

 [2012-04-03 06:42 UTC] michael dot rouges at gmail dot com
Description:
------------
Since APD is no longer compatible with recent versions of PHP, I use custom extension functions for renaming (sources: http://www.developpez.net/forums/attachments/p92460d1333383074/c-cpp/c/besoin-daide-corriger-extension-php-toute-petite-jure/php_rename.zip/)

Test script:
---------------
<?php
	function_rename('native_function_name','new_name');
?>

Expected result:
----------------
This extension should rename functions, native or not, for the execution context of the script called.

Actual result:
--------------
This extension fills its role very well but, strangely, in some executions (variable number, nearly one out of 10-15), the function function_rename () seems to have a permanent effect on PHP functions.

Currently, the only way to fix this bug, it's a restart Apache.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-03 09:45 UTC] cataphract@php.net
-Status: Open +Status: Not a bug
 [2012-04-03 09:45 UTC] cataphract@php.net
Sorry, but obviously we cannot support random functions found on the Internet; contact their author.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 17:01:34 2025 UTC