php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #2603 Function is_function() and redeclaring functions
Submitted: 1999-10-26 04:36 UTC Modified: 1999-11-18 04:14 UTC
From: wico at cnh dot nl Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Beta 2 OS: linux redhat 6
Private report: No CVE-ID: None
 [1999-10-26 04:36 UTC] wico at cnh dot nl
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-18 04:14 UTC] evan at cvs dot php dot net
See function_exists()
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 04:00:01 2026 UTC