Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / zend_language_parser.y /tests 021.phpt
| From: | Jani Taskinen | Date: | Wed, 21 Nov 2007 06:01:05 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / zend_language_parser.y /tests 021.phpt | ||
| References: | 1 2 3 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-6191@lists.php.net to get a copy of this message | ||
Not that it would matter, the test would work just fine with UEXPECT
stuff too, even in 5.3.
--Jani
On Wed, 2007-11-21 at 01:34 +0100, Johannes Schlüter wrote:
> 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)
> > >
> >
>
--
Patches/Donations: http://pecl.php.net/~jani/