#20411 [Fbk->Bgs]: argc, argv
| From: | sniper@php.net | Date: | Wed, 13 Nov 2002 18:15:30 +0000 |
| Subject: | #20411 [Fbk->Bgs]: argc, argv | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24824@lists.php.net to get a copy of this message | ||
ID: 20411
Updated by: sniper@php.net
Reported By: firmolari@terra.es
-Status: Feedback
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Solaris 2.8
PHP Version: 4.2.3
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-11-13 12:03:10] derick@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-11-13 10:20:41] firmolari@terra.es
I´ve installed PHP 4.2.3 in Solaris 2.8 with the ldap funntions
That´s it.
./configure --with-ldap
Everything works fine except the variables $argc and $argv. They don´t
work.
If you use
echo "Value of ARGC = $argc"; it doesn´t work.
I´ve sured myself that the register_argc_argv varible is set to "1".
That´s a bug from this version. My previous version intalled was PHP
4.1.1 (without LDAP) and work ok both variables.
EXAMPLE:
<?php
// File: bug.php
echo "The value is $argc";
?>
Command:
>php bug.php 123
RESULT:
The value is
------------------------
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20411&edit=1