Closed jubianchi closed 10 years ago
Why can't I reproduce this bug :-/? What is your version of PHP please?
Moreover, brackets are added when we met a predefined structure. T_USE
is not listed in static::$_structures
, so… I don't understand. Could you dump all the token ID after this condition to see if a T_USE
appears?
$ php -v
PHP 5.4.23 (cli) (built: Jan 13 2014 20:00:47)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
$ php -r "var_dump(T_USE);"
int(340)
On 5.4
T_USE
is equal to 340 and here you define T_FINALLY
with the same value.
T_USE
is equal to 342 in 5.7.0-dev. Here we are…
Hello :-),
Does this patch ac348e6afd6d2fce92ffa97c19f1736d31e91b47 fix the issue?
I'll try to apply your patch on my dev branch of atoum.
I'll let you know how it behaves but as you may expect, I will perhaps have a little delay.
\o/
fixed ;)
Ok… daddy ;-).
becomes
I got it fixed by adding
Here https://github.com/Hywan/atoum-instrumentation/blob/master/sequence/matching.php#L89