2004-08-05 13:15:18 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2004-08-13 16:12:06 +00:00
|
|
|
<!-- $Revision: 1.4 $ -->
|
2004-08-05 13:15:18 +00:00
|
|
|
<!-- splitted from ./en/functions/apd.xml, last change in rev 1.4 -->
|
2004-08-13 14:10:03 +00:00
|
|
|
<refentry id="function.rename-function">
|
2004-08-05 13:15:18 +00:00
|
|
|
<refnamediv>
|
2004-08-13 14:10:03 +00:00
|
|
|
<refname>rename_function</refname>
|
|
|
|
<refpurpose>Renames orig_name to new_name in the global function_table</refpurpose>
|
2004-08-05 13:15:18 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
2004-08-13 16:12:06 +00:00
|
|
|
<type>bool</type><methodname>rename_function</methodname>
|
2004-08-13 14:10:03 +00:00
|
|
|
<methodparam><type>string</type><parameter>original_name</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>new_name</parameter></methodparam>
|
2004-08-05 13:15:18 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2004-08-13 14:10:03 +00:00
|
|
|
Renames orig_name to new_name in the global function_table. Useful
|
2004-08-13 14:31:38 +00:00
|
|
|
for temporarily overriding builtin functions.
|
2004-08-05 13:15:18 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<example>
|
2004-08-13 14:20:43 +00:00
|
|
|
<title><function>rename_function</function> example</title>
|
2004-08-05 13:15:18 +00:00
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
2004-08-13 14:10:03 +00:00
|
|
|
rename_function('mysql_connect', 'debug_mysql_connect' );
|
2004-08-05 13:15:18 +00:00
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
2004-08-13 14:10:03 +00:00
|
|
|
</para>
|
2004-08-05 13:15:18 +00:00
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|