Browse Source

Fix a memory leak by not allowing session_start() to be called more than once.

experimental/newoperator
Andrey Hristov 27 years ago
parent
commit
e88d121be1
  1. 2
      ext/session/session.c

2
ext/session/session.c

@ -338,6 +338,8 @@ static void _php_session_start(PSLS_D)
int nrand;
ELS_FETCH();
if (PS(nr_open_sessions) > 0) return;
if(!PS(id) &&
zend_hash_find(&EG(symbol_table), PS(session_name),
strlen(PS(session_name)) + 1, (void **) &ppid) == SUCCESS) {

Loading…
Cancel
Save