Bug #18286 Updated: UPLOAD_ERROR_X constants differ from documentation

From: Date: Thu, 11 Jul 2002 22:10:18 +0000
Subject: Bug #18286 Updated: UPLOAD_ERROR_X constants differ from documentation
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-13886@lists.php.net to get a copy of this message
ID: 18286 Updated by: philip@php.net Reported By: powerlord@vgmusic.com Status: Open Bug Type: Documentation problem Operating System: Linux 2.4.x -PHP Version: 4.2.1 +PHP Version: 4.3.0 New Comment: The documentation at features.file-upload.errors is a little unclear on this matter. Are these suppose to be PHP constants too? See also: * http://marc.theaimsgroup.com/?l=php-dev&m=101246726632633 * http://lxr.php.net/source/php4/main/rfc1867.c Btw, they return those strings because they are undefined. print ANYTHING; will do that and throw an error of level E_NOTICE. Previous Comments: ------------------------------------------------------------------------ [2002-07-11 17:22:27] powerlord@vgmusic.com I am using PHP on Apache 1.3.26. When attempting to use the UPLOAD_ERROR_A through UPLOAD_ERROR_E constants, they return the following: UPLOAD_ERROR_A returns the string UPLOAD_ERROR_A UPLOAD_ERROR_B returns the string UPLOAD_ERROR_B UPLOAD_ERROR_C returns the string UPLOAD_ERROR_C UPLOAD_ERROR_D returns the string UPLOAD_ERROR_D UPLOAD_ERROR_E returns the string UPLOAD_ERROR_E This is what *should* happen according to documentation: UPLOAD_ERROR_A should return the value 1 UPLOAD_ERROR_B should return the value 2 UPLOAD_ERROR_C should return the value 3 UPLOAD_ERROR_D should return the value 4 UPLOAD_ERROR_E should return the value 5 This is reproducible using <?php echo UPLOAD_ERROR_A ?> (Please note the lack of quotes before marking this as bogus). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18286&edit=1

« previous php.bugs (#13886) next »