Re: [PHP-DEV] PHP5 extensions: using existing function names as method names

2006-09-13 Thread danhen
>It is possible to name a method like an existing function, I'm not sure >what you are doing exactly but it works here. I've tried: STRING_METHOD(String, trim) {...} (Yes, I'm trying to build a string class) that means that I also redefinied the Macros. Then I've changed the Macros from PHP_METH

Re: [PHP-DEV] PHP5 extensions: using existing function names as method names

2006-09-13 Thread danhen
...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 eno