[PHP-DEV] Function autoloading (Was: PHP4 -> PHP5 incompatibility - classes must be declared before being used)

2004-04-18 Thread Luna Kid
> > > > Does __autoload() work for functions? > > > > > > nope > > > > But could? (Or would, some day?) > > Technically it is possible, but we ain't going to add this. I see, thanks. May I also ask the reasons? (I bet anyone a dead rat that *lots* of authors of simple plugin-based designs (not n

Re: [PHP-DEV] PHP4 -> PHP5 incompatibility - classes must be declared before being used

2004-04-17 Thread Luna Kid
> > Does __autoload() work for functions? > > nope But could? (Or would, some day?) Cheers, Sz. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: is_readable stricter than it should be (PHP5 only?)

2004-04-02 Thread Luna Kid
issed something outside of PHP's scope. That happens to me quite easily... :-/ Good night, Sz. "Luna Kid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > Tampering with a coWiki (www.cowiki.org) plugin, I noticed that > > > is_readable() returns

[PHP-DEV] Re: is_readable stricter than it should be (PHP5 only?)

2004-04-02 Thread Luna Kid
> > Tampering with a coWiki (www.cowiki.org) plugin, I noticed that > > is_readable() returns false, when PHP actually *can* read the file. > > (Just commented out an "if (!is_readable($sRealPath))" and then > > all went fine, the plugin now can read the files...) > > > > Is there a known reason fo

Re: [PHP-DEV] is_readable stricter than it should be (PHP5 only?)

2004-04-02 Thread Luna Kid
Dear Marcus: > most probably the file rights prevent the web server from reading it. As I mentioned: "PHP actually *can* read the file" -- and even though I haven't explicitly said, most obviously I implied: from the web server. > The function works as expected in 4.3.6rc as well as php5. As I

[PHP-DEV] is_readable stricter than it should be (PHP5 only?)

2004-04-02 Thread Luna Kid
Tampering with a coWiki (www.cowiki.org) plugin, I noticed that is_readable() returns false, when PHP actually *can* read the file. (Just commented out an "if (!is_readable($sRealPath))" and then all went fine, the plugin now can read the files...) Is there a known reason for or has anoyone bumped

Re: [PHP-DEV] Re: class constants in RC1 - why not __self:: then?

2004-03-28 Thread Luna Kid
> > This way (writing __thisclass::MYCONST instead of MyParticularClassName::CONST > > we could freely decide to favor clean style, or performance, depending on the > > specific > > situation. > > No need for that we have 'self': > php -r 'class c { const c="Hello\n"; static function f() { return

[PHP-DEV] Re: class constants in RC1 - why not __self:: then?

2004-03-28 Thread Luna Kid
y (writing __thisclass::MYCONST instead of MyParticularClassName::CONST we could freely decide to favor clean style, or performance, depending on the specific situation. Whichever way, thanks very much for your efforts, guys! The Luna Kid -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] PHP5: where to go with PHP5 betatesting feedback?

2004-03-18 Thread Luna Kid
Checking the Subject's here, PHP5 activity seems to be very low. So, I assume there is a dedicated place somewhere else for PHP5 beta testing. But where, please? (I haven't found any clues either in the README* files along the sources, or by a 1-minute scanning of php.net.) (Also strange, that th