|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-08 13:25 UTC] zabmilenko at charter dot net
[2008-01-08 17:53 UTC] johannes@php.net
[2008-01-09 08:31 UTC] zabmilenko at charter dot net
[2008-01-09 08:39 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ If you use a misspelled or unknown directive in a declare() statement, no error or warning is produced. To help in debugging, at least a warning should be raised if a directive is used that is not known to the php engine. Reproduce code: --------------- <?php declare(foobar="baz") { echo 'Hello, world'; } ?> Expected result: ---------------- Perhaps an error or warning stating that the declare directive is unknown or invalid. Actual result: -------------- Blocked up code executes like expected but nothing occurs with the declare() statement.