#18936 [NEW]: Causes server to crash, serious problem

From: Date: Fri, 16 Aug 2002 08:09:14 +0000
Subject: #18936 [NEW]: Causes server to crash, serious problem
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16993@lists.php.net to get a copy of this message
From: theshithead@cox.net Operating system: Unsure PHP version: 4.2.0 PHP Bug Type: Performance problem Bug description: Causes server to crash, serious problem This could be hard to explain, but here it goes: <?php #### Quick ex. of variables.php $path_site = "www.w0rms.com"; loginStatus = include("$path_site/login.php"); ?> #### Quick ex. of index.php, page in wich problem occurs <?php // Required Files require("require/variables.php"); require("require/mysql.php"); require("require/functions.php"); require("require/common.php"); require("require/themes.php"); echo "$header"; ?> #### Quick ex of themes.php, the page proccessing the info in database <?php Connect(); $sql = mysql_query("SELECT * FROM $db_themes WHERE theme_id = '$user_theme' ORDER BY theme_id ASC")or mysqlDie("N/A", __FILE__, __LINE__, mysql_error()); $myrow = mysql_fetch_array($sql); $theme_id = $myrow["theme_id"]; $header = addslashes($myrow[header]); eval("\$header = \"$header\";"); $header = stripslashes($header); ?> #### Header of site, stored in MySQL Database (just example not full) <td valign="top" border="0" background="$path_themes/eBlue/images/header_middle.gif"> // problem var $loginStatus </td> As you can see, I am calling that var from my database. All other vars such as path_themes work fine. However this one causes the server to stop. Pages wont load, it completelly crashed for 3 hours. I tried it again, and it happend once more just now. What might the cause be? I am clueless, the include is correct. And I am eval'ing it correct. The only time this happens is when I use the include function in my variable. thanks, w0rms.com -- Edit bug report at http://bugs.php.net/?id=18936&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=18936&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=18936&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18936&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18936&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18936&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18936&r=support Expected behavior: http://bugs.php.net/fix.php?id=18936&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18936&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18936&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18936&r=globals

« previous php.bugs (#16993) next »