Re: BC break: $o= new stdclass; empty($o)

From: Date: Sun, 29 Feb 2004 18:18:19 +0000
Subject: Re: BC break: $o= new stdclass; empty($o)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-8261@lists.php.net to get a copy of this message
On Sun, 2004-02-29 at 19:09, Stanislav Malyshev wrote: > TF>> I have a patch, but that includes a TSRMLS_FETCH() - maybe it would > TF>> be wise to change: > > Patch that does what? Well, fix the BC issue by implementing what was marked with "TBI" (which, as I assume, means "to be implemented"). When applied, both PHP4 and PHP5 behave the same: $ php5 -r '$o= new stdclass; var_dump(empty($o));' bool(true) $ php4 -r '$o= new stdclass; var_dump(empty($o));' bool(true) I just noticed there are more places (especially in zend_operators.c) where this needs to be done (grep for /* TBI!! */) - Timm

« previous php.internals (#8261) next »