if (offset >= 0) {
if (offset > haystack_len) {
- php_error(E_NOTICE, "Offset is greater than the length of haystack string");
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Offset is greater than the length of haystack string");
RETURN_FALSE;
}
p = haystack + offset;
e = haystack + haystack_len - needle_len;
} else {
if (-offset > haystack_len) {
- php_error(E_NOTICE, "Offset is greater than the length of haystack string");
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Offset is greater than the length of haystack string");
RETURN_FALSE;
}
Can also avoid tolower emallocs */
if (offset >= 0) {
if (offset > haystack_len) {
- php_error(E_NOTICE, "Offset is greater than the length of haystack string");
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Offset is greater than the length of haystack string");
RETURN_FALSE;
}
p = haystack + offset;
} else {
p = haystack;
if (-offset > haystack_len) {
- php_error(E_NOTICE, "Offset is greater than the length of haystack string");
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Offset is greater than the length of haystack string");
RETURN_FALSE;
} else {
e = haystack + haystack_len + offset;
if (offset >= 0) {
if (offset > haystack_len) {
- php_error(E_NOTICE, "Offset is greater than the length of haystack string");
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Offset is greater than the length of haystack string");
RETURN_FALSE;
}
p = haystack_dup + offset;
e = haystack_dup + haystack_len - needle_len;
} else {
if (-offset > haystack_len) {
- php_error(E_NOTICE, "Offset is greater than the length of haystack string");
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Offset is greater than the length of haystack string");
RETURN_FALSE;
}
p = haystack_dup;