Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 198) sorted by relevance

12345678

/php-src/ext/fileinfo/
H A Dfileinfo.c42 struct magic_set *magic; member
75 magic_close(intern->ptr->magic); in finfo_objects_free()
100 options, magic_errno(magic), magic_error(magic)); \
179 magic_close(finfo_obj->ptr->magic); in PHP_FUNCTION()
213 finfo->magic = magic_open(options); in PHP_FUNCTION()
215 if (finfo->magic == NULL) { in PHP_FUNCTION()
229 magic_close(finfo->magic); in PHP_FUNCTION()
299 struct magic_set *magic = NULL; in _php_finfo_get_type() local
335 magic = finfo->magic; in _php_finfo_get_type()
340 FINFO_SET_OPTION(magic, options) in _php_finfo_get_type()
[all …]
H A Dgenerate_patch.sh7 sed -e "s/X\.YY/${VERSION//.}/g" libmagic.orig/magic.h.in > libmagic.orig/magic.h
/php-src/ext/fileinfo/tests/
H A Dbug71527.phpt2 Bug #71527 Buffer over-write in finfo_open with malformed magic file
9 $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527.magic");
13 Warning: finfo_open(): Failed to load magic database at "%sbug71527.magic" in %sbug71527.php on lin…
H A Dbug77961.phpt2 Bug #77961 (finfo_open crafted magic parsing SIGABRT)
7 finfo_open(FILEINFO_NONE, __DIR__ . '/bug77961.magic');
12 Warning: finfo_open(): Failed to load magic database at "%sbug77961.magic" in %s on line %d
H A Dbug71527-mb.phpt2 Bug #71527 Buffer over-write in finfo_open with malformed magic file
9 … $finfo = finfo_open(FILEINFO_NONE, __DIR__ . DIRECTORY_SEPARATOR . "bug71527私はガラスを食べられます.magic");
13 Warning: finfo_open(): Failed to load magic database at "%sbug71527私はガラスを食べられます.magic" in %sbug7152…
H A Dfinfo_open_error.phpt7 $magicFile = __DIR__ . DIRECTORY_SEPARATOR . 'magic';
34 Warning: finfo_open(): Failed to load magic database at "%sfoobarfile" in %sfinfo_open_error.php on…
37 Warning: finfo_open(): using regular magic file `%smagic' in %sfinfo_open_error.php on line %d
H A Dcve-2014-1943-mb.phpt8 $fm = __DIR__.'/cve-2014-1943私はガラスを食べられます.magic';
30 @unlink(__DIR__.'/cve-2014-1943.magic');
H A Dcve-2014-1943.phpt8 $fm = __DIR__.'/cve-2014-1943.magic';
30 @unlink(__DIR__.'/cve-2014-1943.magic');
H A Dfinfo_file_regex.phpt9 * $ file -m magic resources/test.awk
12 $magicFile = __DIR__ . DIRECTORY_SEPARATOR . 'magic';
/php-src/ext/date/tests/
H A DDateTimeZone_clone_basic4.phpt2 Test clone of DateTimeZone derived objects with __clone magic method
10 echo "-- DateTimeExt1 __clone magic method called --\n";
14 echo "*** Testing clone of objects derived from DateTimeZone class with __clone magic method***\n";
24 *** Testing clone of objects derived from DateTimeZone class with __clone magic method***
25 -- DateTimeExt1 __clone magic method called --
H A DDateTime_clone_basic4.phpt2 Test clone of DateTime derived objects with __clone magic method
13 echo "-- DateTimeExt1 __clone magic method called --\n";
17 echo "*** Testing clone of objects derived from DateTime class with __clone magic method***\n";
27 *** Testing clone of objects derived from DateTime class with __clone magic method***
28 -- DateTimeExt1 __clone magic method called --
H A DDateTime_extends_basic2.phpt2 Test DateTime class inheritance : with user space __construct magic method
9 echo "*** Testing new DateTime() : with user space __construct magic method ***\n";
28 *** Testing new DateTime() : with user space __construct magic method ***
/php-src/Zend/tests/
H A Dbug47801.phpt10 echo("magic method called: $name\n");
30 magic method called: getFoo
31 magic method called: getFoo
/php-src/ext/fileinfo/libmagic/
H A Dder.h27 extern int der_offs(struct magic_set *, struct magic *, size_t);
28 extern int der_cmp(struct magic_set *, struct magic *);
H A Dis_tar.c139 if (strncmp(header->header.magic, GNUTMAGIC, in is_tar()
140 sizeof(header->header.magic)) == 0) in is_tar()
143 if (strncmp(header->header.magic, TMAGIC, in is_tar()
144 sizeof(header->header.magic)) == 0) in is_tar()
H A Dapprentice.c93 struct magic *mp;
108 struct magic *magic[MAGIC_SETS]; member
453 ml->magic = map->magic[idx]; in add_mlist()
1101 struct magic *m = &ml->magic[magindex]; in apprentice_list()
1137 set_test_type(struct magic *mstart, struct magic *m) in set_test_type()
1971 struct magic *m; in parse()
3312 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map()
3320 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map()
3362 struct magic m; in apprentice_compile()
3458 byteswap(struct magic *magic, uint32_t nmagic) argument
[all …]
/php-src/ext/phar/tests/
H A Dbug65414.phpt2 Bug #65414 Injection (A1) in .phar files magic .phar directory
28 .phar/injected-1.txt:Cannot create any files in magic ".phar" directory
29 /.phar/injected-2.txt:Cannot create any files in magic ".phar" directory
31 /.phar/:Cannot create any files in magic ".phar" directory
/php-src/ext/phar/tests/bug64931/
H A Dbug64931.phpt52 CAUGHT: Cannot create any files in magic ".phar" directory
53 CAUGHT: Cannot create any files in magic ".phar" directory
54 CAUGHT: Cannot create any files in magic ".phar" directory
55 CAUGHT: Cannot create any files in magic ".phar" directory
/php-src/ext/standard/tests/class_object/
H A Dproperty_exists_variation1.phpt14 echo "\ntesting __get magic method\n";
24 testing __get magic method
/php-src/ext/hash/
H A Dhash_sha3.c204 zend_long magic, in php_sha3_unserialize() argument
210 if (magic == PHP_HASH_SERIALIZE_MAGIC_SPEC in php_sha3_unserialize()
238 zend_long magic, \
240 return php_sha3_unserialize(hash, magic, zv, (1600 - (2 * bits)) >> 3); \
295 static int php_keccak_serialize(const php_hashcontext_object *hash, zend_long *magic, zval *zv) in php_keccak_serialize() argument
297 *magic = PHP_HASH_SERIALIZE_MAGIC_KECCAK; in php_keccak_serialize()
301 static int php_keccak_unserialize(php_hashcontext_object *hash, zend_long magic, const zval *zv) in php_keccak_unserialize() argument
305 if (magic == PHP_HASH_SERIALIZE_MAGIC_KECCAK in php_keccak_unserialize()
H A Dhash_xxhash.c21 php_hashcontext_object *hash, zend_long magic, const zval *zv);
23 php_hashcontext_object *hash, zend_long magic, const zval *zv);
76 php_hashcontext_object *hash, zend_long magic, const zval *zv) in php_hash_xxh32_unserialize() argument
80 if (magic == PHP_HASH_SERIALIZE_MAGIC_SPEC in php_hash_xxh32_unserialize()
220 php_hashcontext_object *hash, zend_long magic, const zval *zv) in php_hash_xxh64_unserialize() argument
224 if (magic == PHP_HASH_SERIALIZE_MAGIC_SPEC in php_hash_xxh64_unserialize()
H A Dphp_hash.h38 typedef int (*php_hash_serialize_func_t)(const php_hashcontext_object *hash, zend_long *magic, zva…
39 typedef int (*php_hash_unserialize_func_t)(php_hashcontext_object *hash, zend_long magic, const zv…
151 PHP_HASH_API int php_hash_serialize(const php_hashcontext_object *context, zend_long *magic, zval *…
152 PHP_HASH_API int php_hash_unserialize(php_hashcontext_object *context, zend_long magic, const zval …
/php-src/ext/zlib/tests/
H A Dzlib_scheme_copy_variation2.phpt31 //also need to look for the magic number (x1f x8b) to prove it
34 $magic = fread($h, 2);
37 if ($org_data == $copied_data && bin2hex($magic) === '1f8b') {
/php-src/ext/ldap/tests/
H A Dldap_get_option_variation.phpt17 array("oid" => "1.2.752.58.1.10", "value" => "magic"),
84 string(5) "magic"
105 string(5) "magic"
H A Dldap_set_option_variation.phpt17 array("oid" => "1.2.752.58.1.10", "value" => "magic"),
95 string(5) "magic"
116 string(5) "magic"

Completed in 74 milliseconds

12345678