mirror of
https://github.com/php/php-src.git
synced 2026-03-25 00:32:23 +01:00
Co-authored-by: Gina Peter Banyard <girgias@php.net> Co-authored-by: Arnaud Le Blanc <arnaud.lb@gmail.com> Co-authored-by: Tim Düsterhus <tim@tideways-gmbh.com>
16 lines
244 B
PHP
16 lines
244 B
PHP
--TEST--
|
|
Pipe operator throws normally on missing function
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
$res1 = 5 |> '_test';
|
|
}
|
|
catch (Throwable $e) {
|
|
echo $e::class, ": ", $e->getMessage(), PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Error: Call to undefined function _test()
|