cvs: /php4/sapi/isapi php4isapi.c

From: Date: Sat, 15 Apr 2000 19:21:13 +0000
Subject: cvs: /php4/sapi/isapi php4isapi.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-13599@lists.php.net to get a copy of this message
fmk Sat Apr 15 12:21:13 2000 EDT Modified files: /php4/sapi/isapi php4isapi.c Log: Adding $PHP_SELF variable for compatibility with other platforms Index: php4/sapi/isapi/php4isapi.c diff -u php4/sapi/isapi/php4isapi.c:1.38 php4/sapi/isapi/php4isapi.c:1.39 --- php4/sapi/isapi/php4isapi.c:1.38 Sat Apr 15 07:28:47 2000 +++ php4/sapi/isapi/php4isapi.c Sat Apr 15 12:20:43 2000 @@ -322,6 +322,8 @@ if (lpECB->GetServerVariable(lpECB->ConnID, *p, static_variable_buf, &variable_len) && static_variable_buf[0]) { php_register_variable(*p, static_variable_buf, track_vars_array ELS_CC PLS_CC); + if (strcmp(*p, "SCRIPT_NAME") == 0) + php_register_variable("PHP_SELF", static_variable_buf, track_vars_array ELS_CC PLS_CC); } else if (GetLastError() == ERROR_INSUFFICIENT_BUFFER) { variable_buf = (char *) emalloc(variable_len); if (lpECB->GetServerVariable(lpECB->ConnID, *p, variable_buf, &variable_len)

« previous php.version4 (#13599) next »