note 124423 added to class.parseerror
| From: | andrian dot test dot job at gmail dot com | Date: | Fri, 22 Nov 2019 09:58:23 +0000 |
| Subject: | note 124423 added to class.parseerror | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-213161@lists.php.net to get a copy of this message | ||
<?php
/*
* The function eval() evaluate his argument as an instruction PHP
* Then the argument must respect the standar of PHP codage
* In this example the semicolon are missign
*/
try{
eval("echo 'toto' echo 'tata'");
}catch(ParseError $p){
echo $p->getMessage();
}
/*
* If you run this code the result is different of the result of above code
* PHP will output the standar parse Error: syntax error, ....
*
eval("echo 'toto' echo 'tata'");
*/
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.195 (proxied: 197.158.119.146)
----
Manual Page -- http://php.net/manual/en/class.parseerror.php
Edit -- https://master.php.net/note/edit/124423
Del: integrated -- https://master.php.net/note/delete/124423/integrated
Del: useless -- https://master.php.net/note/delete/124423/useless
Del: bad code -- https://master.php.net/note/delete/124423/bad+code
Del: spam -- https://master.php.net/note/delete/124423/spam
Del: non-english -- https://master.php.net/note/delete/124423/non-english
Del: in docs -- https://master.php.net/note/delete/124423/in+docs
Del: other reasons-- https://master.php.net/note/delete/124423
Reject -- https://master.php.net/note/reject/124423
Search -- https://master.php.net/manage/user-notes.php