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

2006-09-13 Thread Sara Golemon
> zend_module_entry string_module_entry = { > #if ZEND_MODULE_API_NO >= 20010901 >STANDARD_MODULE_HEADER, > #endif >"string", >string_functions, >PHP_MINIT(string), >PHP_MSHUTDOWN(string), > PHP_RINIT(string), /* Replace with NULL if there's nothing to do at request start */

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

2006-09-13 Thread Pierre
On 9/13/06, Pierre <[EMAIL PROTECTED]> wrote: No, as I said it works well before 5.2 except for zip_* function name and a uip class. I mean for zip_* function names and a zip class :) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-09-13 Thread Pierre
Hello, On 9/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >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

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

2006-09-13 Thread Pierre
On Wed, 13 Sep 2006 11:35:16 +0200 [EMAIL PROTECTED] wrote: > ...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 bet

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

2006-09-13 Thread messju mohr
On Wed, Sep 13, 2006 at 10:09:08AM +0200, [EMAIL PROTECTED] wrote: > Hi, > > i just was wondering how existing function names could be used as method names > in OO-Extensions for PHP5. I've looked through the SPL-source where this is > done with > functions like current() and next() in the iterat

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

2006-09-13 Thread danhen
Hi, i just was wondering how existing function names could be used as method names in OO-Extensions for PHP5. I've looked through the SPL-source where this is done with functions like current() and next() in the iterators, but I couldn't find a hint how to do this. Can someone give me a little