source: src/router/php7/Zend/zend_type_info.h @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 3.1 KB
Line 
1/*
2   +----------------------------------------------------------------------+
3   | Zend Engine                                                          |
4   +----------------------------------------------------------------------+
5   | Copyright (c) 1998-2017 Zend Technologies Ltd. (http://www.zend.com) |
6   +----------------------------------------------------------------------+
7   | This source file is subject to version 2.00 of the Zend license,     |
8   | that is bundled with this package in the file LICENSE, and is        |
9   | available through the world-wide-web at the following url:           |
10   | http://www.zend.com/license/2_00.txt.                                |
11   | If you did not receive a copy of the Zend license and are unable to  |
12   | obtain it through the world-wide-web, please send a note to          |
13   | license@zend.com so we can mail you a copy immediately.              |
14   +----------------------------------------------------------------------+
15   | Authors: Dmitry Stogov <dmitry@zend.com>                             |
16   +----------------------------------------------------------------------+
17*/
18
19/* $Id$ */
20
21#ifndef ZEND_TYPE_INFO_H
22#define ZEND_TYPE_INFO_H
23
24#include "zend_types.h"
25
26#define MAY_BE_UNDEF                (1 << IS_UNDEF)
27#define MAY_BE_NULL                         (1 << IS_NULL)
28#define MAY_BE_FALSE                (1 << IS_FALSE)
29#define MAY_BE_TRUE                         (1 << IS_TRUE)
30#define MAY_BE_LONG                         (1 << IS_LONG)
31#define MAY_BE_DOUBLE               (1 << IS_DOUBLE)
32#define MAY_BE_STRING               (1 << IS_STRING)
33#define MAY_BE_ARRAY                (1 << IS_ARRAY)
34#define MAY_BE_OBJECT               (1 << IS_OBJECT)
35#define MAY_BE_RESOURCE             (1 << IS_RESOURCE)
36#define MAY_BE_ANY                  (MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE)
37#define MAY_BE_REF                  (1 << IS_REFERENCE) /* may be reference */
38
39#define MAY_BE_ARRAY_SHIFT          (IS_REFERENCE)
40
41#define MAY_BE_ARRAY_OF_NULL            (MAY_BE_NULL     << MAY_BE_ARRAY_SHIFT)
42#define MAY_BE_ARRAY_OF_FALSE           (MAY_BE_FALSE    << MAY_BE_ARRAY_SHIFT)
43#define MAY_BE_ARRAY_OF_TRUE            (MAY_BE_TRUE     << MAY_BE_ARRAY_SHIFT)
44#define MAY_BE_ARRAY_OF_LONG            (MAY_BE_LONG     << MAY_BE_ARRAY_SHIFT)
45#define MAY_BE_ARRAY_OF_DOUBLE          (MAY_BE_DOUBLE   << MAY_BE_ARRAY_SHIFT)
46#define MAY_BE_ARRAY_OF_STRING          (MAY_BE_STRING   << MAY_BE_ARRAY_SHIFT)
47#define MAY_BE_ARRAY_OF_ARRAY           (MAY_BE_ARRAY    << MAY_BE_ARRAY_SHIFT)
48#define MAY_BE_ARRAY_OF_OBJECT          (MAY_BE_OBJECT   << MAY_BE_ARRAY_SHIFT)
49#define MAY_BE_ARRAY_OF_RESOURCE        (MAY_BE_RESOURCE << MAY_BE_ARRAY_SHIFT)
50#define MAY_BE_ARRAY_OF_ANY                     (MAY_BE_ANY      << MAY_BE_ARRAY_SHIFT)
51#define MAY_BE_ARRAY_OF_REF                     (MAY_BE_REF      << MAY_BE_ARRAY_SHIFT)
52
53#define MAY_BE_ARRAY_KEY_LONG       (1<<21)
54#define MAY_BE_ARRAY_KEY_STRING     (1<<22)
55#define MAY_BE_ARRAY_KEY_ANY        (MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_KEY_STRING)
56
57#define MAY_BE_ERROR                (1<<23)
58#define MAY_BE_CLASS                (1<<24)
59
60#endif /* ZEND_TYPE_INFO_H */
61
62/*
63 * Local variables:
64 * tab-width: 4
65 * c-basic-offset: 4
66 * indent-tabs-mode: t
67 * End:
68 */
Note: See TracBrowser for help on using the repository browser.