PHP 4.0 Bug #2603: Function is_function() and redeclaring functions
| From: | wico at cnh dot nl | Date: | Tue, 26 Oct 1999 08:36:42 +0000 |
| Subject: | PHP 4.0 Bug #2603: Function is_function() and redeclaring functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11904@lists.php.net to get a copy of this message | ||
From: wico@cnh.nl
Operating system: linux redhat 6
PHP version: 4.0 Beta 2
PHP Bug Type: Feature/Change Request
Bug description: Function is_function() and redeclaring functions
Hiya
1. Is it possible for you guys to make a function is_function to test if a function exsists
(including in objects)
what i want to do:
$db = NEW Database();
....
if (is_function($db->info)) {
$db->info();
}
2. and a way to redeclare a function.. :
function test () {
echo "plop";
}
...
function test ($a) {
echo $a;
}
whithout giveing error's...
and maybe also usefull for replacing buildin functions
Tnx in advance
Wico