mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Fixed SIGSEGV
This commit is contained in:
parent
78ca1de763
commit
ae792a06b0
1 changed files with 4 additions and 5 deletions
|
@ -328,12 +328,11 @@ PHPAPI void php_add_session_var(char *name, size_t namelen TSRMLS_DC)
|
||||||
if (PG(register_globals)) {
|
if (PG(register_globals)) {
|
||||||
zval **sym_global = NULL;
|
zval **sym_global = NULL;
|
||||||
|
|
||||||
zend_hash_find(&EG(symbol_table), name, namelen + 1,
|
if (zend_hash_find(&EG(symbol_table), name, namelen + 1, (void *) &sym_global) == SUCCESS) {
|
||||||
(void *) &sym_global);
|
|
||||||
|
|
||||||
if ((Z_TYPE_PP(sym_global) == IS_ARRAY && Z_ARRVAL_PP(sym_global) == &EG(symbol_table)) || *sym_global == PS(http_session_vars)) {
|
if ((Z_TYPE_PP(sym_global) == IS_ARRAY && Z_ARRVAL_PP(sym_global) == &EG(symbol_table)) || *sym_global == PS(http_session_vars)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (sym_global == NULL && sym_track == NULL) {
|
if (sym_global == NULL && sym_track == NULL) {
|
||||||
zval *empty_var;
|
zval *empty_var;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue