Bug #12325 Updated: Query_string not defined

From: Date: Tue, 24 Jul 2001 20:18:17 +0000
Subject: Bug #12325 Updated: Query_string not defined
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60898@lists.php.net to get a copy of this message
ID: 12325 User updated by: danradigan@yahoo.com Reported By: danradigan@yahoo.com Status: Feedback Bug Type: Unknown/Other Function Operating System: Win 2k PHP Version: 4.0.6 New Comment: I think this is the relevant section: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; error_reporting is a bit-field. Or each number up to get desired error ; reporting level ; E_ALL - All errors and warnings ; E_ERROR - fatal run-time errors ; E_WARNING - run-time warnings (non-fatal errors) ; E_PARSE - compile-time parse errors ; E_NOTICE - run-time notices (these are warnings which often result ; from a bug in your code, but it's possible that it was ; intentional (e.g., using an uninitialized variable and ; relying on the fact it's automatically initialized to an ; empty string) ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's ; initial startup ; E_COMPILE_ERROR - fatal compile-time errors ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) ; E_USER_ERROR - user-generated error message ; E_USER_WARNING - user-generated warning message ; E_USER_NOTICE - user-generated notice message ; ; Examples: ; ; - Show all errors, except for notices ; ;error_reporting = E_ALL & ~E_NOTICE ; ; - Show only errors ; ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; ; - Show all errors except for notices ; error_reporting = E_ALL; display all errors, warnings and notices ; Print out errors (as a part of the output). For production web sites, ; you're strongly encouraged to turn this feature off, and use error logging ; instead (see below). Keeping display_errors enabled on a production web site ; may reveal security information to end users, such as file paths on your Web ; server, your database schema or other information. display_errors = On ; Even when display_errors is on, errors that occur during PHP's startup ; sequence are not displayed. It's strongly recommended to keep ; display_startup_errors off, except for when debugging. display_startup_errors = Off ; Log errors into a log file (server-specific log, stderr, or error_log (below)) ; As stated above, you're strongly advised to use error logging in place of ; error displaying on production web sites. log_errors = Off ; Store the last error/warning message in $php_errormsg (boolean). track_errors = Off ; String to output before an error message. ;error_prepend_string = "<font color=ff0000>" ; String to output after an error message. ;error_append_string = "</font>" ; Log errors to specified file. ;error_log = filename ; Log errors to syslog (Event Log on NT, not valid in Windows 95). ;error_log = syslog ; Warn if the + operator is used with strings. warn_plus_overloading = Off However, since QUERY_STRING is a PHP variable, I think it should be defined as "" if there is no querystring specified. Previous Comments: ------------------------------------------------------------------------ [2001-07-24 09:24:54] andy@php.net Can you include a copy of your php.ini file? ------------------------------------------------------------------------ [2001-07-23 21:30:26] danradigan@yahoo.com Here is the code I am trying to run: if ($QUERY_STRING != "") { $insertFormAction .= "?" . $QUERY_STRING; When I call the page from the browser with no querystring I get: Warning: Undefined variable: QUERY_STRING in c:\inetpub\wwwroot\gabe\deleteParam.php on line 3 This only reproduces when using the installer for windows from the download section at php.net. I cannot reproduce on Linux or OSX. Also I installed the zip version and cannot reproduce it. Only the installer. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12325&edit=1

« previous php.dev (#60898) next »