Bug #78941 [Opn]: Segfault with unparenthesized expressions containing both '.' and '+'/'-'

From: Date: Tue, 10 Dec 2019 14:42:04 +0000
Subject: Bug #78941 [Opn]: Segfault with unparenthesized expressions containing both '.' and '+'/'-'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224202@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78941&edit=1 ID: 78941 Updated by: nikic@php.net Reported by: marcus at synchromedia dot co dot uk Summary: Segfault with unparenthesized expressions containing both '.' and '+'/'-' Status: Open Type: Bug Package: Reproducible crash Operating System: macOS 10.14 PHP Version: 7.4.0 Block user comment: N Private report: N New Comment: I can't repro this on current 7.4 on Linux. Previous Comments: ------------------------------------------------------------------------ [2019-12-10 14:33:42] marcus at synchromedia dot co dot uk Description: ------------ PHP 7.4.0 release installed from homebrew. If code that triggers this warning: > The behavior of unparenthesized expressions containing both '.' and > '+'/'-' will change in PHP 8: '+'/'-' will take a higher > precedence appears in a base class, creating an instance of a subclass of it will segfault. Modules loaded: [PHP Modules] apcu bcmath bz2 calendar Core ctype curl date dba dom exif FFI fileinfo filter ftp gd gettext gmp hash iconv intl json ldap libxml mbstring mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_dblib pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar phpdbg_webhelper posix pspell readline Reflection session shmop SimpleXML soap sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlrpc xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache Test script: --------------- I have provided a project to reproduce the crash: https://github.com/Synchro/seg git clone https://github.com/Synchro/seg.git cd seg composer install --dev php vendor/bin/phpunit --no-configuration --filter "/(::testBase)( .*)?$/" Synchro\seg\Test\segTest tests/segTest.php php vendor/bin/phpunit --no-configuration --filter "/(::testGeneric)( .*)?$/" Synchro\seg\Test\segTest tests/segTest.php ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78941&edit=1

« previous php.bugs (#224202) next »