Lines Matching refs:NULL

57 	zval *object = ZEND_IS_METHOD_CALL() ? getThis() : NULL;
77 php_error_docref(NULL, E_WARNING, "The invalid fileinfo object."); \
176 php_error_docref(NULL, E_WARNING, "Failed to set option '%pd' %d:%s", \
191 rsrc->ptr = NULL; in finfo_resource_destructor()
206 {NULL, NULL, NULL}
224 …le_fileinfo = zend_register_list_destructors_ex(finfo_resource_destructor, NULL, "file_info", modu… in PHP_MINIT_FUNCTION()
252 NULL,
253 NULL,
254 NULL,
287 char *file = NULL; in PHP_FUNCTION()
302 zend_replace_error_handling(EH_THROW, NULL, &zeh); in PHP_FUNCTION()
307 finfo_obj->ptr = NULL; in PHP_FUNCTION()
312 file = NULL; in PHP_FUNCTION()
319 zend_throw_exception(NULL, "Constructor failed", 0); in PHP_FUNCTION()
324 if (!expand_filepath_with_mode(file, resolved_path, NULL, 0, CWD_EXPAND)) { in PHP_FUNCTION()
328 zend_throw_exception(NULL, "Constructor failed", 0); in PHP_FUNCTION()
341 if (finfo->magic == NULL) { in PHP_FUNCTION()
343 php_error_docref(NULL, E_WARNING, "Invalid mode '%pd'.", options); in PHP_FUNCTION()
347 zend_throw_exception(NULL, "Constructor failed", 0); in PHP_FUNCTION()
354 php_error_docref(NULL, E_WARNING, "Failed to load magic database at '%s'.", file); in PHP_FUNCTION()
360 zend_throw_exception(NULL, "Constructor failed", 0); in PHP_FUNCTION()
386 …(finfo = (php_fileinfo *)zend_fetch_resource(Z_RES_P(zfinfo), "file_info", le_fileinfo)) == NULL) { in PHP_FUNCTION()
414 …(finfo = (php_fileinfo *)zend_fetch_resource(Z_RES_P(zfinfo), "file_info", le_fileinfo)) == NULL) { in PHP_FUNCTION()
433 char *ret_val = NULL, *buffer = NULL; in _php_finfo_get_type()
435 php_fileinfo *finfo = NULL; in _php_finfo_get_type()
436 zval *zfinfo, *zcontext = NULL; in _php_finfo_get_type()
440 struct magic_set *magic = NULL; in _php_finfo_get_type()
462 php_error_docref(NULL, E_WARNING, "Can only process string or stream arguments"); in _php_finfo_get_type()
467 if (magic_load(magic, NULL) == -1) { in _php_finfo_get_type()
468 php_error_docref(NULL, E_WARNING, "Failed to load magic database."); in _php_finfo_get_type()
481 …(finfo = (php_fileinfo *)zend_fetch_resource(Z_RES_P(zfinfo), "file_info", le_fileinfo)) == NULL) { in _php_finfo_get_type()
525 if (buffer == NULL || !*buffer) { in _php_finfo_get_type()
526 php_error_docref(NULL, E_WARNING, "Empty filename or path"); in _php_finfo_get_type()
531 php_error_docref(NULL, E_WARNING, "Invalid path"); in _php_finfo_get_type()
552 …stream = php_stream_open_wrapper_ex(buffer, "rb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, context… in _php_finfo_get_type()
554 stream = php_stream_open_wrapper_ex(buffer, "rb", REPORT_ERRORS, NULL, context); in _php_finfo_get_type()
576 php_error_docref(NULL, E_WARNING, "Can only process string or stream arguments"); in _php_finfo_get_type()
583 …php_error_docref(NULL, E_WARNING, "Failed identify data %d:%s", magic_errno(magic), magic_error(ma… in _php_finfo_get_type()