1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00

Remove unnecessary warning by warning reorder.

This commit is contained in:
Yasuo Ohgaki
2016-01-17 16:21:01 +09:00
parent 9f2240963f
commit dbba4418d8
+4 -4
View File
@@ -2055,13 +2055,13 @@ static PHP_FUNCTION(session_regenerate_id)
return;
}
if (SG(headers_sent) && PS(use_cookies)) {
php_error_docref(NULL, E_WARNING, "Cannot regenerate session id - headers already sent");
if (PS(session_status) != php_session_active) {
php_error_docref(NULL, E_WARNING, "Cannot regenerate session id - session is not active");
RETURN_FALSE;
}
if (PS(session_status) != php_session_active) {
php_error_docref(NULL, E_WARNING, "Cannot regenerate session id - session is not active");
if (SG(headers_sent) && PS(use_cookies)) {
php_error_docref(NULL, E_WARNING, "Cannot regenerate session id - headers already sent");
RETURN_FALSE;
}