#18936 [Opn->Fbk]: Causes server to crash, serious problem

From: Date: Sat, 17 Aug 2002 04:38:17 +0000
Subject: #18936 [Opn->Fbk]: Causes server to crash, serious problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17074@lists.php.net to get a copy of this message
ID: 18936 Updated by: kalowsky@php.net Reported By: theshithead@cox.net -Status: Open +Status: Feedback Bug Type: Performance problem Operating System: Unsure PHP Version: 4.2.0 Previous Comments: ------------------------------------------------------------------------ [2002-08-17 00:38:01] kalowsky@php.net so you have $var in your database, and then you overwrite it by setting it to the return value from the included file? Where is the bug, this works just fine for me on multiple OSes. You may wish to try updating to 4.2.2, if only for the security fixes in it. ------------------------------------------------------------------------ [2002-08-17 00:14:12] theshithead@cox.net Okay, I have $var in my MySQL Database. I first eval it so the variable will work. $var = include("file.php"); that a little easier? ------------------------------------------------------------------------ [2002-08-16 09:47:02] kalowsky@php.net Okay I have no idea what you're trying to show us here. Can you please make this the SIMPLEST sample script you can, and explain it a lot better? Also do please try to upgrade to PHP 4.2.2 ------------------------------------------------------------------------ [2002-08-16 04:09:12] theshithead@cox.net 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 this bug report at http://bugs.php.net/?id=18936&edit=1

« previous php.bugs (#17074) next »