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 179 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 314 ext/fileinfo/fileinfo.c magic_close(finfo_obj->ptr->magic); magic 338 ext/fileinfo/fileinfo.c finfo->magic = magic_open(options); magic 340 ext/fileinfo/fileinfo.c if (finfo->magic == NULL) { magic 347 ext/fileinfo/fileinfo.c if (magic_load(finfo->magic, file) == -1) { magic 349 ext/fileinfo/fileinfo.c magic_close(finfo->magic); magic 402 ext/fileinfo/fileinfo.c FINFO_SET_OPTION(finfo->magic, options) magic 423 ext/fileinfo/fileinfo.c struct magic_set *magic = NULL; magic 449 ext/fileinfo/fileinfo.c magic = magic_open(MAGIC_MIME_TYPE); magic 450 ext/fileinfo/fileinfo.c if (magic_load(magic, NULL) == -1) { magic 459 ext/fileinfo/fileinfo.c magic = finfo->magic; magic 465 ext/fileinfo/fileinfo.c magic = finfo->magic; magic 470 ext/fileinfo/fileinfo.c FINFO_SET_OPTION(magic, options) magic 476 ext/fileinfo/fileinfo.c ret_val = (char *) magic_buffer(magic, buffer, buffer_len); magic 493 ext/fileinfo/fileinfo.c ret_val = (char *) magic_stream(magic, stream); magic 547 ext/fileinfo/fileinfo.c ret_val = (char *)magic_stream(magic, stream); magic 564 ext/fileinfo/fileinfo.c php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed identify data %d:%s", magic_errno(magic), magic_error(magic)); magic 570 ext/fileinfo/fileinfo.c magic_close(magic); magic 575 ext/fileinfo/fileinfo.c FINFO_SET_OPTION(magic, finfo->options) magic 92 ext/fileinfo/libmagic/apprentice.c struct magic *mp; magic 106 ext/fileinfo/libmagic/apprentice.c struct magic *magic[MAGIC_SETS]; magic 148 ext/fileinfo/libmagic/apprentice.c private size_t magicsize = sizeof(struct magic); magic 378 ext/fileinfo/libmagic/apprentice.c ml->magic = map->magic[idx]; magic 400 ext/fileinfo/libmagic/apprentice.c (unsigned long)sizeof(*map->magic[0]), magic 505 ext/fileinfo/libmagic/apprentice.c if (map->magic[j]) { magic 506 ext/fileinfo/libmagic/apprentice.c efree(map->magic[j]); magic 818 ext/fileinfo/libmagic/apprentice.c struct magic *m = &ml->magic[magindex]; magic 822 ext/fileinfo/libmagic/apprentice.c ml->magic[magindex + 1].cont_level != 0) magic 832 ext/fileinfo/libmagic/apprentice.c ml->magic[magindex + 1].cont_level != 0 && magic 833 ext/fileinfo/libmagic/apprentice.c *ml->magic[magindex].desc == '\0' && magic 834 ext/fileinfo/libmagic/apprentice.c *ml->magic[magindex].mimetype == '\0') magic 839 ext/fileinfo/libmagic/apprentice.c ml->magic[magindex].desc, magic 840 ext/fileinfo/libmagic/apprentice.c ml->magic[magindex].mimetype); magic 1115 ext/fileinfo/libmagic/apprentice.c if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { magic 1239 ext/fileinfo/libmagic/apprentice.c &map->magic[j], &map->nmagic[j]) == -1) { magic 1251 ext/fileinfo/libmagic/apprentice.c if (map->magic[j]) magic 1252 ext/fileinfo/libmagic/apprentice.c efree(map->magic[j]); magic 1502 ext/fileinfo/libmagic/apprentice.c struct magic *m; magic 1540 ext/fileinfo/libmagic/apprentice.c struct magic *nm; magic 1542 ext/fileinfo/libmagic/apprentice.c if ((nm = CAST(struct magic *, erealloc(me->mp, magic 1557 ext/fileinfo/libmagic/apprentice.c if ((m = CAST(struct magic *, emalloc(len))) == NULL) { magic 1969 ext/fileinfo/libmagic/apprentice.c struct magic *m = &me->mp[0]; magic 2027 ext/fileinfo/libmagic/apprentice.c struct magic *m = &me->mp[me->cont_count == 0 ? 0 : me->cont_count - 1]; magic 2062 ext/fileinfo/libmagic/apprentice.c struct magic *m = &me->mp[me->cont_count == 0 ? 0 : me->cont_count - 1]; magic 2697 ext/fileinfo/libmagic/apprentice.c nentries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); magic 2698 ext/fileinfo/libmagic/apprentice.c entries = (uint32_t)(st.sb.st_size / sizeof(struct magic)); magic 2699 ext/fileinfo/libmagic/apprentice.c if ((off_t)(entries * sizeof(struct magic)) != st.sb.st_size) { magic 2702 ext/fileinfo/libmagic/apprentice.c sizeof(struct magic)); magic 2706 ext/fileinfo/libmagic/apprentice.c map->magic[0] = CAST(struct magic *, map->p) + 1; magic 2714 ext/fileinfo/libmagic/apprentice.c map->magic[i + 1] = map->magic[i] + map->nmagic[i]; magic 2725 ext/fileinfo/libmagic/apprentice.c byteswap(map->magic[i], map->nmagic[i]); magic 2754 ext/fileinfo/libmagic/apprentice.c static const size_t m = sizeof(**map->magic); magic 2789 ext/fileinfo/libmagic/apprentice.c if (php_stream_seek(stream,(off_t)sizeof(struct magic), SEEK_SET) != sizeof(struct magic)) { magic 2796 ext/fileinfo/libmagic/apprentice.c if (php_stream_write(stream, (const char *)map->magic[i], len) != (ssize_t)len) { magic 2870 ext/fileinfo/libmagic/apprentice.c bs1(&magic[i]); magic 3011 ext/fileinfo/libmagic/apprentice.c struct magic *ma = ml->magic; magic 3017 ext/fileinfo/libmagic/apprentice.c v->magic = &ma[i]; magic 68 ext/fileinfo/libmagic/compress.c const char magic[8]; magic 120 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 93 ext/fileinfo/libmagic/softmagic.c if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mode, magic 148 ext/fileinfo/libmagic/softmagic.c struct magic *m = &magic[magindex]; magic 158 ext/fileinfo/libmagic/softmagic.c magic[magindex + 1].cont_level != 0 && magic 198 ext/fileinfo/libmagic/softmagic.c magic[magindex + 1].cont_level != 0) magic 230 ext/fileinfo/libmagic/softmagic.c while (magindex + 1 < nmagic && magic[magindex+1].cont_level != 0 && magic 232 ext/fileinfo/libmagic/softmagic.c m = &magic[magindex]; magic 1791 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 226 ext/phar/tar.c old = (memcmp(hdr->magic, "ustar", sizeof("ustar")-1) != 0); magic 759 ext/phar/tar.c strncpy(header.magic, "ustar", sizeof("ustar")-1); magic 83 ext/phar/tar.h char magic[6]; /* USTAR indicator */ magic 11041 ext/sqlite3/libsqlite/sqlite3.c u32 magic; /* Magic number for detect library misuse */ magic 14829 ext/sqlite3/libsqlite/sqlite3.c u32 magic; /* Magic number for sanity checking */ magic 24587 ext/sqlite3/libsqlite/sqlite3.c u32 magic; magic 24592 ext/sqlite3/libsqlite/sqlite3.c magic = db->magic; magic 24593 ext/sqlite3/libsqlite/sqlite3.c if( magic!=SQLITE_MAGIC_OPEN ){ magic 24604 ext/sqlite3/libsqlite/sqlite3.c u32 magic; magic 24605 ext/sqlite3/libsqlite/sqlite3.c magic = db->magic; magic 24606 ext/sqlite3/libsqlite/sqlite3.c if( magic!=SQLITE_MAGIC_SICK && magic 24607 ext/sqlite3/libsqlite/sqlite3.c magic!=SQLITE_MAGIC_OPEN && magic 24608 ext/sqlite3/libsqlite/sqlite3.c magic!=SQLITE_MAGIC_BUSY ){ magic 50003 ext/sqlite3/libsqlite/sqlite3.c u32 magic; /* Magic value read from WAL header */ magic 50018 ext/sqlite3/libsqlite/sqlite3.c magic = sqlite3Get4byte(&aBuf[0]); magic 50020 ext/sqlite3/libsqlite/sqlite3.c if( (magic&0xFFFFFFFE)!=WAL_MAGIC magic 50027 ext/sqlite3/libsqlite/sqlite3.c pWal->hdr.bigEndCksum = (u8)(magic&0x00000001); magic 64815 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_INIT; magic 64936 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 65055 ext/sqlite3/libsqlite/sqlite3.c assert( v->magic==VDBE_MAGIC_INIT ); magic 65074 ext/sqlite3/libsqlite/sqlite3.c assert( v->magic==VDBE_MAGIC_INIT ); magic 65309 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 65343 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 65602 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 65719 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 66127 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_RUN ); magic 66387 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 66394 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_RUN; magic 66404 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_RUN; magic 66454 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_INIT ); magic 67127 ext/sqlite3/libsqlite/sqlite3.c if( p->magic!=VDBE_MAGIC_RUN ){ magic 67281 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_HALT; magic 67437 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_INIT; magic 67447 ext/sqlite3/libsqlite/sqlite3.c if( p->magic==VDBE_MAGIC_RUN || p->magic==VDBE_MAGIC_HALT ){ magic 67541 ext/sqlite3/libsqlite/sqlite3.c p->magic = VDBE_MAGIC_DEAD; magic 69412 ext/sqlite3/libsqlite/sqlite3.c if( p->magic!=VDBE_MAGIC_RUN ){ magic 70121 ext/sqlite3/libsqlite/sqlite3.c if( p->magic!=VDBE_MAGIC_RUN || p->pc>=0 ){ magic 70442 ext/sqlite3/libsqlite/sqlite3.c return v!=0 && v->pc>=0 && v->magic==VDBE_MAGIC_RUN; magic 71399 ext/sqlite3/libsqlite/sqlite3.c assert( p->magic==VDBE_MAGIC_RUN ); /* sqlite3_step() verifies this */ magic 114690 ext/sqlite3/libsqlite/sqlite3.c assert( db->magic==SQLITE_MAGIC_OPEN || db->magic==SQLITE_MAGIC_ZOMBIE ); magic 129002 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_ZOMBIE; magic 129036 ext/sqlite3/libsqlite/sqlite3.c if( db->magic!=SQLITE_MAGIC_ZOMBIE || connectionIsBusy(db) ){ magic 129125 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_ERROR; magic 129135 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_CLOSED; magic 130720 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_BUSY; magic 130814 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_OPEN; magic 130908 ext/sqlite3/libsqlite/sqlite3.c db->magic = SQLITE_MAGIC_SICK; magic 151321 ext/sqlite3/libsqlite/sqlite3.c u32 magic; /* Always RTREE_GEOMETRY_MAGIC */ magic 152469 ext/sqlite3/libsqlite/sqlite3.c if( pBlob->magic!=RTREE_GEOMETRY_MAGIC || nBlob!=nExpected ){ magic 154370 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");