Re: php_check_syntax loads functions and classes
| From: | John Holmes | Date: | Sun, 08 Aug 2004 17:01:36 +0000 |
| Subject: | Re: php_check_syntax loads functions and classes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193139@lists.php.net to get a copy of this message | ||
Michael Scholl wrote:
I'm running PHP 5.0.0 with Apache 2.0.50 and have a problem with the php_check_syntax function. When I use it, it loads all functions ans classes. But I only want to check the syntax, not to load the files. Is this a bug or a feature ?Actually I found this bug (http://bugs.php.net/bug.php?id=27406) which has the answer we're all looking for: Don't misuse the function. Very helpful, eh? I added a comment to please enlighten us what the proper usage was, so maybe that'll help. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com