RE: [PHP] 3rd include

2001-08-08 Thread Mark Roedel

 -Original Message-
 From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 07, 2001 8:51 PM
 To: [EMAIL PROTECTED]
 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 3rd include

2001-08-08 Thread Johnson, Kirk

 Has the 3rd include bug (where variable definitions ar 
 lost at the 3rd
 include), been fixed yet?
 
 --Drew Vogel

Drew, I hadn't heard about this one. If you find anything, would you please
post back your results to the list?

TIA

Kirk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 3rd include

2001-08-08 Thread Drew P. Vogel

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:[EMAIL PROTECTED]]
 Sent: Tuesday, August 07, 2001 8:51 PM
 To: [EMAIL PROTECTED]
 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





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 3rd include

2001-08-08 Thread Mark Roedel

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 ([EMAIL PROTECTED])  ||  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:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 12:13 PM
 To: Mark Roedel
 Cc: [EMAIL PROTECTED]
 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:[EMAIL PROTECTED]]
  Sent: Tuesday, August 07, 2001 8:51 PM
  To: [EMAIL PROTECTED]
  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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 3rd include

2001-08-08 Thread Drew P. Vogel

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 ([EMAIL PROTECTED])  ||  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:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 12:13 PM
 To: Mark Roedel
 Cc: [EMAIL PROTECTED]
 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:[EMAIL PROTECTED]]
  Sent: Tuesday, August 07, 2001 8:51 PM
  To: [EMAIL PROTECTED]
  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





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 3rd include

2001-08-08 Thread Mark Roedel

 -Original Message-
 From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 2:19 PM
 To: Mark Roedel
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] 3rd include
 
 
 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.

Are you quite sure there's not something else going on here?  (An issue
of the $HTTP_POST_VARS array being out-of-scope inside a function, for
example?)  I'm sure I would have run into this behavior by now if it
were a system bug.

For whatever it's worth, I just did a test, with includes nested ten
deep, and $HTTP_POST_VARS kept its value at every level.  (PHP 4.0.6,
Apache 1.3.20, FreeBSD 4-Stable)


---
Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full.
 LeTourneau University  ||-- Henry Kissinger


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 3rd include

2001-08-08 Thread Drew P. Vogel

If a file is included from within a function, this would limit the
variable cope of this file, correct?

--Drew Vogel

On Wed, 8 Aug 2001, Mark Roedel wrote:

 -Original Message-
 From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 2:19 PM
 To: Mark Roedel
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] 3rd include


 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.

Are you quite sure there's not something else going on here?  (An issue
of the $HTTP_POST_VARS array being out-of-scope inside a function, for
example?)  I'm sure I would have run into this behavior by now if it
were a system bug.

For whatever it's worth, I just did a test, with includes nested ten
deep, and $HTTP_POST_VARS kept its value at every level.  (PHP 4.0.6,
Apache 1.3.20, FreeBSD 4-Stable)


---
Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full.
 LeTourneau University  ||-- Henry Kissinger






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 3rd include

2001-08-08 Thread Mark Roedel

 -Original Message-
 From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 3:14 PM
 To: Mark Roedel
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] 3rd include
 
 
 If a file is included from within a function, this would limit the
 variable cope of this file, correct?

