PHP 4.0 Bug #4079: Logic error in mod_php4.c

From: Date: Sat, 08 Apr 2000 10:52:37 +0000
Subject: PHP 4.0 Bug #4079: Logic error in mod_php4.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-17737@lists.php.net to get a copy of this message
From: pgregg@niweb.com Operating system: FreeBSD 3.4 PHP version: 4.0 Beta 4 Patch Level 1 PHP Bug Type: Other Bug description: Logic error in mod_php4.c In sapi/apache/mod_php4.c the following code has a silly error: if (elts[i].val) { val = elts[i].val; if (!strcmp(val, "SCRIPT_FILENAME")) { script_filename = val; } This is comparing the env value instead of the key, thus $PATH_TRANSLATED won't work; it should be if (!strcmp(elts[i].key, "SCRIPT_FILENAME")) { Paul Gregg.

« previous php.dev (#17737) next »