#33080 [NEW]: Bug 31465 recurring on 5.0.4
| From: | marc at durdin dot net | Date: | Fri, 20 May 2005 13:07:07 +0000 |
| Subject: | #33080 [NEW]: Bug 31465 recurring on 5.0.4 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-79254@lists.php.net to get a copy of this message | ||
From: marc at durdin dot net
Operating system: Windows Server 2003
PHP version: 5.0.4
PHP Bug Type: Strings related
Bug description: Bug 31465 recurring on 5.0.4
Description:
------------
Bug 31465 has been marked as fixed in 5.0.4 - however, I just upgraded to
5.0.4 and started experiencing it on my system - using it to upload files
as follows:
I am using the stock precompiled download from php.net.
Basic PHP information:
PHP Version => 5.0.4
System => Windows NT 5.2 build 3790
Build Date => Mar 31 2005 02:44:34
Configure Command => cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
Server API => Command Line Interface
Virtual Directory Support => enabled
Configuration File (php.ini) Path => [obscured]
PHP API => 20031224
PHP Extension => 20041030
Zend Extension => 220040412
Debug Build => no
Thread Safety => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, http, ftp, compress.zlib
Registered Stream Socket Transports => tcp, udp
Marc Durdin
Reproduce code:
---------------
$datastring = file_get_contents($Filename);
$data = unpack("H*hex", $datastring);
$FileID = mssql_db_call_to_store_file($OriginalFileName,
'0x'.$data['hex']);
Expected result:
----------------
(no output expected)
Actual result:
--------------
Warning: unpack() function.unpack: Type H: outside of string
--
Edit bug report at http://bugs.php.net/?id=33080&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33080&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33080&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33080&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33080&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33080&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33080&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33080&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33080&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33080&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33080&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33080&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33080&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33080&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33080&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33080&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33080&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33080&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33080&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33080&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33080&r=mysqlcfg