note 105994 deleted from function.halt-compiler by aharvey

From: Date: Fri, 30 Mar 2012 00:20:32 +0000
Subject: note 105994 deleted from function.halt-compiler by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-186907@lists.php.net to get a copy of this message
Note Submitter: glitch dot mr at gmail dot com ---- It looks like when you're using "php" without arguments (CGI mode) when PHP will see __halt_compiler(); it will instantly end getting data (like when having line with just EOF character (CTRL+D)) and will try to interpret data. So following code when inserted to "php" will make "Hello, world!" appear just after __halt_compiler(); without even asking for stuff after it. <?php echo "Hello, world!"; __halt_compiler(); // at this point, PHP interprets stuff with waiting for rest ?>

« previous php.notes (#186907) next »