Browse Source

Make http_response_code() return FALSE where data is not available (Ex. cli sapi)

experimental/with_scalar_types
Ilia Alshanetsky 16 years ago
parent
commit
57ff563262
  1. 4
      ext/standard/head.c

4
ext/standard/head.c

@ -289,6 +289,10 @@ PHP_FUNCTION(http_response_code)
return;
}
if (!SG(sapi_headers).http_response_code) {
RETURN_FALSE;
}
RETURN_LONG(SG(sapi_headers).http_response_code);
}
/* }}} */

Loading…
Cancel
Save