ID: 31401 Updated by: [EMAIL PROTECTED] Reported By: mleon at scientificinformatics dot com -Status: Open +Status: Bogus Bug Type: Session related Operating System: Linux (Mandrake 10.0) PHP Version: 4.3.8 New Comment:
Set php.ini option "register_globals" to off. You could also avoid this 'bug' by using some other variable name than $temppdf.. No bug here. Previous Comments: ------------------------------------------------------------------------ [2005-01-04 06:44:53] mleon at scientificinformatics dot com Description: ------------ After using $_SESSION['i'] as an argument to file_get_contents(), $_SESSION['i'] value is replaced by the file loaded with file_get_contents() Reproduce code: --------------- session_start(); $_SESSION['temppdf']="reports/processed/temp-33689592941d9fbfcca184.pdf"; echo "<br>SESSION['temppdf']: ".$_SESSION['temppdf']; $temppdf = file_get_contents($_SESSION['temppdf']); echo "<br>SESSION['temppdf']: ".$_SESSION['temppdf']; Expected result: ---------------- SESSION['temppdf']: reports/processed/temp-33689592941d9fbfcca184.pdf SESSION['temppdf']: reports/processed/temp-33689592941d9fbfcca184.pdf Actual result: -------------- SESSION['temppdf']: reports/processed/temp-33689592941d9fbfcca184.pdf SESSION['temppdf']: %PDF-1.4 3 0 obj <> endobj 4 0 obj <> stream xœ¥VM‹Ü0 ½Ï¯ÐqZ%[–............... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31401&edit=1