Bug #75588 [NEW]: Segmentation fault with recursive class constant definition

From: Date: Wed, 29 Nov 2017 10:51:38 +0000
Subject: Bug #75588 [NEW]: Segmentation fault with recursive class constant definition
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212796@lists.php.net to get a copy of this message
From:             diacomltd at mail dot ru
Operating system: any
PHP version:      7.1.12
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:Segmentation fault with recursive class constant definition

Description:
------------
PHP interpreter stops with segmentation fault when it comes into
recursive class constant definition.

Test script:
---------------
<?php

class SomeConstants
{   
	const RECURSIVE_CONSTANT = self::RECURSIVE_CONSTANT;
}

Expected result:
----------------
It would be better if PHP interpreter stopped with helpful error message
about recursive definition.

Actual result:
--------------
Nov 28 19:04:00 homestead kernel: [  194.868150] traps: php-fpm7.1[2753]
general protection ip:565383b93854 sp:7fffcdf87b30 error:0 in
php-fpm7.1[565383958000+3cf000]


-- 
Edit bug report at https://bugs.php.net/bug.php?id=75588&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=75588&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=75588&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=75588&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=75588&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=75588&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=75588&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=75588&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=75588&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=75588&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=75588&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=75588&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=75588&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=75588&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75588&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=75588&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=75588&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=75588&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75588&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=75588&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=75588&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#212796) next »