RE: [PHP-QA] Re: RC6 doesn't mind function redefinition
| From: | James Moore | Date: | Tue, 03 Apr 2001 19:36:02 +0000 |
| Subject: | RE: [PHP-QA] Re: RC6 doesn't mind function redefinition | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-2748@lists.php.net to get a copy of this message | ||
> FWIW the builtin get_defined_functions() is executed.
>
> >I think this is a showstopper.
> >
> >I just realized I redefined get_defined_functions(), and
> >RC6 doesn't complain. With error_reporting( E_ALL ) !!!
> >
> >4.0.4pl1 exits the script with fatal error.
for:
===== test.php =====
<?php
function get_defined_functions() {
echo "blaf";
}
echo print_r(get_defined_functions());
?>
=====================
I get:
Fatal error: Cannot redeclare get_defined_functions() in
D:\webroot2\test.php on line 3
sure you didnt misspell your function.. it works fine for me.
-James