1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 00:32:23 +01:00
Files
archived-php-src/Zend/tests/pipe_operator/function_not_found.phpt
Larry Garfield 1c09c0c832 RFC: Pipe operator (#17118)
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>
2025-06-10 09:59:43 +02:00

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()