Re: [PHP-DEV] BC break: $o= new stdclass; empty($o)

2004-03-06 Thread Timm Friebe
On Sat, 2004-03-06 at 15:53, Timm Friebe wrote: [...] I'm not sure whether this affects a lot of users, and as noone has commented on it, I guess PHP5 will get away with this break:) I'll just have to find a workaround if you insist the PHP4 behaviour is broken:) Additionally, it should be

[PHP-DEV] BC break: $o= new stdclass; empty($o)

2004-02-29 Thread Timm Friebe
Hi, $ php5 -r '$o= new stdclass; var_dump(empty($o));' bool(false) $ php4 -r '$o= new stdclass; var_dump(empty($o));' bool(true) Was this an intentional change? - Timm -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] BC break: $o= new stdclass; empty($o)

2004-02-29 Thread Timm Friebe
On Sun, 2004-02-29 at 18:10, Timm Friebe wrote: Hi, [...] Was this an intentional change? zend_execute.h, lines 95 - 98: case IS_OBJECT: /* OBJ-TBI */ result = 1; break; I have a patch, but that includes a TSRMLS_FETCH() - maybe it would be wise to change:

Re: [PHP-DEV] BC break: $o= new stdclass; empty($o)

2004-02-29 Thread Stanislav Malyshev
TF I have a patch, but that includes a TSRMLS_FETCH() - maybe it would TF be wise to change: Patch that does what? -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.109 -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] BC break: $o= new stdclass; empty($o)

2004-02-29 Thread Timm Friebe
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