ID: 12194
Updated by: [EMAIL PROTECTED]
-Summary: Php_open_temporary_file.c doesn't handle trailing
slash on path.
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: all
PHP Version: 4.0.6
New Comment:
The version of PHP that this bug was reported in is too old. Please
try to reproduce this bug in the latest version of PHP (available
from http://www.php.net/downloads.php
If you are still able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2001-07-16 18:44:57] [EMAIL PROTECTED]
In file php_open_temporary_file.c, the code test for the existence of a
trailing slash on the 'path' argument
using the statement:
if (*path+strlen(path)-1 == '/') { ...
This test is incorrect, meaning a trailing slash on, upload_tmp_dir,
for example, won't be handled as intended.
A correct way to do the test would be:
if (path[strlen(path)-1] == '/') { ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12194&edit=1