We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f3e741 commit da4185aCopy full SHA for da4185a
2 files changed
ext/session/session.c
@@ -641,7 +641,7 @@ static PHP_INI_MH(OnUpdateSaveDir)
641
642
/* Only do the open_basedir check at runtime */
643
if (stage == PHP_INI_STAGE_RUNTIME || stage == PHP_INI_STAGE_HTACCESS) {
644
- if (memchr(ZSTR_VAL(new_value), '\0', ZSTR_LEN(new_value)) != NULL) {
+ if (zend_str_has_nul_byte(new_value)) {
645
return FAILURE;
646
}
647
ext/soap/soap.c
@@ -387,7 +387,7 @@ static PHP_INI_MH(OnUpdateCacheDir)
387
388
char *p;
389
390
391
392
393
0 commit comments