Bug #80096 [NEW]: Segmentation fault with named arguments

From: Date: Sat, 12 Sep 2020 11:17:54 +0000
Subject: Bug #80096 [NEW]: Segmentation fault with named arguments
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228984@lists.php.net to get a copy of this message
From: thekid@php.net Operating system: Ubuntu / WSL PHP version: 8.0Git-2020-09-12 (Git) Package: Scripting Engine problem Bug Type: Bug Bug description:Segmentation fault with named arguments Description: ------------ Passing a function invoked with named arguments as an argument to a function results in PHP crashing with a segmentation fault. Test script: --------------- thekid@Surface:~/bin/php$ ./sapi/cli/php -r 'function p($arg) { echo $arg, "\n"; } p(htmlentities("The < character is encoded as &lt;", do uble_encode: false));' Segmentation fault thekid@Surface:~/bin/php$ ./sapi/cli/php -v PHP 8.0.0-dev (cli) (built: Sep 12 2020 04:33:25) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies Expected result: ---------------- The &lt; character is encoded as &lt; Actual result: -------------- Segmentation fault -- Edit bug report at https://bugs.php.net/bug.php?id=80096&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80096&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80096&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80096&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80096&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80096&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80096&r=support Expected behavior: https://bugs.php.net/fix.php?id=80096&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80096&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80096&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80096&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80096&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80096&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80096&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80096&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80096&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80096&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80096&r=mysqlcfg

« previous php.bugs (#228984) next »