note 98655 added to function.halt-compiler
| From: | ravenswd at gmail dot com | Date: | Tue, 29 Jun 2010 13:16:19 +0000 |
| Subject: | note 98655 added to function.halt-compiler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170547@lists.php.net to get a copy of this message | ||
__halt_compiler is also useful for debugging. If you need to temporarily make a change that will
introduce an error later on, use __halt_compiler to prevent syntax errors. For example:
<?php
if ( $something ):
print 'something';
endif; // endif placed here for debugging purposes
__halt_compiler();
endif; // original location of endif -- would produce syntax error if __halt_compiler was not
there
?>
----
Server IP: 69.147.83.197
Probable Submitter: 67.165.170.105
----
Manual Page -- http://www.php.net/manual/en/function.halt-compiler.php
Edit -- https://master.php.net/note/edit/98655
Del: integrated -- https://master.php.net/note/delete/98655/integrated
Del: useless -- https://master.php.net/note/delete/98655/useless
Del: bad code -- https://master.php.net/note/delete/98655/bad+code
Del: spam -- https://master.php.net/note/delete/98655/spam
Del: non-english -- https://master.php.net/note/delete/98655/non-english
Del: in docs -- https://master.php.net/note/delete/98655/in+docs
Del: other reasons-- https://master.php.net/note/delete/98655
Reject -- https://master.php.net/note/reject/98655
Search -- https://master.php.net/manage/user-notes.php