Home
last modified time | relevance | path

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

12345

/PHP-5.4/ext/fileinfo/
H A Dmagicdata.patch13 magic/Magdir/commands | 4 ++--
16 diff --git a/magic/Magdir/commands b/magic/Magdir/commands
18 --- a/magic/Magdir/commands
19 +++ b/magic/Magdir/commands
38 magic/Magdir/commands | 5 +++--
41 diff --git a/magic/Magdir/commands b/magic/Magdir/commands
43 --- a/magic/Magdir/commands
44 +++ b/magic/Magdir/commands
67 diff --git a/magic/Magdir/commands b/magic/Magdir/commands
69 --- a/magic/Magdir/commands
[all …]
H A Dfileinfo.c48 struct magic_set *magic; member
86 magic_close(intern->ptr->magic); in finfo_objects_free()
182 options, magic_errno(magic), magic_error(magic)); \
194 magic_close(finfo->magic); in finfo_resource_destructor()
338 if (finfo->magic == NULL) {
347 magic_close(finfo->magic);
421 struct magic_set *magic = NULL; local
457 magic = finfo->magic;
463 magic = finfo->magic;
468 FINFO_SET_OPTION(magic, options)
[all …]
H A Dlibmagic.patch16 #include "magic.h"
200 + if (map->magic[j]) {
473 if (map->magic[j])
493 struct magic *nm;
697 map->magic[0] = CAST(struct magic *, map->p) + 1;
700 map->magic[i + 1] = map->magic[i] + map->nmagic[i];
1420 struct magic *magic; /* array of magic entries */
2208 diff -u libmagic.orig/magic.c libmagic/magic.c
2224 #include "magic.h"
2552 diff -u libmagic.orig/magic.h libmagic/magic.h
[all …]
/PHP-5.4/ext/standard/tests/general_functions/
H A Dset_magic_quotes_runtime_basic.phpt14 echo "\n-- magic quotes runtime set in INI file: " . $g . "--\n";
16 echo "\n-- Set magic quotes runtime to 0: --\n";
19 echo "\n-- magic quotes runtime after set: " . $g . " --\n";
21 echo "\n-- Set magic quotes runtime to 1: --\n";
24 echo "\n-- magic quotes runtime after set: " . $g . " --\n";
31 -- magic quotes runtime set in INI file: --
33 -- Set magic quotes runtime to 0: --
38 -- magic quotes runtime after set: --
40 -- Set magic quotes runtime to 1: --
/PHP-5.4/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";
25 *** Testing clone of objects derived from DateTimeZone class with __clone magic method***
26 -- 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";
28 *** Testing clone of objects derived from DateTime class with __clone magic method***
29 -- 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";
29 *** Testing new DateTime() : with user space __construct magic method ***
/PHP-5.4/Zend/tests/
H A Dbug47801.phpt10 echo("magic method called: $name\n");
30 magic method called: getFoo
31 magic method called: getFoo
H A Dmagic_methods_009.phpt13 Warning: The magic method __callStatic() must have public visibility and be static in %s on line %d
H A Dmagic_methods_002.phpt14 Warning: The magic method __unset() must have public visibility and cannot be static in %s on line …
H A Dmagic_methods_003.phpt14 Warning: The magic method __unset() must have public visibility and cannot be static in %s on line …
/PHP-5.4/ext/fileinfo/libmagic/
H A Dapprentice.c92 struct magic *mp;
100 struct magic *magic[MAGIC_SETS]; member
372 ml->magic = map->magic[idx]; in add_mlist()
803 struct magic *m = &ml->magic[magindex]; in apprentice_list()
831 set_test_type(struct magic *mstart, struct magic *m) in set_test_type()
1499 struct magic *m; in parse()
2703 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map()
2711 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map()
2867 byteswap(struct magic *magic, uint32_t nmagic) argument
2871 bs1(&magic[i]);
[all …]
H A Dsoftmagic.c120 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, in match() argument
139 struct magic *m = &magic[magindex]; in match()
189 magic[magindex + 1].cont_level != 0) in match()
221 m = &magic[magindex]; in match()
343 check_fmt(struct magic_set *ms, struct magic *m) in check_fmt()
362 mprint(struct magic_set *ms, struct magic *m) in mprint()
618 moffset(struct magic_set *ms, struct magic *m) in moffset()
796 cvt_8(union VALUETYPE *p, const struct magic *m) in cvt_8()
802 cvt_16(union VALUETYPE *p, const struct magic *m) in cvt_16()
808 cvt_32(union VALUETYPE *p, const struct magic *m) in cvt_32()
[all …]
H A Dfile.h160 struct magic { struct
351 struct magic *magic; /* array of magic entries */ member
441 protected uint64_t file_signextend(struct magic_set *, struct magic *,
443 protected void file_delmagic(struct magic *, int type, size_t entries);
457 protected size_t file_pstring_length_size(const struct magic *);
458 protected size_t file_pstring_get_length(const struct magic *, const char *);
H A Dis_tar.c118 if (strcmp(header->header.magic, GNUTMAGIC) == 0) in is_tar()
120 if (strcmp(header->header.magic, TMAGIC) == 0) in is_tar()
H A Dtar.h63 char magic[8]; member
/PHP-5.4/ext/ereg/regex/
H A Dregfree.c23 if (g == NULL || g->magic != MAGIC2) /* oops again */
26 g->magic = 0; /* mark it invalid */
/PHP-5.4/ext/zlib/tests/
H A Dzlib_scheme_copy_variation2.phpt35 //also need to look for the magic number (x1f x8b) to prove it
38 $magic = fread($h, 2);
41 if ($org_data == $copied_data && bin2hex($magic) === '1f8b') {
/PHP-5.4/ext/fileinfo/tests/
H A Dfinfo_file_regex.phpt10 * $ file -m magic resources/test.awk
13 $magicFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'magic';
H A Dcve-2014-1943.phpt10 $fm = __DIR__.'/cve-2014-1943.magic';
32 @unlink(__DIR__.'/cve-2014-1943.magic');
H A Dfinfo_open_001.phpt26 Warning: finfo_open(): Failed to load magic database at '%s123'. in %s on line %d
33 Warning: finfo_open(): Failed to load magic database at '%s1'. in %s on line %d
40 Warning: finfo_open(): Failed to load magic database at '%sinexistent'. in %s on line %d
H A Dfinfo_open_error.phpt13 $magicFile = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'magic';
34 Warning: finfo_open(): Failed to load magic database at '%sfoobarfile'. in %sfinfo_open_error.php o…
43 Notice: finfo_open(): Warning: using regular magic file `%smagic' in %sfinfo_open_error.php on line…
H A Dbug61964.phpt8 $magic_file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'magic';
16 $magic_file_copy = $dir . "/magic.copy";
67 Warning: finfo_open(): Failed to load magic database at '%stest-folder'. in %sbug61964.php on line …
/PHP-5.4/ext/standard/tests/class_object/
H A Dproperty_exists_variation1.phpt20 echo "\ntesting __get magic method\n";
31 testing __get magic method
/PHP-5.4/Zend/tests/traits/
H A Dstatic_004.phpt2 Traits with __callStatic magic method.

Completed in 96 milliseconds

12345