PHP 4.0 Bug #3075: inconsistency in checking include_path
| From: | djm at web dot us dot uu dot net | Date: | Fri, 31 Dec 1999 19:35:57 +0000 |
| Subject: | PHP 4.0 Bug #3075: inconsistency in checking include_path | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14167@lists.php.net to get a copy of this message | ||
From: djm@web.us.uu.net
Operating system: all
PHP version: 4.0 Beta 3
PHP Bug Type: Misbehaving function
Bug description: inconsistency in checking include_path
I'm trying to track down exactly what document_root does, and under what circumstances. I
found the following inconsistency:
If PHP3_URL_FOPEN is defined, then php3_fopen_wrapper runs php3_fopen_url_wrapper, which does:
if (options & USE_PATH) {
fp = php3_fopen_with_path((char *) path, mode, PG(include_path), NULL);
Otherwise, it runs
if (options & USE_PATH && PG(include_path) != NULL) {
return php3_fopen_with_path(path, mode, PG(include_path), NULL);
It seems to me that those two if statements should be identical, so the semantics of include_path
and document_root don't depend on whether PHP3_URL_FOPEN is defined.
I don't know which one is what was intended, however.