Yes it would.  (Specifically, it would mean that everything in that file
operates at the same scope as the function in which it's included.
That, in turn, means that $HTTP_POST_VARS is likely only available if
it's been declared as global within that function.


---
Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full.
 LeTourneau University  ||-- Henry Kissinger



 On Wed, 8 Aug 2001, Mark Roedel wrote:
 
  -Original Message-
  From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 08, 2001 2:19 PM
  To: Mark Roedel
  Cc: [EMAIL PROTECTED]
  Subject: RE: [PHP] 3rd include
 
 
  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.
 
 Are you quite sure there's not something else going on here? 
  (An issue
 of the $HTTP_POST_VARS array being out-of-scope inside a 
 function, for
 example?)  I'm sure I would have run into this behavior by now if it
 were a system bug.
 
 For whatever it's worth, I just did a test, with includes nested ten
 deep, and $HTTP_POST_VARS kept its value at every level.  (PHP 4.0.6,
 Apache 1.3.20, FreeBSD 4-Stable)
 
 
 ---
 Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a 
 crisis next week.
 Systems Programmer / WebMaster  ||   My schedule is already full.
  LeTourneau University  ||-- 
 Henry Kissinger
 
 
 
 
 
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 3rd include

2001-08-08 Thread Matthew Loff


For reference, in case anyone cares-- from within functions, I usually
just do:

global $HTTP_POST_VARS;
extract($HTTP_POST_VARS);

...to account for the scope of the form vars.


-Original Message-
From: Mark Roedel [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, August 08, 2001 4:08 PM
To: Drew P. Vogel
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] 3rd include


 -Original Message-
 From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 3:14 PM
 To: Mark Roedel
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] 3rd include
 
 
 If a file is included from within a function, this would limit the 
 variable cope of this file, correct?

Yes it would.  (Specifically, it would mean that everything in that file
operates at the same scope as the function in which it's included. That,
in turn, means that $HTTP_POST_VARS is likely only available if it's
been declared as global within that function.


---
Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full.
 LeTourneau University  ||-- Henry Kissinger



 On Wed, 8 Aug 2001, Mark Roedel wrote:
 
  -Original Message-
  From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 08, 2001 2:19 PM
  To: Mark Roedel
  Cc: [EMAIL PROTECTED]
  Subject: RE: [PHP] 3rd include
 
 
  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.
 
 Are you quite sure there's not something else going on here?
  (An issue
 of the $HTTP_POST_VARS array being out-of-scope inside a
 function, for
 example?)  I'm sure I would have run into this behavior by now if it 
 were a system bug.
 
 For whatever it's worth, I just did a test, with includes nested ten 
 deep, and $HTTP_POST_VARS kept its value at every level.  (PHP 4.0.6,

 Apache 1.3.20, FreeBSD 4-Stable)
 
 
 ---
 Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a
 crisis next week.
 Systems Programmer / WebMaster  ||   My schedule is already full.
  LeTourneau University  ||-- 
 Henry Kissinger
 
 
 
 
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] To
contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] 3rd include

2001-08-08 Thread Drew P. Vogel

Ok. That is it. Sorry for the confusion and thank you for the help.

--Drew Vogel

On Wed, 8 Aug 2001, Mark Roedel wrote:

 -Original Message-
 From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 3:14 PM
 To: Mark Roedel
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] 3rd include


 If a file is included from within a function, this would limit the
 variable cope of this file, correct?

Yes it would.  (Specifically, it would mean that everything in that file
operates at the same scope as the function in which it's included.
That, in turn, means that $HTTP_POST_VARS is likely only available if
it's been declared as global within that function.


---
Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full.
 LeTourneau University  ||-- Henry Kissinger



 On Wed, 8 Aug 2001, Mark Roedel wrote:

  -Original Message-
  From: Drew P. Vogel [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 08, 2001 2:19 PM
  To: Mark Roedel
  Cc: [EMAIL PROTECTED]
  Subject: RE: [PHP] 3rd include
 
 
  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.
 
 Are you quite sure there's not something else going on here?
  (An issue
 of the $HTTP_POST_VARS array being out-of-scope inside a
 function, for
 example?)  I'm sure I would have run into this behavior by now if it
 were a system bug.
 
 For whatever it's worth, I just did a test, with includes nested ten
 deep, and $HTTP_POST_VARS kept its value at every level.  (PHP 4.0.6,
 Apache 1.3.20, FreeBSD 4-Stable)
 
 
 ---
 Mark Roedel ([EMAIL PROTECTED])  ||  There cannot be a
 crisis next week.
 Systems Programmer / WebMaster  ||   My schedule is already full.
  LeTourneau University  ||--
 Henry Kissinger
 
 









-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]