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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wico at cnh dot nl
New email:
PHP Version: OS:

 

 [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 06:00:02 2026 UTC