mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
when "track_vars" is disabled and a script which contains <?php_track_vars?> is
accessed for the first time, track vars were not created properly.
This commit is contained in:
parent
52cd153723
commit
053712c95d
10
main/main.c
10
main/main.c
@ -569,9 +569,17 @@ static void php_message_handler_for_zend(long message, void *data)
|
||||
{
|
||||
switch (message) {
|
||||
case ZMSG_ENABLE_TRACK_VARS: {
|
||||
int old;
|
||||
PLS_FETCH();
|
||||
|
||||
|
||||
old = PG(track_vars);
|
||||
PG(track_vars) = 1;
|
||||
|
||||
if(old == 0) {
|
||||
php3_treat_data(PARSE_POST, NULL);
|
||||
php3_treat_data(PARSE_COOKIE, NULL);
|
||||
php3_treat_data(PARSE_GET, NULL);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ZMSG_FAILED_INCLUDE_FOPEN: {
|
||||
|
Loading…
Reference in New Issue
Block a user