ID: 20411 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Solaris 2.8 PHP Version: 4.2.3 New Comment:
Thanks for the report, this is now documented. In CLI $argc and $argv exist as of PHP 4.3.0 no matter the register_globals setting. In CGI register_globals still applies. Previous Comments: ------------------------------------------------------------------------ [2002-11-14 02:48:51] [EMAIL PROTECTED] Thatīs OK. Sorry, as Philip said, it was a documentation problem. Thatīs because I updated from PHP 4.1.1, to PHP 4.2.3. Thanks. ------------------------------------------------------------------------ [2002-11-13 14:26:02] [EMAIL PROTECTED] 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 :-)) ------------------------------------------------------------------------ [2002-11-13 12:15:30] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php