Bug #77182 [Opn]: Running opcache_compile_file() on the command line segfaults

From: Date: Wed, 21 Nov 2018 18:02:19 +0000
Subject: Bug #77182 [Opn]: Running opcache_compile_file() on the command line segfaults
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218077@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77182&edit=1

 ID:                 77182
 Updated by:         cmb@php.net
 Reported by:        benjamin dot morel at gmail dot com
 Summary:            Running opcache_compile_file() on the command line
                     segfaults
 Status:             Open
 Type:               Bug
 Package:            opcache
 Operating System:   Fedora 29
 PHP Version:        master-Git-2018-11-20 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

Given that the built-in web server runs under the CLI SAPI, it may
well make sense to call opcache_compile_file().

Anyhow, I can't reproduce the segfault.  Please provide a
backtrace[1].

[1] <https://bugs.php.net/bugs-generating-backtrace.php>


Previous Comments:
------------------------------------------------------------------------
[2018-11-20 15:26:24] benjamin dot morel at gmail dot com

Description:
------------
Even though it does not make sense to call opcache_compile_file() (i.e. attempting to run a preload
script) on the CLI, it would make sense to add a specific error message.

Currently I get a segfault:



Test script:
---------------
php -r "opcache_compile_file('test.php');"

Expected result:
----------------
An error message

Actual result:
--------------
Segmentation fault (core dumped)


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



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


Thread (4 messages)

« previous php.bugs (#218077) next »