From: Operating system: Mac OS X 10.7 Lion PHP version: 5.4.0beta1 Package: Reproducible crash Bug Type: Bug Bug description:Omitting a callable typehinted argument causes a segfault
Description: ------------ Omitting a callable typehinted argument from a function call causes a segmentation fault. Configured with: export MACOSX_DEPLOYMENT_TARGET=10.7 CFLAGS="-arch x86_64" CXXFLAGS="-arch x86_64" configure --prefix=/usr/local/php-5.4.0beta1 Test script: --------------- <?php function f(callable $c) {} f(); Expected result: ---------------- Catchable fatal error: Argument 1 passed to f() must be of the type callable, none given, called in %s on line 4 and defined in %s on line 3 Actual result: -------------- Segmentation fault: 11 -- Edit bug report at https://bugs.php.net/bug.php?id=55705&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55705&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55705&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55705&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55705&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55705&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55705&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55705&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55705&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55705&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55705&r=support Expected behavior: https://bugs.php.net/fix.php?id=55705&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55705&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55705&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55705&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55705&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55705&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55705&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55705&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55705&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55705&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55705&r=mysqlcfg