Bug #18998 [Nab->Csd]: vars using get wont print
| From: | git@php.net | Date: | Tue, 06 Apr 2021 10:19:56 +0000 |
| Subject: | Bug #18998 [Nab->Csd]: vars using get wont print | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-233196@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=18998&edit=1
ID: 18998
Updated by: git@php.net
Reported by: trolldude at gmx dot net
Summary: vars using get wont print
-Status: Not a bug
+Status: Closed
Type: Bug
Package: URL related
Operating System: win2k / linux
PHP Version: 4.2.2
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of
Revision: https://github.com/php/pecl-system-expect/commit/3df1f5db6572fdc0157c58ea53c171b8325af736
Log: Fixed bug #18998 (Change expect.logfile on runtime leave file descriptor opened)
Previous Comments:
------------------------------------------------------------------------
[2004-08-19 19:12:31] nospam at imaginacolombia dot com
you must use the $_GET and $_POST arrays, in test2.php try
<?php
echo $_GET["var"];
?>
http://www.imaginacolombia.com
------------------------------------------------------------------------
[2002-08-20 21:26:04] sniper@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'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.
------------------------------------------------------------------------
[2002-08-20 17:32:38] trolldude at gmx dot net
hi,
my isp updated to php 4.2.2
since then all my scripts worked fine, as they should.
after the update nothing worked anymore.
here sample script
test.php
--------
<?php
$test = 1;
echo ("<a href=./test2.php?var=".$test.">test</a>");
?>
test2.php
---------
<?PHP
echo $var;
?>
so test2.php echoed nothing.
i tried a lot and after installing php 4.2.2 locally, ich found out that in php.ini following lines
were commented out:
;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
;
; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
;arg_separator.output = "&"
; List of separator(s) used by PHP to parse input URLs into variables.
; Default is "&".
; NOTE: Every character in this directive is considered as separator!
;arg_separator.input = ";&"
after activating arg_seperator.output + input
all my scripts worked fine again.
so MY problem now is that my i cant fix it locally but i and i think a lot of more people cant chang
php.ini on my ISP Site.
is it possible to make this public somewhere on php.net so that also the ISPs will read when
downloading ?
thanx
Markus Brendler
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=18998&edit=1