magic 369 Zend/zend_alloc.c unsigned int magic; magic 382 Zend/zend_alloc.c unsigned int magic; magic 394 Zend/zend_alloc.c unsigned int magic; magic 566 Zend/zend_alloc.c (block)->magic = (val); \ magic 570 Zend/zend_alloc.c if ((block)->magic != (val)) { \ magic 1257 Zend/zend_alloc.c if (p->magic == MEM_BLOCK_VALID) { magic 1263 Zend/zend_alloc.c } else if (p->magic == MEM_BLOCK_CACHED) { magic 1266 Zend/zend_alloc.c } else if (p->magic != MEM_BLOCK_LEAK) { magic 1293 Zend/zend_alloc.c if (p->magic == MEM_BLOCK_VALID) { magic 1314 Zend/zend_alloc.c } else if (p->magic == MEM_BLOCK_CACHED) { magic 1317 Zend/zend_alloc.c } else if (p->magic != MEM_BLOCK_LEAK) { magic 1413 Zend/zend_alloc.c if (p->magic != MEM_BLOCK_FREED) { magic 1414 Zend/zend_alloc.c zend_debug_alloc_output("Freed (magic=0x%0.8X, expected=0x%0.8X)\n", p->magic, MEM_BLOCK_FREED); magic 1424 Zend/zend_alloc.c if (p->magic != MEM_BLOCK_FREED) { magic 1425 Zend/zend_alloc.c zend_debug_alloc_output("Guard (magic=0x%0.8X, expected=0x%0.8X)\n", p->magic, MEM_BLOCK_FREED); magic 1434 Zend/zend_alloc.c switch (p->magic) { magic 1468 Zend/zend_alloc.c zend_debug_alloc_output("Unknown (magic=0x%0.8X, expected=0x%0.8X)\n", p->magic, MEM_BLOCK_VALID); magic 1577 Zend/zend_alloc.c if (p->magic == MEM_BLOCK_VALID || p->magic == MEM_BLOCK_LEAK) { magic 1582 Zend/zend_alloc.c } else if (p->magic == MEM_BLOCK_CACHED) { magic 1585 Zend/zend_alloc.c } else if (p->magic != MEM_BLOCK_LEAK) { magic 171 ext/ereg/regex/regcomp.c g->magic = MAGIC2; magic 110 ext/ereg/regex/regex2.h int magic; magic 127 ext/ereg/regex/regexec.c if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) magic 23 ext/ereg/regex/regfree.c if (g == NULL || g->magic != MAGIC2) /* oops again */ magic 26 ext/ereg/regex/regfree.c g->magic = 0; /* mark it invalid */ magic 48 ext/fileinfo/fileinfo.c struct magic_set *magic; magic 86 ext/fileinfo/fileinfo.c magic_close(intern->ptr->magic); magic 180 ext/fileinfo/fileinfo.c if (magic_setflags(magic, options) == -1) { \ magic 182 ext/fileinfo/fileinfo.c options, magic_errno(magic), magic_error(magic)); \ magic 194 ext/fileinfo/fileinfo.c magic_close(finfo->magic); magic 308 ext/fileinfo/fileinfo.c magic_close(finfo_obj->ptr->magic); magic 336 ext/fileinfo/fileinfo.c finfo->magic = magic_open(options); magic 338 ext/fileinfo/fileinfo.c if (finfo->magic == NULL) { magic 345 ext/fileinfo/fileinfo.c if (magic_load(finfo->magic, file) == -1) { magic 347 ext/fileinfo/fileinfo.c magic_close(finfo->magic); magic 400 ext/fileinfo/fileinfo.c FINFO_SET_OPTION(finfo->magic, options) magic 421 ext/fileinfo/fileinfo.c struct magic_set *magic = NULL; magic 447 ext/fileinfo/fileinfo.c magic = magic_open(MAGIC_MIME_TYPE); magic 448 ext/fileinfo/fileinfo.c if (magic_load(magic, NULL) == -1) { magic 457 ext/fileinfo/fileinfo.c magic = finfo->magic; magic 463 ext/fileinfo/fileinfo.c magic = finfo->magic; magic 468 ext/fileinfo/fileinfo.c FINFO_SET_OPTION(magic, options) magic 474 ext/fileinfo/fileinfo.c ret_val = (char *) magic_buffer(magic, buffer, buffer_len); magic 491 ext/fileinfo/fileinfo.c ret_val = (char *) magic_stream(magic, stream); magic 540 ext/fileinfo/fileinfo.c ret_val = (char *)magic_stream(magic, stream); magic 557 ext/fileinfo/fileinfo.c php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed identify data %d:%s", magic_errno(magic), magic_error(magic)); magic 563 ext/fileinfo/fileinfo.c magic_close(magic); magic 568 ext/fileinfo/fileinfo.c FINFO_SET_OPTION(magic, finfo->options) magic 92 ext/fileinfo/libmagic/apprentice.c struct magic *mp; magic 100 ext/fileinfo/libmagic/apprentice.c struct magic *magic[MAGIC_SETS]; magic 143 ext/fileinfo/libmagic/apprentice.c private size_t magicsize = sizeof(struct magic); magic 372 ext/fileinfo/libmagic/apprentice.c ml->magic = map->magic[idx]; magic 394 ext/fileinfo/libmagic/apprentice.c (unsigned long)sizeof(*map->magic[0]), magic 498 ext/fileinfo/libmagic/apprentice.c if (map->magic[j]) magic 499 ext/fileinfo/libmagic/apprentice.c efree(map->magic[j]); magic 801 ext/fileinfo/libmagic/apprentice.c struct magic *m = &ml->magic[magindex]; magic 805 ext/fileinfo/libmagic/apprentice.c ml->magic[magindex + 1].cont_level != 0) magic 815 ext/fileinfo/libmagic/apprentice.c ml->magic[magindex + 1].cont_level != 0 && magic 816 ext/fileinfo/libmagic/apprentice.c *ml->magic[magindex].desc == '\0' && magic 817 ext/fileinfo/libmagic/apprentice.c *ml->magic[magindex].mimetype == '\0') magic 822 ext/fileinfo/libmagic/apprentice.c ml->magic[magindex].desc, magic 823 ext/fileinfo/libmagic/apprentice.c ml->magic[magindex].mimetype); magic 1102 ext/fileinfo/libmagic/apprentice.c if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { magic 1235 ext/fileinfo/libmagic/apprentice.c &map->magic[j], &map->nmagic[j]) == -1) { magic 1247 ext/fileinfo/libmagic/apprentice.c if (map->magic[j]) magic 1248 ext/fileinfo/libmagic/apprentice.c efree(map->magic[j]); magic 1497 ext/fileinfo/libmagic/apprentice.c struct magic *m; magic 1535 ext/fileinfo/libmagic/apprentice.c struct magic *nm; magic 1537 ext/fileinfo/libmagic/apprentice.c if ((nm = CAST(struct magic *, erealloc(me->mp, magic 1552 ext/fileinfo/libmagic/apprentice.c if ((m = CAST(struct magic *, emalloc(len))) == NULL) { magic 1964 ext/fileinfo/libmagic/apprentice.c struct magic *m = &me->mp[0]; magic 2017 ext/fileinfo/libmagic/apprentice.c struct magic *m = &me->mp[me->cont_count == 0 ? 0 : me->cont_count - 1]; magic 2052 ext/fileinfo/libmagic/apprentice.c struct magic *m = &me->mp[me->cont_count == 0 ? 0 : me->cont_count - 1]; magic 2692 ext/fileinfo/libmagic/apprentice.c nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); magic 2693 ext/fileinfo/libmagic/apprentice.c entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); magic 2694 ext/fileinfo/libmagic/apprentice.c if ((off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { magic 2697 ext/fileinfo/libmagic/apprentice.c sizeof(struct magic)); magic 2701 ext/fileinfo/libmagic/apprentice.c map->magic[0] = CAST(struct magic *, map->p) + 1; magic 2709 ext/fileinfo/libmagic/apprentice.c map->magic[i + 1] = map->magic[i] + map->nmagic[i]; magic 2720 ext/fileinfo/libmagic/apprentice.c byteswap(map->magic[i], map->nmagic[i]); magic 2749 ext/fileinfo/libmagic/apprentice.c static const size_t m = sizeof(**map->magic); magic 2788 ext/fileinfo/libmagic/apprentice.c if (php_stream_seek(stream,(off_t)sizeof(struct magic), SEEK_SET) != sizeof(struct magic)) { magic 2795 ext/fileinfo/libmagic/apprentice.c if (php_stream_write(stream, (const char *)map->magic[i], len) != (ssize_t)len) { magic 2869 ext/fileinfo/libmagic/apprentice.c bs1(&magic[i]); magic 3010 ext/fileinfo/libmagic/apprentice.c struct magic *ma = ml->magic; magic 3016 ext/fileinfo/libmagic/apprentice.c v->magic = &ma[i]; magic 68 ext/fileinfo/libmagic/compress.c const char magic[8]; magic 119 ext/fileinfo/libmagic/compress.c if (memcmp(buf, compr[i].magic, compr[i].maglen) == 0 && magic 351 ext/fileinfo/libmagic/file.h struct magic *magic; /* array of magic entries */ magic 118 ext/fileinfo/libmagic/is_tar.c if (strcmp(header->header.magic, GNUTMAGIC) == 0) magic 120 ext/fileinfo/libmagic/is_tar.c if (strcmp(header->header.magic, TMAGIC) == 0) magic 82 ext/fileinfo/libmagic/softmagic.c if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode, magic 137 ext/fileinfo/libmagic/softmagic.c struct magic *m = &magic[magindex]; magic 147 ext/fileinfo/libmagic/softmagic.c magic[magindex + 1].cont_level != 0 && magic 187 ext/fileinfo/libmagic/softmagic.c magic[magindex + 1].cont_level != 0) magic 217 ext/fileinfo/libmagic/softmagic.c while (magindex + 1 < nmagic && magic[magindex+1].cont_level != 0 && magic 219 ext/fileinfo/libmagic/softmagic.c m = &magic[magindex]; magic 1722 ext/fileinfo/libmagic/softmagic.c rv = match(ms, ml.magic, ml.nmagic, s, nbytes, offset + o, magic 63 ext/fileinfo/libmagic/tar.h char magic[8]; magic 223 ext/phar/tar.c old = (memcmp(hdr->magic, "ustar", sizeof("ustar")-1) != 0); magic 749 ext/phar/tar.c strncpy(header.magic, "ustar", sizeof("ustar")-1); magic 83 ext/phar/tar.h char magic[6]; /* USTAR indicator */ magic 9428 ext/sqlite3/libsqlite/sqlite3.c u32 magic; /* Magic number for detect library misuse */ magic 12771 ext/sqlite3/libsqlite/sqlite3.c u32 magic; /* Magic number for sanity checking */ magic 21577 ext/sqlite3/libsqlite/sqlite3.c u32 magic; magic 21582 ext/sqlite3/libsqlite/sqlite3.c magic = db->magic; magic 21583 ext/sqlite3/libsqlite/sqlite3.c if( magic!=SQLITE_MAGIC_OPEN ){ magic 21594 ext/sqlite3/libsqlite/sqlite3.c u32 magic; magic 21595 ext/sqlite3/libsqlite/sqlite3.c magic = db->magic; magic 21596 ext/sqlite3/libsqlite/sqlite3.c if( magic!=SQLITE_MAGIC_SICK && magic 21597 ext/sqlite3/libsqlite/sqlite3.c magic!=SQLITE_MAGIC_OPEN && magic 21598 ext/sqlite3/libsqlite/sqlite3.c magic!=SQLITE_MAGIC_BUSY ){ magic 44721 ext/sqlite3/libsqlite/sqlite3.c u32 magic; /* Magic value read from WAL header */ magic 44735 ext/sqlite3/libsqlite/sqlite3.c magic = sqlite3Get4byte(&aBuf[0]); magic 44737 ext/sqlite3/libsqlite/sqlite3.c if( (magic&0xFFFFFFFE)!=WAL_MAGIC magic 44744 ext/sqlite3/libsqlite/sqlite3.c pWal->hdr.bigEndCksum = (u8)(magic&0x00000001); magic 57594 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_INIT; magic 57691 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 57792 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 57812 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58001 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58035 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58263 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58386 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58692 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_RUN ); magic 58957 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 58964 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_RUN; magic 58974 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_RUN; magic 59023 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 59510 ext/sqlite3/libsqlite/sqlite3.c if( p->magic==VDBE_MAGIC_RUN && p->pc>=0 ){ magic 59673 ext/sqlite3/libsqlite/sqlite3.c if( p->magic!=VDBE_MAGIC_RUN ){ magic 59828 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_HALT; magic 59934 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_INIT; magic 59944 ext/sqlite3/libsqlite/sqlite3.c if( p->magic==VDBE_MAGIC_RUN || p->magic==VDBE_MAGIC_HALT ){ magic 60014 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_DEAD; magic 61140 ext/sqlite3/libsqlite/sqlite3.c if( p->magic!=VDBE_MAGIC_RUN ){ magic 61788 ext/sqlite3/libsqlite/sqlite3.c if( p->magic!=VDBE_MAGIC_RUN || p->pc>=0 ){ magic 63327 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_RUN ); /* sqlite3_step() verifies this */ magic 67381 ext/sqlite3/libsqlite/sqlite3.c if( u.br.pVdbe->magic==VDBE_MAGIC_RUN && u.br.pVdbe->inVtabMethod<2 && u.br.pVdbe->pc>=0 ){ magic 108710 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_ERROR; magic 108720 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_CLOSED; magic 110038 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_BUSY; magic 110119 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_OPEN; magic 110201 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_SICK; magic 124672 ext/sqlite3/libsqlite/sqlite3.c u32 magic; /* Always RTREE_GEOMETRY_MAGIC */ magic 125597 ext/sqlite3/libsqlite/sqlite3.c if( p->magic!=RTREE_GEOMETRY_MAGIC magic 127617 ext/sqlite3/libsqlite/sqlite3.c pBlob->magic = RTREE_GEOMETRY_MAGIC; magic 48 ext/sysvshm/php_sysvshm.h char magic[8]; magic 188 ext/sysvshm/sysvshm.c if (strcmp((char*) &(chunk_ptr->magic), "PHP_SM") != 0) { magic 189 ext/sysvshm/sysvshm.c strcpy((char*) &(chunk_ptr->magic), "PHP_SM");