#32881 [Bgs->WFx]: php_check_syntax / require_once

From: Date: Thu, 28 Apr 2005 23:43:51 +0000
Subject: #32881 [Bgs->WFx]: php_check_syntax / require_once
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-78398@lists.php.net to get a copy of this message
 ID:               32881
 Updated by:       sniper@php.net
 Reported By:      zapco dot bo197_php at gadz dot org
-Status:           Bogus
+Status:           Wont fix
-Bug Type:         Unknown/Other Function
+Bug Type:         *General Issues
 Operating System: windows XP
 PHP Version:      5.0.4
 New Comment:

php_check_syntax() will be removed in next PHP versions due to the fact
that it can't be made reliable/stable, ever.

So plain and simple: Do not use it. It's dangerous.

Use something like 'system("php -l foo.php");' to check the syntax..



Previous Comments:
------------------------------------------------------------------------

[2005-04-29 01:38:51] iliaa@php.net

php_check_syntax() function is removed as of PHP 5.0.5

------------------------------------------------------------------------

[2005-04-29 01:12:51] zapco dot bo197_php at gadz dot org

Description:
------------
I have some problems with the function php_check_syntax, require_once
and ReflectionClass.

when I use the script at this page : http://zapco.free.fr/bug.txt , I
don't know if the included file (fichier_a.php or fichier_b.php in my
exemple) herite or not from an other class, so index_x.php haven't the
same result if the class in file used herite or not from an other
class.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32881&edit=1


Thread (3 messages)

« previous php.bugs (#78398) next »