Re: cvs: php-src(PHP_5_3) / run-tests.php
| From: | Johannes Schlüter | Date: | Mon, 08 Dec 2008 19:11:03 +0000 |
| Subject: | Re: cvs: php-src(PHP_5_3) / run-tests.php | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-54760@lists.php.net to get a copy of this message | ||
On Mon, 2008-12-08 at 12:36 +0000, "Jani Taskinen" wrote:
> +// If __DIR__ is not defined, define it
> +if (!defined('__DIR__')) {
defined() will always return true ...
> + define('__DIR__', realpath(dirname(__FILE__)));
... but this will never throw an error.
$ sapi/cli/php -d error_reporting=E_ALL \
-r 'var_dump(__DIR__); var_dump(defined("__DIR__"));
var_dump(define("__DIR__", 32));'
string(39) "/home/johannes/src/php/5.3/debug-notsrm"
bool(false)
bool(true)
Maybe it's better to check for the version there ...
johannes