/php-src/Zend/tests/enum/ |
H A D | keyword-no-bc-break.phpt | 6 namespace enum { 12 class enum extends Bar {} 21 class enum {} 23 function enum() { 27 const enum = 'enum constant'; 30 var_dump(new enum()); 31 var_dump(enum()); 32 var_dump(enum); 37 object(enum\Foo)#1 (0) { 39 object(enum)#1 (0) { [all …]
|
H A D | enum-reserved-non-modifiers.phpt | 2 enum keyword is reserved_non_modifiers 6 namespace enum { 9 return 'enum\Foo::bar()'; 16 const enum = 'enum const'; 18 public static function enum() { 23 echo \enum\Foo::bar() . "\n"; 24 echo Foo::enum . "\n"; 25 echo Foo::enum() . "\n"; 30 enum\Foo::bar() 31 enum const [all …]
|
H A D | internal_enums.phpt | 51 enum(ZendTestUnitEnum::Bar) 54 enum(ZendTestUnitEnum::Foo) 58 enum(ZendTestUnitEnum::Foo) 85 enum(ZendTestIntEnum::Foo) 86 enum(ZendTestIntEnum::Foo) 87 enum(ZendTestIntEnum::Foo) 88 enum(ZendTestIntEnum::Foo) 93 enum(ZendTestIntEnum::Baz) 94 enum(ZendTestIntEnum::Baz) 95 enum(ZendTestIntEnum::Baz) [all …]
|
H A D | backed-from.phpt | 6 enum Suit: string { 18 enum Foo: int { 30 enum(Suit::Hearts) 31 enum(Suit::Diamonds) 32 enum(Suit::Clubs) 33 enum(Suit::Spades) 34 enum(Foo::Bar) 35 enum(Foo::Baz) 36 enum(Foo::Beep)
|
H A D | keyword-whitespace.phpt | 6 enum A {} 7 enum B {} 8 enum C {} 9 enum E {} 10 enum 12 enum
|
H A D | backed-tryFrom.phpt | 6 enum Suit: string { 19 enum Foo: int { 32 enum(Suit::Hearts) 33 enum(Suit::Diamonds) 34 enum(Suit::Clubs) 35 enum(Suit::Spades) 37 enum(Foo::Bar) 38 enum(Foo::Baz) 39 enum(Foo::Beep)
|
H A D | backed-cases-int.phpt | 6 enum Suit: int { 19 enum(Suit::Hearts) 21 enum(Suit::Diamonds) 23 enum(Suit::Clubs) 25 enum(Suit::Spades)
|
H A D | backed-cases-string.phpt | 6 enum Suit: string { 19 enum(Suit::Hearts) 21 enum(Suit::Diamonds) 23 enum(Suit::Clubs) 25 enum(Suit::Spades)
|
H A D | unit-cases.phpt | 6 enum Suit { 21 enum(Suit::Hearts) 23 enum(Suit::Diamonds) 25 enum(Suit::Clubs) 27 enum(Suit::Spades)
|
H A D | traits-no-cases-method.phpt | 12 enum Suit { 27 enum(Suit::Hearts) 29 enum(Suit::Diamonds) 31 enum(Suit::Clubs) 33 enum(Suit::Spades)
|
H A D | enum_underscore_as_name.phpt | 2 Using "_" as a enum name is deprecated 7 enum _ {} 11 enum _ {} 16 Deprecated: Using "_" as an enum name is deprecated since 8.4 in %s on line %d 18 Deprecated: Using "_" as an enum name is deprecated since 8.4 in %s on line %d
|
H A D | backed-negative-int.phpt | 2 Backed enum with negative int 6 enum Foo: int { 20 enum(Foo::Bar) 21 enum(Foo::Baz)
|
H A D | namespaces.phpt | 7 enum Bar { 30 enum(Foo\Bar::Baz) 31 enum(Foo\Bar::Baz) 32 enum(Foo\Bar::Baz)
|
/php-src/ext/ffi/tests/ |
H A D | 004.phpt | 10 enum _a; 11 enum _a {e1}; 13 enum _b {e2}; 14 enum _b; 16 typedef enum _c c; 17 enum _c {e3}; 19 enum _d {e4}; 20 typedef enum _d d; 22 enum _e; 24 enum _f; [all …]
|
H A D | 021.phpt | 15 test(4, "enum {a1, b1}"); 16 test(1, "enum __attribute__((packed)) {a2, b2}"); 18 test(4, "enum {a3=0, b3=0x80000000}"); 19 test(8, "enum {a4=-1, b4=0x80000000}"); 20 test(8, "enum {a5=0x80000000, b5=-1}"); 21 test(4, "enum {a6=-1, b6=0x7fffffff}"); 22 test(8, "enum {a7=-1, b7=0x7fffffff, c7}"); 24 test(1, "enum __attribute__((packed)) {a8=0, b8=0xff}"); 25 test(2, "enum __attribute__((packed)) {a9=0, b9=0x100}"); 48 test(1, "enum __attribute__((packed)) {a14=-0x80}"); [all …]
|
H A D | gh14286_1.phpt | 2 GH-14286 (ffi enum type (when enum has no name) make memory leak) 10 enum { 14 enum TestEnum { 18 enum { 21 enum TestEnum2 { 25 typedef enum { TEST_SIX=6 } TestEnum3;
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_class_constants_type_success3.phpt | 5 enum E { 39 enum(E::Foo) 40 enum(E::Foo) 41 enum(E::Foo) 42 enum(E::Foo) 43 enum(E::Foo) 44 enum(E::Foo) 45 enum(E::Foo) 46 enum(E::Foo) 47 enum(E::Foo) [all …]
|
/php-src/Zend/tests/ |
H A D | gh9775_2.phpt | 2 GH-9775: Pure enum in array_unique() 6 enum Test 41 enum(Test::COURSES_ADMIN) 43 enum(Test::COURSES_REPORTING_ACCESS) 45 enum(Test::BUNDLES_ADMIN) 47 enum(Test::USERS_ADMIN) 49 enum(Test::B2B_DASHBOARD_ACCESS) 51 enum(Test::INSTRUCTORS_ADMIN) 53 enum(Test::COUPONS_ADMIN) 55 enum(Test::AUTHENTICATED)
|
H A D | gh9775_1.phpt | 2 GH-9775: Backed enum in array_unique() 6 enum Test: string 41 enum(Test::COURSES_ADMIN) 43 enum(Test::COURSES_REPORTING_ACCESS) 45 enum(Test::BUNDLES_ADMIN) 47 enum(Test::USERS_ADMIN) 49 enum(Test::B2B_DASHBOARD_ACCESS) 51 enum(Test::INSTRUCTORS_ADMIN) 53 enum(Test::COUPONS_ADMIN) 55 enum(Test::AUTHENTICATED)
|
/php-src/ext/intl/tests/ |
H A D | timezone_createTimeZoneIDEnumeration_variant2.phpt | 8 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 10 $countAny = count(iterator_to_array($enum)); 11 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 13 $countCanonical = count(iterator_to_array($enum)); 14 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 16 $countCanonicalLocation = count(iterator_to_array($enum)); 21 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 23 $countAny2 = count(iterator_to_array($enum)); 26 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 28 $values = iterator_to_array($enum);
|
H A D | timezone_createTimeZoneIDEnumeration_basic.phpt | 8 $enum = IntlTimeZone::createTimeZoneIDEnumeration( 12 print_r(iterator_to_array($enum)); 14 $enum = intltz_create_time_zone_id_enumeration( 18 print_r(iterator_to_array($enum));
|
/php-src/Zend/tests/gh15976/ |
H A D | enum-names.phpt | 2 GH-15976: Bad enum names 6 enum _ {} 7 enum bool {} 11 Deprecated: Using "_" as an enum name is deprecated since 8.4 in %senum-names.php on line 3 13 Fatal error: Cannot use "bool" as an enum name as it is reserved in %senum-names.php on line 4
|
/php-src/ext/reflection/tests/ |
H A D | gh8444.phpt | 6 enum Foo 13 public Foo $enum = Foo::Bar; 17 echo new \ReflectionProperty('Bar', 'enum'), "\n"; 20 echo new \ReflectionProperty(new Bar, 'enum'), "\n"; 25 Property [ public Foo $enum = Foo::Bar ] 29 Property [ public Foo $enum = Foo::Bar ]
|
/php-src/ext/zend_test/tests/ |
H A D | internal-call-internal-static-return.phpt | 8 enum IntIntStaticInt : int { 12 enum IntIntStaticString : string { 28 enum(IntIntStaticInt::Life) 29 enum(IntIntStaticInt::Life) 30 enum(IntIntStaticString::ThanksFor) 31 enum(IntIntStaticString::ThanksFor)
|
/php-src/ext/standard/tests/http/ |
H A D | gh15650.phpt | 2 GH-15650: http_build_query() with enum 6 enum E1: string { 10 enum E2: int { 14 enum E3 { 35 ValueError: Unbacked enum E3 cannot be converted to a string
|