#32006 [Opn->Fbk]: convert_uudecode not always working

2005-02-25 Thread sniper
 ID:   32006
 Updated by:   [EMAIL PROTECTED]
 Reported By:  hoarau76 at free dot fr
-Status:   Open
+Status:   Feedback
 Bug Type: Strings related
 Operating System: windows XP pro
 PHP Version:  5.0.3
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip




Previous Comments:


[2005-02-21 20:33:59] hoarau76 at free dot fr

I am sorry but my code is correct.
With your code it still doesn't work on Windows XP pro.

When I test on "Fedora Core release 1 (Yarrow)", it works (my code and
your code)

So the probleme is specific to windows (XP)



[2005-02-21 19:16:00] [EMAIL PROTECTED]

Your regular expression is obviously wrong, as it cuts '\n' at the
end.
Change your code to 'preg_match("/begin ([0-7]+)
(.+)\r?\n(.+)\r?end/Us", $data, $part)' and see that convert_uudecode()
work fine.




[2005-02-17 01:23:05] hoarau76 at free dot fr

Description:

I can't uudecode a string
it works under perl or winrar, but not with php 5.03

Reproduce code:
---
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 this bug report at http://bugs.php.net/?id=32006&edit=1


#32006 [Opn->Fbk]: convert_uudecode not always working

2005-02-16 Thread derick
 ID:   32006
 Updated by:   [EMAIL PROTECTED]
 Reported By:  hoarau76 at free dot fr
-Status:   Open
+Status:   Feedback
 Bug Type: Strings related
 Operating System: windows XP pro
 PHP Version:  5.0.3
 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



Previous Comments:


[2005-02-17 01:23:05] hoarau76 at free dot fr

Description:

I can't uudecode a string
it works under perl or winrar, but not with php 5.03

Reproduce code:
---
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 this bug report at http://bugs.php.net/?id=32006&edit=1