Bug #72452 [Opn->Csd]: Segfault when executing functions.php

From: Date: Tue, 28 Jun 2016 09:06:45 +0000
Subject: Bug #72452 [Opn->Csd]: Segfault when executing functions.php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201881@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72452&edit=1

 ID:                 72452
 Updated by:         laruence@php.net
 Reported by:        ryan dot jentzsch at gmail dot com
 Summary:            Segfault when executing functions.php
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Linux Mint 17.3
 PHP Version:        7.1Git-2016-06-20 (Git)
-Assigned To:        
+Assigned To:        laruence
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2016-06-27 09:34:42] ryan dot jentzsch at gmail dot com

I just did a git pull and rebuilt PHP and I no longer get a segfault. Please close this issue. Thx.

------------------------------------------------------------------------
[2016-06-20 09:31:51] laruence@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



------------------------------------------------------------------------
[2016-06-20 05:42:49] ryan dot jentzsch at gmail dot com

I think the parser is choking on the deprecated link() function declaration:

if (! function_exists('DI\link')) {
    /**
     * Helper for referencing another container entry in an object definition.
     *
     * @deprecated \DI\link() has been replaced by \DI\get()
     *
     * @param string $entryName
     *
     * @return EntryReference
     */
    function link($entryName)
    {
        return new EntryReference($entryName);
    }
}

I REMOVED this and the segfault went away. Commenting the code out still threw segfault errors.

------------------------------------------------------------------------
[2016-06-20 05:32:43] ryan dot jentzsch at gmail dot com

Description:
------------
Segfault when running the referenced script:

Test script:
---------------
https://dl.dropboxusercontent.com/u/32885273/functions.php

Expected result:
----------------
No output.

Actual result:
--------------
$ php --version
PHP 7.1.0-dev (cli) (built: Jun 19 2016 22:18:33) ( ZTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
    with Xdebug v2.5.0-dev, Copyright (c) 2002-2016, by Derick Rethans


$ php functions.php 
[1]    19913 segmentation fault  php functions.php



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=72452&edit=1


Thread (5 messages)

« previous php.bugs (#201881) next »