Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / zend_language_parser.y /tests 021.phpt
| From: | Johannes Schlüter | Date: | Wed, 21 Nov 2007 00:34:26 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / zend_language_parser.y /tests 021.phpt | ||
| References: | 1 2 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-6190@lists.php.net to get a copy of this message | ||
On Tue, 2007-11-20 at 16:08 -0800, Stanislav Malyshev wrote:
> How comes we got UEXPECT and unicode on 5.3?
That's the cvs log script which got confused with the branches and the
new added file. The actual file in that branch has no unicode stuff.
johannes
> > Index: ZendEngine2/tests/021.phpt
> > +++ ZendEngine2/tests/021.phpt
> > --TEST--
> > ?: operator
> > --FILE--
> > <?php
> > var_dump(true ?: false);
> > var_dump(false ?: true);
> > var_dump(23 ?: 42);
> > var_dump(0 ?: "bar");
> >
> > $a = 23;
> > $b = 0;
> > $c = "";
> > $d = 23.5;
> >
> > var_dump($a ?: $b);
> > var_dump($c ?: $d);
> >
> > var_dump(1 ?: print(2));
> > ?>
> > --EXPECT--
> > bool(true)
> > bool(true)
> > int(23)
> > string(3) "bar"
> > int(23)
> > float(23.5)
> > int(1)
> > --UEXPECT--
> > bool(true)
> > bool(true)
> > int(23)
> > unicode(3) "bar"
> > int(23)
> > float(23.5)
> > int(1)
> >
>