php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44064 rename_function is undefined
Submitted: 2008-02-06 18:02 UTC Modified: 2008-02-06 19:02 UTC
From: paul_nelson57071 at yahoo dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.5 OS: Windows XP
Private report: No CVE-ID: None
 [2008-02-06 18:02 UTC] paul_nelson57071 at yahoo dot com
Description:
------------
I'm trying to use the rename_fuction to make it so I can easly use either MySQL or MSSQL functions. Using the example from your website produces the folling error:

RESULT:


I know mysql_connect works though so I assume that rename_function is not complied in PHP for some reason... any suggestions on how to fix this or work around the problem in another way

Reproduce code:
---------------
<?PHP
 rename_function('mysql_connect', 'Universal_SQL_Connect' );
?>

Expected result:
----------------
mysql_connect should now be callable using Universal_SQL_Connect

Actual result:
--------------
Fatal error: Call to undefined function rename_function() in S:\webpages\Eaton\T2.php on line 2

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-06 18:40 UTC] felipe@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

(PECL apd:0.2-1.0.1)
http://docs.php.net/manual/en/apd.setup.php
http://docs.php.net/rename-function


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 17 02:00:03 2025 UTC