note 87803 added to function.token-get-all

From: Date: Mon, 22 Dec 2008 13:45:58 +0000
Subject: note 87803 added to function.token-get-all
Groups: php.notes 
Request: Send a blank email to php-notes+get-148456@lists.php.net to get a copy of this message
If you run token_get_all() on a string which starts with #!... (eg, #!/usr/local/bin/php) this will be lost. If you rewrite the file using token_get_all() and writing back all tokens afterwards, the #!... will be gone. This causes commandline executable scripts (interpreted by PHP) to be unexecutable. ---- Server IP: 89.248.170.61 Probable Submitter: 82.93.241.107 ---- Manual Page -- http://www.php.net/manual/en/function.token-get-all.php Edit -- https://master.php.net/note/edit/87803 Del: integrated -- https://master.php.net/note/delete/87803/integrated Del: useless -- https://master.php.net/note/delete/87803/useless Del: bad code -- https://master.php.net/note/delete/87803/bad+code Del: spam -- https://master.php.net/note/delete/87803/spam Del: non-english -- https://master.php.net/note/delete/87803/non-english Del: in docs -- https://master.php.net/note/delete/87803/in+docs Del: other reasons-- https://master.php.net/note/delete/87803 Reject -- https://master.php.net/note/reject/87803 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148456) next »