#18818 [NEW]: $userfile from fileupload is returning null instead of "NONE"
| From: | simon at nzservers dot com | Date: | Thu, 08 Aug 2002 23:01:47 +0000 |
| Subject: | #18818 [NEW]: $userfile from fileupload is returning null instead of "NONE" | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-16334@lists.php.net to get a copy of this message | ||
From: simon@nzservers.com
Operating system: redhat 7.1 & redhat 7.2
PHP version: 4.2.2
PHP Bug Type: Unknown/Other Function
Bug description: $userfile from fileupload is returning null instead of "NONE"
After upgrading from 4.1.2 to 4.2.2 the behaviour of the returned $userfile
has changed.
4.1.2 returned "NONE" on a file not being present, and 4.2.2 returns a
null value.
We have register_globals set to on, none of the remaining configuration
has changed. After reverting to php 4.1.2 the problem disappears.
Other config info:
Kernel 2.4.18
apache versions 1.3.20 (our test servers )and 1.3.26 (our production
servers.
configuration string:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml'
'--enable-bcmath' '--enable-calendar' '--enable-ftp'
'--with-gd=../gd-1.8.4' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr'
'--with-imap=../imap-2001.BETA.SNAP-0105220031' '--with-mcrypt'
'--with-ming=../ming-0.1.1' '--with-mysql' '--with-pear'
'--enable-track-vars' '--with-ttf' '--enable-versioning'
'--with-zlib'
Another php coders post on the same issue:
http://groups.google.com/groups?q=file+upload+php+NONE&start=10&hl=en&lr=&ie=UTF-8&oe=UTF-8&scoring=d&selm=note-23727%40php.net&rnum=14
The above link includes plenty of examples between different versions of
php.
regards,
Simon
--
Edit bug report at http://bugs.php.net/?id=18818&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18818&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18818&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18818&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18818&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18818&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18818&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18818&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18818&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18818&r=globals