php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18473 variable problem
Submitted: 2002-07-22 16:38 UTC Modified: 2002-07-22 16:39 UTC
From: chris at jynx dot net Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.2.1 OS: Linux SMP 2.2.20 (slackware)
Private report: No CVE-ID: None
 [2002-07-22 16:38 UTC] chris at jynx dot net
When compiling with these options.

./configure --prefix=/usr/local \
  --with-apache=/usr/src/apache_1.3.26 \
--enable-exif \
--enable-track-vars \
--with-calendar=shared \
--enable-magic-quotes \
--enable-trans-sid \
--enable-wddx \
--enable-ftp \
--enable-inline-optimization \
--enable-memory-limit \
--with-gd="/usr/local" \
--with-zlib \
--enable-gd-native-tt \
--with-t1lib="/usr/local" \
--with-jpeg-dir="/usr" \
--with-png-dir="/usr/local" \
--with-zlib-dir="/usr/local" \
--with-ttf \
--with-freetype-dir="/usr/local" \
 --with-snmp=/usr/local/snmp \
 --with-openssl="/usr/local" \
 --with-mysql \


All goes fine.  But no variables will work. Not even static vars.

Example 

<?
echo "<a href=\"page.php?test=testing\">";
?>

On page.php  $test will = nothing.  If i switch back to 4.1.2 and restart apache, all is back to normal  $test will = testing.


Tested with 4.1.2 with apache 1.3.26   (works fine)
       and 4.2.1 with apache 1.3.26     (same problem as above)
       and 4.2.2 with apache 1.3.26       (same problem as above)


There are no errors during the compile. No errors when the webserver is serving.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-22 16:39 UTC] derick@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jan 29 02:03:33 2022 UTC