Bug #3124: extra white space in copy() causes error

From: Date: Thu, 06 Jan 2000 22:05:27 +0000
Subject: Bug #3124: extra white space in copy() causes error
Groups: php.dev 
Request: Send a blank email to php-dev+get-14319@lists.php.net to get a copy of this message
From: mstearne@entermix.com Operating system: FreeBSD PHP version: Earlier? Upgrade first! PHP Bug Type: Parser error Bug description: extra white space in copy() causes error If there is extra white space in the copy function it will cause the function to break. This happens on FreeBSD 2.?? and PHP 3.0.6 (I can't upgrade it), but does not happen on Linux 2.2.12-20 with PHP 3.0.12 so I don't know if it has been fixed or is platform specific. ------------------------------------------------------- $ABS_IMAGES_DIR=" /usr/www/users/XXXX/house/images/"; /// White space above before /usr/ $ImageFinal=$ABS_IMAGES_DIR.$new_file_name.$ImageExt; copy($image, $ImageFinal); Gets error: Warning: Unable to create ' /usr/www/users/XXXX/house/images/1RIMG2.jpg': No such file or directory in /usr/www/users/XXXX/db/menurent.php3 on line 306

« previous php.dev (#14319) next »