[PR][php-src][#1107][master] - Fix declare error behavior so that improper usages will actually error [#69092]

From: Date: Fri, 20 Feb 2015 16:55:00 +0000
Subject: [PR][php-src][#1107][master] - Fix declare error behavior so that improper usages will actually error [#69092]
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-2412@lists.php.net to get a copy of this message
You can view the Pull Request on github: https://github.com/php/php-src/pull/1107 Pull Request Description: Fixes bug https://bugs.php.net/bug.php?id=69092 The current compile-time error check for declare(encoding="...") is incorrect. Declare is a parse-time only directive, which does not respect scope. The current compile-time checks for the declare(encoding) directive only check to see if it's the first opcode in the active oparray. This is fine if the active oparray is a file, however if it is a function odd behavior will be allowed. In the provided test script, "Bye" would be interpreted using the UTF-8 encoding pragma, where "Hi" would use the default.

« previous php.git-pulls (#2412) next »