[PHP-DEV] Re: reproduce script (Re: [PHP-DEV] No static method callbacks anmore?)

2004-03-15 Thread Andi Gutmans
No need to post it as a bug. I'll look into it. Thanks. At 11:51 AM 3/15/2004 -0500, Hans Lellelid wrote: Here's a script to reproduce the problem w/ static callbacks. The problem only seems to happen when the function calling the static function using preg_replace_callback() is not declared 'sta

[PHP-DEV] reproduce script (Re: [PHP-DEV] No static method callbacks anmore?)

2004-03-15 Thread Hans Lellelid
Here's a script to reproduce the problem w/ static callbacks. The problem only seems to happen when the function calling the static function using preg_replace_callback() is not declared 'static' itself, but is accessed as a static function. Also, this only happens when being called from anothe

Re: [PHP-DEV] obj == null check generates E_NOTICE

2004-03-15 Thread Andi Gutmans
At 11:21 AM 3/15/2004 -0500, Hans Lellelid wrote: obj == null checks now trigger E_NOTICE class Foo { } $t = new Foo(); if ($t == null) { } Notice - Object of class Foo could not be converted to boolean Changing the comparison to $t === null makes the notice go away. Is this intended? If not

Re: [PHP-DEV] No static method callbacks anmore?

2004-03-15 Thread Jan Schneider
Zitat von Andi Gutmans <[EMAIL PROTECTED]>: Can you do a reverse apply of the following diff and let me know if it fixes the problem? http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.274&r2=1.275&ty=u No, it doesn't. At 05:04 PM 3/15/2004 +0100, Jan Schneider wrote: Hi, before rep

[PHP-DEV] obj == null check generates E_NOTICE

2004-03-15 Thread Hans Lellelid
obj == null checks now trigger E_NOTICE class Foo { } $t = new Foo(); if ($t == null) { } Notice - Object of class Foo could not be converted to boolean Changing the comparison to $t === null makes the notice go away. Is this intended? If not I can post it as a bug report. Thanks, Hans -- PH

Re: [PHP-DEV] No static method callbacks anmore?

2004-03-15 Thread Andi Gutmans
Can you do a reverse apply of the following diff and let me know if it fixes the problem? http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.274&r2=1.275&ty=u Thanks, Andi At 05:04 PM 3/15/2004 +0100, Jan Schneider wrote: Hi, before reporting a bug, I want to make sure that this i

[PHP-DEV] Re: No static method callbacks anmore?

2004-03-15 Thread Hans Lellelid
I was just about to post the same bug ... Except that I couldn't quite build a reproducing testcase. I get exactly the same message in my code, but when I created a small static class to reproduce the problem it seems to work fine ... (static or non-static or mixture) Hans Jan Schneider wrot

[PHP-DEV] No static method callbacks anmore?

2004-03-15 Thread Jan Schneider
Hi, before reporting a bug, I want to make sure that this is no intentional change. Are static methods no longer supported as callbacks? preg_replace_callback('/some pattern/', array('MyClass', 'Method'), $subject) raises a warning atm: Unable to call custom replacement function in ... Jan. --

[PHP-DEV] Re: class constants in RC1

2004-03-15 Thread Andi Gutmans
At 10:07 AM 3/15/2004 -0500, Hans Lellelid wrote: I notice that in the new RC1, the following reference to class constants is no longer possible: class MyClass { const MY_CONST = 1; function __construct() { echo MY_CONST; } } You must now use self::MY_CONST

[PHP-DEV] class constants in RC1

2004-03-15 Thread Hans Lellelid
I notice that in the new RC1, the following reference to class constants is no longer possible: class MyClass { const MY_CONST = 1; function __construct() { echo MY_CONST; } } You must now use self::MY_CONST to reference the class constant. While I c

Re: [PHP-DEV] RC1 of RC1

2004-03-15 Thread Jan Schneider
Zitat von Andi Gutmans <[EMAIL PROTECTED]>: I fixed get_object_vars() a couple of days ago. Can you check if this still occurs? No, that seems to have fixed it, thanks! At 01:52 PM 3/15/2004 +0100, Jan Schneider wrote: Zitat von Andi Gutmans <[EMAIL PROTECTED]>: I will roll RC1 on the 17th so if

Re: [PHP-DEV] RC1 of RC1

2004-03-15 Thread Andi Gutmans
I fixed get_object_vars() a couple of days ago. Can you check if this still occurs? Andi At 01:52 PM 3/15/2004 +0100, Jan Schneider wrote: Zitat von Andi Gutmans <[EMAIL PROTECTED]>: I will roll RC1 on the 17th so if there are "serious" show stoppers speak up. Dunno what you consider "serious",

Re: [PHP-DEV] RC1 of RC1

2004-03-15 Thread Jan Schneider
Zitat von Andi Gutmans <[EMAIL PROTECTED]>: I will roll RC1 on the 17th so if there are "serious" show stoppers speak up. Dunno what you consider "serious", but bug 2 http://bugs.php.net/bug.php?id=2 is on the ze2 level. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de

Re: [PHP-DEV] Re: Bugs DB down?

2004-03-15 Thread Antony Dovgal
On Thu, 11 Mar 2004 16:41:38 +0100 (CET) Derick Rethans <[EMAIL PROTECTED]> wrote: > On Thu, 11 Mar 2004, Jay Smith wrote: > > > Andi Gutmans wrote: > > > > > Any idea why the bugs database isn't responding? > > > > I've had a similar problem over the past couple of weeks. For whatever > > reason

[PHP-DEV] Re: [PHP-QA] RC1 of RC1

2004-03-15 Thread Andi Gutmans
At 08:40 AM 3/15/2004 +0100, Jan Lehnardt wrote: Hi, On 15 Mar 2004, at 7:10, Andi Gutmans wrote: The .tar.gz/.tar.bz2 are available at http://snaps.php.net/~andi if I understood correctly, we'll be providing two packages, once 5.0.0 is released. One with libxml2 bundled and one without; shouldn't