Re: PHP5 extensions: using existing function names as method names

From: Date: Wed, 13 Sep 2006 09:35:16 +0000
Subject: Re: PHP5 extensions: using existing function names as method names
Groups: php.internals 
Request: Send a blank email to internals+get-25654@lists.php.net to get a copy of this message
...Just forgot to CC... >you can use any function name as method name without a clash. you just >cannot use language constructs that aren't real functions like >"empty", "echo" or "require" as method names. >this question better belongs to php-general, btw. Sorry if I didn't made myself clear enough. I'm talking about C-extensions. I've tried to implement the PHP_METHOD(class, xyz). It compiles fine, but in runtime "PHP Warning: cannot redeclare xyz..." will appaer. Daniel

« previous php.internals (#25654) next »