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
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
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
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
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
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
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
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
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
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
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
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
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
13 matches
Mail list logo