ID: 28808 Updated by: [EMAIL PROTECTED] Reported By: gphemsley at users dot sourceforge dot net -Status: Open +Status: Feedback Bug Type: CGI related Operating System: Windows XP Professional SP1 PHP Version: 5.0.0RC3 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2004-06-16 18:10:32] gphemsley at users dot sourceforge dot net I was hoping there were attachments here, but I can't find any. Here are the three files mentioned above: http://www.music-hq.net/~gphemsley/PHP/3nCryPt.enc http://www.music-hq.net/~gphemsley/PHP/uudecode_appcompat.txt http://www.music-hq.net/~gphemsley/PHP/uudecode_php-cgi.exe.mdmp ------------------------------------------------------------------------ [2004-06-16 18:06:27] gphemsley at users dot sourceforge dot net 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28808&edit=1