Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 /tests 021.phpt

From: Date: Wed, 21 Nov 2007 10:53:40 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 /tests 021.phpt
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6194@lists.php.net to get a copy of this message
Hello Johannes, how about two more tests, one showing that there is a notice and one showing that the notice can be suppressed. To verify that you'd repead the one with the notice again, so that we are evnen sure nothing is set by side effect. Thanks alot anyway. marcus Wednesday, November 21, 2007, 10:38:33 AM, you wrote: > johannes Wed Nov 21 09:38:33 2007 UTC > Modified files: > /ZendEngine2/tests 021.phpt > Log: > - Improve test > > > http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/021.phpt?r1=1.1&r2=1.2&diff_format=u > Index: ZendEngine2/tests/021.phpt > diff -u ZendEngine2/tests/021.phpt:1.1 ZendEngine2/tests/021.phpt:1.2 > --- ZendEngine2/tests/021.phpt:1.1 Tue Nov 20 23:56:45 2007 > +++ ZendEngine2/tests/021.phpt Wed Nov 21 09:38:32 2007 > @@ -16,6 +16,12 @@ > var_dump($c ?: $d); > > var_dump(1 ?: print(2)); > + > +$e = array(); > + > +$e['e'] = 'e'; > +$e['e'] = $e['e'] ?: 'e'; > +print_r($e); > ?> > --EXPECT-- > bool(true) > @@ -25,6 +31,10 @@ > int(23) > float(23.5) > int(1) > +Array > +( > + [e] => e > +) > --UEXPECT-- > bool(true) > bool(true) > @@ -33,3 +43,7 @@ > int(23) > float(23.5) > int(1) > +Array > +( > + [e] => e > +) Best regards, Marcus

« previous php.zend-engine.cvs (#6194) next »