#include "php_http_api.h"
#include <ext/standard/php_lcg.h>
-#include <ext/standard/php_string.h>
#include <zend_exceptions.h>
/* SLEEP */
{
int result = 0;
+ if (!haystack_str || !needle_str) {
+ return result;
+ }
+
if (flags & PHP_HTTP_MATCH_FULL) {
if (flags & PHP_HTTP_MATCH_CASE) {
result = !strcmp(haystack_str, needle_str);