File manager - Edit - /opt/alt/tests/alt-php84-pecl-http_4.2.6-2.el8/tests/messagebody008.phpt
Back
--TEST-- message body to callback --SKIPIF-- <?php include "skipif.inc"; ?> --FILE-- <?php echo "Test\n"; $file = new http\Message\Body(fopen(__FILE__,"r")); $s = ""; $file->toCallback( function($body, $string) use (&$s) { $s.=$string; } ); var_dump($s === (string) $file); ?> DONE --EXPECT-- Test bool(true) DONE
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.05 |
proxy
|
phpinfo
|
Settings