Re: [PHP-DEV] [patch] expose PHP version details as constants

2008-02-10 Thread Jingcheng Zhang
Hello, Is there any chance that dirname(__FILE__) being exposed as a constant, i.e. __DIRNAME__? On Feb 9, 2008 9:42 PM, Pierre Joye [EMAIL PROTECTED] wrote: Hi Marcus, On Feb 9, 2008 2:39 PM, Marcus Boerger [EMAIL PROTECTED] wrote: Hello Pierre, yeah nice idea. I am wondering if you

Re: [PHP-DEV] [patch] expose PHP version details as constants

2008-02-10 Thread Markus Fischer
Jan Schneider wrote: Zitat von Jingcheng Zhang [EMAIL PROTECTED]: Hello, Is there any chance that dirname(__FILE__) being exposed as a constant, i.e. __DIRNAME__? No. Constants are per request, dirname(__FILE__) is obviously different per file. That's not entirely true, isn't it? Think

Re: [PHP-DEV] get_magic_quotes_gpc, get-magic-quotes-runtime in head, get a final decision

2008-02-10 Thread Andrew Shearer
-1. Keep the query functions and return FALSE. No need to unnecessarily break b/c for scripts that were just trying to do the right thing by coping with both possibilities. It's just one more roadblock to PHP 6 adoption.

[PHP-DEV] Problems with LSB

2008-02-10 Thread Sebastian Deutsch
Hello, i've written the following code using Etiennes LSB. But I'm facing some problems. ?php class A { function foo() { echo get_called_class(); } } class B extends A { } class C { function moo() { B::foo(); }

[PHP-DEV] Re: BC break in DirectoryIterator by fix of #44018

2008-02-10 Thread Gregory Beaver
Gregory Beaver wrote: Hi Marcus, FYI, this change: http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_directory.c?view=diffr1=1.146r2=1.147 breaks about 20 tests in phar, it's a potentially serious BC break. I understand the reasoning behind it, but you may find other users up in arms.

[PHP-DEV] BC break in DirectoryIterator by fix of #44018

2008-02-10 Thread Gregory Beaver
Hi Marcus, FYI, this change: http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_directory.c?view=diffr1=1.146r2=1.147 breaks about 20 tests in phar, it's a potentially serious BC break. I understand the reasoning behind it, but you may find other users up in arms. The main problem is that this

Re: [PHP-DEV] [RFC] Conditional INI support

2008-02-10 Thread Stanislav Malyshev
Hi! 1) Ternary support for values setting = ${value?1:2} I think it's an overkill. If you need PHP, write it in PHP. Building another programming language into the config system looks wrong to me. It's complex enough as it is. We already have the programming language, and we have

[PHP-DEV] w32api extension

2008-02-10 Thread Justin Martin
Hello there, Just wondering if there is any interest in bringing w32api up to speed. The docs say it was moved to PECL as of 5.1.0, however is this not the case. Rumor has it that it was to be replaced by ffi, however again, this is not the case (ffi is in alpha and probably dead). Anyone

Re: [PHP-DEV] [patch] expose PHP version details as constants

2008-02-10 Thread Stanislav Malyshev
Is there any chance that dirname(__FILE__) being exposed as a constant, i.e. __DIRNAME__? No. Constants are per request, dirname(__FILE__) is obviously different per file. Actually, just as __FILE__, __LINE__, __CLASS__ etc. dirname(__FILE__) can be a parser constant. And if somebody