#20411 [Bgs->Opn]: argc, argv and CLI

From: Date: Wed, 13 Nov 2002 20:26:02 +0000
Subject: #20411 [Bgs->Opn]: argc, argv and CLI
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969349635@lists.php.net to get a copy of this message
ID: 20411 Updated by: philip@php.net -Summary: argc, argv Reported By: firmolari@terra.es -Status: Bogus +Status: Open -Bug Type: Scripting Engine problem +Bug Type: Documentation problem Operating System: Solaris 2.8 PHP Version: 4.2.3 New Comment: In CLI, register_globals doesn't affect this anymore, right? Please share the history of this so it can be fully documented. Currently the docs say they will exist regardless. Changing to doc problem :-)) Previous Comments: ------------------------------------------------------------------------ [2002-11-13 12:15:30] 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-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

« previous php.doc (#969349635) next »