Re: hasType() for internal function parameters?

From: Date: Mon, 22 Jun 2015 14:23:46 +0000
Subject: Re: hasType() for internal function parameters?
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-86785@lists.php.net to get a copy of this message
On 06/22/2015 05:11 AM, Dmitry Stogov wrote: > Hi Rasmus, > > Your latest changes broke more than 100 tests. > Sorry, but I had to revert your commits and related Bob's fixes. > You may find them in internal-arg-info branch. > > Please, don't do experiments on the common code base at beta stage. > On the other hand, I don't see a big problem committing this, when a > complete solution is ready. Oops, way more test failures than I expected. But I don't understand some of them. For example, Zend/tests/constants_008.phpt which is: <?php define('a', 2); const a = 1; if (defined('a')) { print a; } With arginfo filled in correctly for define() and defined() the output is: ./../sapi/cli/php -derror_reporting=-1 constants_008.php Notice: Constant a already defined in Zend/tests/constants_008.php on line 4 1 And without arginfo: php -derror_reporting=-1 constants_008.php Notice: Constant a already defined in Zend/tests/constants_008.php on line 4 2 I wasn't expecting fixing arginfo would change how constants behave. -Rasmus

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.internals (#86785) next »