/PHP-8.4/ext/zend_test/tests/ |
H A D | observer_generator_04.phpt | 42 <Generator::current> 48 <Generator::current> 51 <Generator::current> 54 <Generator::next> 58 <Generator::current> 65 <Generator::next> 76 <Generator::next> 87 <Generator::next> 98 <Generator::next> 110 <Generator::send> [all …]
|
H A D | observer_retval_02.phpt | 27 <!-- init Generator::current() --> 28 <Generator::current> 32 </Generator::current:'I should be observable'> 33 <!-- init Generator::next() --> 34 <Generator::next> 37 </Generator::next:NULL> 38 <Generator::current> 39 </Generator::current:'Me too!'>
|
H A D | observer_backtrace_01.phpt | 52 <!-- init Generator::current() --> 54 Generator::current() 58 <Generator::current> 62 Generator::current() 71 Generator::current() 81 Generator::current() 92 Generator::current() 104 Generator::current() 118 </Generator::current>
|
H A D | observer_generator_02.phpt | 2 Observer: Generator with explicit return 48 <!-- init Generator::getReturn() --> 49 <Generator::getReturn> 50 </Generator::getReturn:1337>
|
/PHP-8.4/Zend/ |
H A D | zend_generators_arginfo.h | 30 ZEND_METHOD(Generator, rewind); 31 ZEND_METHOD(Generator, valid); 32 ZEND_METHOD(Generator, current); 33 ZEND_METHOD(Generator, key); 34 ZEND_METHOD(Generator, next); 35 ZEND_METHOD(Generator, send); 36 ZEND_METHOD(Generator, throw); 37 ZEND_METHOD(Generator, getReturn); 38 ZEND_METHOD(Generator, __debugInfo); 44 ZEND_ME(Generator, key, arginfo_class_Generator_key, ZEND_ACC_PUBLIC) [all …]
|
/PHP-8.4/Zend/tests/return_types/ |
H A D | generators001.phpt | 5 function test1() : Generator { 44 object(Generator)#%d (%d) { 48 object(Generator)#%d (%d) { 52 object(Generator)#%d (%d) { 56 object(Generator)#%d (%d) { 60 object(Generator)#%d (%d) { 64 object(Generator)#%d (%d) { 68 object(Generator)#%d (%d) {
|
H A D | generators002.phpt | 2 Generator return type must be a supertype of Generator 10 Fatal error: Generator return type must be a supertype of Generator, StdClass given in %s on line %d
|
H A D | generators006.phpt | 2 Generator return type must be a supertype of Generator (with union types) 10 Fatal error: Generator return type must be a supertype of Generator, StdClass|ArrayObject|array giv…
|
/PHP-8.4/Zend/tests/generators/errors/ |
H A D | serialize_unserialize_error.phpt | 17 var_dump(unserialize('O:9:"Generator":0:{}')); 23 var_dump(unserialize('C:9:"Generator":0:{}')); 30 Exception: Serialization of 'Generator' is not allowed in %s:%d 32 #0 %s(%d): serialize(Object(Generator)) 35 Exception: Unserialization of 'Generator' is not allowed in %s:%d 37 #0 %s(%d): unserialize('O:9:"Generator"...') 40 Exception: Unserialization of 'Generator' is not allowed in %s:%d 42 #0 %s(%d): unserialize('C:9:"Generator"...')
|
H A D | generator_extend_error.phpt | 2 The Generator class cannot be extended 6 class ExtendedGenerator extends Generator { } 10 Fatal error: Class ExtendedGenerator cannot extend final class Generator in %s on line %d
|
H A D | generator_instantiate_error.phpt | 2 It's not possible to directly instantiate the Generator class 6 new Generator; 10 Fatal error: Uncaught Error: The "Generator" class is reserved for internal use and cannot be manua…
|
H A D | resume_running_generator_error_003.phpt | 20 #0 %sresume_running_generator_error_003.php(4): Generator->send(NULL) 22 #2 %sresume_running_generator_error_003.php(8): Generator->send(Object(Generator))
|
/PHP-8.4/Zend/tests/generators/ |
H A D | mutli_yield_from_with_exception.phpt | 2 Multiple yield from on a same Generator throwing an Exception 26 print "Generator $i\n"; 33 Generator 0 39 #1 [internal function]: gen(Object(Generator)) 40 #2 %s(%d): Generator->next() 42 Generator 1 44 ClosedGeneratorException: Generator yielded from aborted, no return value available in %s:%d 46 #0 [internal function]: gen(Object(Generator)) 47 #1 %s(%d): Generator->current()
|
H A D | debugInfo_001.phpt | 39 object(Generator)#%d (1) { 44 object(Generator)#%d (1) { 49 object(Generator)#%d (1) { 54 object(Generator)#%d (1) { 59 object(Generator)#%d (1) { 64 object(Generator)#%d (1) { 69 object(Generator)#%d (1) { 74 object(Generator)#%d (1) { 79 object(Generator)#%d (1) {
|
H A D | yield_from_multi_tree_exception.phpt | 68 #1 %s(%d): gen(Object(Generator), 1) 69 #2 %s(%d): gen(Object(Generator), 2) 70 #3 [internal function]: gen(Object(Generator), 3) 71 #4 %s(%d): Generator->next() 73 ClosedGeneratorException: Generator yielded from aborted, no return value available in %s:%d 75 #0 [internal function]: gen(Object(Generator), 1) 76 #1 %s(%d): Generator->current()
|
H A D | generator_return_without_value.phpt | 36 object(Generator)#%d (1) { 40 object(Generator)#%d (1) { 44 object(Generator)#%d (1) { 48 object(Generator)#%d (1) {
|
H A D | yield_from_already_running.phpt | 2 Yielding from the already running Generator should fail (bug #69458) 14 Fatal error: Uncaught Error: Impossible to yield from the Generator being currently run in %s:%d 17 #1 %s(%d): Generator->send(Object(Generator))
|
H A D | bug74954.phpt | 37 #1 [internal function]: gen(Object(Generator)) 38 #2 %s(%d): Generator->next() 41 ClosedGeneratorException: Generator yielded from aborted, no return value available in %s:%d 43 #0 [internal function]: gen(Object(Generator)) 44 #1 %s(%d): Generator->next()
|
H A D | gc_with_yield_from.phpt | 35 object(Generator)#%d (1) { 40 object(Generator)#%d (1) { 45 object(Generator)#%d (1) { 50 object(Generator)#%d (1) {
|
H A D | backtrace_multi_yield_from.phpt | 2 Generator backtrace with multi yield from 30 #1 [internal function]: from(Object(Generator)) 31 #2 %s(19): Generator->next()
|
H A D | throw_not_an_exception.phpt | 2 Generator::throw() with something that's not an exception 15 Fatal error: Uncaught TypeError: Generator::throw(): Argument #1 ($exception) must be of type Throw… 17 #0 %s(%d): Generator->throw(Object(stdClass))
|
H A D | get_return_errors.phpt | 2 Generator::getReturn() error cases 14 // Generator hasn't reached the "return" yet 33 // Generator has been aborted as a result of an exception 47 // Generator throws during auto-priming of getReturn() call 65 // Generator has been aborted as a result of an exception
|
/PHP-8.4/ext/reflection/tests/ |
H A D | ReflectionGenerator_basic.phpt | 25 $gen->valid(); // start Generator 38 object(Generator)#%d (1) { 73 object(Generator)#%d (1) { 85 object(Generator)#%d (1) { 101 object(Generator)#%d (1) { 110 object(Generator)#%d (1) { 126 object(Generator)#%d (1) {
|
H A D | bug64007.phpt | 2 Bug #64007 (There is an ability to create instance of Generator by hand) 5 $reflection = new ReflectionClass('Generator'); 17 string(%d) "Class Generator is an internal class marked as final that cannot be instantiated withou… 19 Fatal error: Uncaught Error: The "Generator" class is reserved for internal use and cannot be manua…
|
/PHP-8.4/Zend/tests/type_declarations/union_types/ |
H A D | generator_return_multiple_classes.phpt | 2 Generator return type with multiple classes 7 public function test(): Generator|ArrayAccess|array; 10 function test(): Generator|ArrayAccess|array {
|