Re: [PHP-DEV] what happened to that new isset() like language

2005-10-29 Thread James Crumpton
if ($a === true) { } But anyone doing that should probably have their head examined. Anyway... Regardless of what can be said about changing the behavior of '||', the same isn't true for '||=', as it has no precedence in PHP. -james Greg Beaver wrote: James Crumpton wro

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-29 Thread James Crumpton
if ($a === true) { } But anyone doing that should probably have their head examined. Anyway... Regardless of what can be said about changing the behavior of '||', the same isn't true for '||=', as it has no precedence in PHP. -james Greg Beaver wrote: James Crumpto

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-28 Thread James Crumpton
ficult to remember for either their name (issetor? ifsetor? ifset?) or the order of arguments thereof (ie. array and string handling functions). Sebastian wrote: Wow, it'll be just like perl! this is so great. On 10/28/05, James Crumpton <[EMAIL PROTECTED]> wrote: Andi Gutmans w

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-28 Thread James Crumpton
Andi Gutmans wrote: > I don't think it's a matter of giving the engine a try. I think we first need > to make a decision what the best way to go is and then we can discuss > implementation if/what is possible. Once 5.0.0 is out I'm going to have more > time look into this. What's the word on this

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-09-15 Thread James Crumpton
Can be done already ... sorta. switch (true) { case ($str == 'abc'): echo "it was ABC!\n"; break; case (preg_match('/^[0-9]+$/i', $str)): echo "it was a number!\n"; break; default: echo "it was

Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-03 Thread James Crumpton
Maybe I'm alone on this, but all my class files are named as Classname.class.php... (hint, hint) :) ... On second thought, maybe it would be interesting/useful to have some mechanism to allow a formatted string like "%s.foo.php" or "foo.%s.php" to be used by spl's autoload? Not really sure ho

Re: [PHP-DEV] Property Overloading RFC

2005-08-02 Thread James Crumpton
My concern with the self::isVirtual() syntax would be... class Base { function __get($name) { if (!self::isVirtual($name)) throw; } } class Foo { abstract public $bar = 1; } $f = new Foo; echo $f->bar; ... Are these 'virtual' members going to work like static me

Re: [PHP-DEV] memory corruption with 5.1?

2005-07-07 Thread James Crumpton
probably try a newer version of libxml2. I suspect you are hitting a refcount issue with dictionaries that was fixed in 2.6.8. And before you ask, the error would be more prominent using PHP 5.1 than 5.0. Rob James Crumpton wrote: So ... php-5.1.0b2 with --disable-zend-mm --enable-d

Re: [PHP-DEV] memory corruption with 5.1?

2005-07-07 Thread James Crumpton
u, 07 Jul 2005 16:17:36 -0700 James Crumpton <[EMAIL PROTECTED]> wrote: So ... php-5.1.0b2 with --disable-zend-mm --enable-debug ... apache segfaults on startup. Without --disable-zend-nm, and run through valgrind, I don't actually experience the corruption, but boy is there a lot of

Re: [PHP-DEV] memory corruption with 5.1?

2005-07-07 Thread James Crumpton
a5c822.txt/withoutmm.txt With zend mm -- https://www.die.net/tmp/00e9a7d1e7a5d0fc.txt/withmm.txt -james Rasmus Lerdorf wrote: James Crumpton wrote: I've run into a problem, when trying out 5.1.0b1, b2, and php5-200507060230, with a

[PHP-DEV] memory corruption with 5.1?

2005-07-05 Thread James Crumpton
I've run into a problem, when trying out 5.1.0b1, b2, and php5-200507060230, with a script of mine that relies pretty heavily on DomDocument and DomXPath. Using XPath, I pull nodes with a certain namespace (xx) from an xml document. With 5.0.*, this works as expected. However, with 5.1.*, I'm

[PHP-DEV] class_exists and __autoload

2005-06-28 Thread James Crumpton
I opened a bug (http://bugs.php.net/bug.php?id=33459) to report an issue with the default behavior of class_exists calling __autoload in PHP5. The bug was marked as bogus, and basically stated that it's PEARs problem. After responding, the bug can now longer be searched for. I believe this still

[PHP-DEV] Possible error with DOMNode::replaceChild() in 5.0.4

2005-04-05 Thread James Crumpton
After upgrading to 5.0.4, a script of mine that relies on the DocumentFragment object suddenly started to segfault. Some debugging of the script found the line that was causing the segfault to be a call to DOMNode::replaceChild(). The script is complex enough that it's turning out to be rather dif