Edit report at https://bugs.php.net/bug.php?id=71096&edit=1
ID: 71096
Updated by: [email protected]
Reported by: sephir at cryptolab dot net
Summary: Segfault on syntax error with symfony's server
wrapper.
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Built-in web server
Operating System: Debian 8
PHP Version: 7.0.0
Assigned To: laruence
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2015-12-12 01:44:49] [email protected]
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.
------------------------------------------------------------------------
[2015-12-11 17:35:39] sephir at cryptolab dot net
Description:
------------
Hi.
Some days ago, I tried a script containing a syntax error and executed it on both Symfony's server wrapper (executed using server:run command) and Nginx/PHP-FPM.
Using Nginx I had the syntax error as expected but using the Symfony's wrapper I had a segfault, crashing the web server.
I precise that only the server:run command is returning a segfault. The server:start command run as expected.
Test script:
---------------
<?php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
class DefaultController extends Controller
{
public function indexAction()
{
$response = $this->render('')
}
}
Expected result:
----------------
Parse error: syntax error, unexpected '}'
Actual result:
--------------
[OK] Server running on http://127.0.0.1:8000
// Quit the server with CONTROL-C.
RUN '/usr/bin/php7.0' '-S' '127.0.0.1:8000' '/home/booteille/PhpstormProjects/my_project/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php'
ERR [Fri Dec 4 05:20:17 2015] 127.0.0.1:60062 [500]: /
ERR [Fri Dec 4 05:20:18 2015] 127.0.0.1:60063 [200]: /bundles/framework/css/structure.css
ERR [Fri Dec 4 05:20:18 2015] 127.0.0.1:60064 [200]: /bundles/framework/css/exception.css
ERR [Fri Dec 4 05:20:18 2015] 127.0.0.1:60065 [200]: /bundles/framework/css/body.css
ERR [Fri Dec 4 05:20:18 2015] 127.0.0.1:60066 [200]: /_wdt/f84516
ERR Segmentation fault
ERR
RES 139 Command did not run successfully
[ERROR] Built-in server terminated unexpectedly.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71096&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.