|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-16 18:10 UTC] gphemsley at users dot sourceforge dot net
[2004-09-06 14:37 UTC] nlopess@php.net
[2004-09-14 01:00 UTC] php-bugs at lists dot php dot net
[2005-07-23 17:55 UTC] gphemsley at users dot sourceforge dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
Description: ------------ convert_uudecode() crashes the CGI version of PHP 5.0.0RC3, seemingly trying to parse its contents as PHP code. Reproduce code: --------------- <?php // Temporary $_REQUEST['file'] = 'C:\\Documents and Settings\\Gordon Hemsley\\Local Settings\\Temp\\3nCryPt\\3nCryPt.enc'; if( isset( $_REQUEST['file'] ) ) { print "<pre>\n"; foreach( file( $_REQUEST['file'] ) as $line ) { print htmlentities( convert_uudecode( $line ) ); } print "</pre>\n"; } ?> Expected result: ---------------- A decoded version of the file that I provided it. Actual result: -------------- It spits out these lines and then dies (causing the Windows Error Reporting window to pop up): PHP Notice: Undefined variable: /a♀╪↕* in D:\Program Files\Apache Group\Apache \htdocs\uudecode.php5 on line 13 PHP Notice: Undefined variable: /a♀╪↕* in D:\Program Files\Apache Group\Apache \htdocs\uudecode.php5 on line 13 The error reporting data included this: szAppName : php-cgi.exe szAppVer : 5.0.0.0 szModName : ntdll.dll szModVer : 5.1.2600.1217 offset : 00033aed And 2 files.