#32006 [NEW]: convert_uudecode not always working
| From: | hoarau76 at free dot fr | Date: | Thu, 17 Feb 2005 00:23:06 +0000 |
| Subject: | #32006 [NEW]: convert_uudecode not always working | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-74182@lists.php.net to get a copy of this message | ||
From: hoarau76 at free dot fr
Operating system: windows XP pro
PHP version: 5.0.3
PHP Bug Type: Strings related
Bug description: convert_uudecode not always working
Description:
------------
I can't uudecode a string
it works under perl or winrar, but not with php 5.03
Reproduce code:
---------------
<?php
$data =
file_get_contents("http://www.chez.com/hoarau/bad_size.alt.binaries.picture.erotica.breasts.natural.87617");
if (preg_match("/begin ([0-7]+) (.+)\r?\n(.+)\r?\nend/Us", $data,
$part))
{
$file = convert_uudecode($part[3]);
}
?>
Expected result:
----------------
I expect this script to work but it doesn't and gave me:
PHP Warning: convert_uudecode(): The given parameter is not a valid
uuencoded s
tring. in C:\a.php on line 7
--
Edit bug report at http://bugs.php.net/?id=32006&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32006&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32006&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32006&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32006&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32006&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32006&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32006&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32006&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32006&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32006&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32006&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32006&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32006&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32006&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32006&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32006&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32006&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32006&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32006&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32006&r=mysqlcfg