RE: [PHP] 3rd include

From: Date: Wed, 08 Aug 2001 19:18:50 +0000
Subject: RE: [PHP] 3rd include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61893@lists.php.net to get a copy of this message
You're right. It is not discuessed there. My memory served me incorrectly. In index.php (the file loaded by php), 'echo( $HTTP_POST_VARS["last_name"] );' will print the variable contents, but in save_script.php (the 3rd file included) the same function call will print nothing. Am I mis understanding something? --Drew Vogel On Wed, 8 Aug 2001, Mark Roedel wrote: >I don't see anything in the annotations for include() about losing >variable definitions...the notes that I see that look remotely relevant >are those regarding what PHP considers to be the "current directory" >when doing nested includes, which would cause problems in locating the >include files themselves, not in losing their contents. > >If that's what you're referring to, see bug#11362 - per Zeev, the >current CVS (as well as PHP 4.0.7 when it's released), has changed to a >behavior that should be more likely to do WhatTheScriptProgrammerMeant >in most cases. > > >--- >Mark Roedel (roedelm@letu.edu) || "There cannot be a crisis next week. >Systems Programmer / WebMaster || My schedule is already full." > LeTourneau University || -- Henry Kissinger > > > >> -----Original Message----- >> From: Drew P. Vogel [mailto:dvogel@intercarve.net] >> Sent: Wednesday, August 08, 2001 12:13 PM >> To: Mark Roedel >> Cc: php-general@lists.php.net >> Subject: RE: [PHP] 3rd include >> >> >> I searched the database and did not find anything. I was not >> sure if the >> bug could possibly be entered under a different title, though. It is >> discussed in the manual errata for the include() function, so I would >> assume the developers at least know of it. >> >> --Drew Vogel >> >> On Wed, 8 Aug 2001, Mark Roedel wrote: >> >> >> -----Original Message----- >> >> From: Drew P. Vogel [mailto:dvogel@intercarve.net] >> >> Sent: Tuesday, August 07, 2001 8:51 PM >> >> To: php-general@lists.php.net >> >> Subject: [PHP] 3rd include >> >> >> >> >> >> Has the "3rd include" bug (where variable definitions are >> >> "lost" at the 3rd include), been fixed yet? >> > >> >The obvious way to answer this question would be to look it up in the >> >database at bugs.php.net. Any idea whether it's actually >> gotten entered >> >there? (I tried searching for '3rd', 'third', and >> >'three' >> -- 'include' >> >just got way more results than I was interested in sifting through -- >> >and didn't see anything that appeared to match what you're >> describing... >> > >> > >> >--- >> >Mark Roedel | "This is the perversity of software. It >> >Systems Programmer | is *always* more complex than you >> >LeTourneau University | anticipate, even when you know this and >> >Longview, Texas, USA | compensate for it." --Robert Martin >

« previous php.general (#61893) next »