php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32881 php_check_syntax / require_once
Submitted: 2005-04-29 01:12 UTC Modified: 2005-04-29 01:43 UTC
From: zapco dot bo197_php at gadz dot org Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 5.0.4 OS: windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zapco dot bo197_php at gadz dot org
New email:
PHP Version: OS:

 

 [2005-04-29 01:12 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-29 01:38 UTC] iliaa@php.net
php_check_syntax() function is removed as of PHP 5.0.5
 [2005-04-29 01:43 UTC] sniper@php.net
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..

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 08:01:34 2025 UTC