[197499.952163] php5-fpm[87799]: segfault at 71 ip 00000000006ddcd4 sp 00007ffef4af1680 error 4 in php5-fpm[400000+800000]
While trying to define services recursive injection I end up with segmentation fault. PHP-FPM mode. Why there is no fatal error or Phalcon exception?
It might be odd to even try such thing at runtime, but it should not cause segfault (crashing the app server).
How to reproduce:
$di->setShared('service1', function () use ($di, $config){
$s2 = $di->getShared('service2'); //resolve service2
});
$di->setShared('service2', function () use ($di, $config){
$s1 = $di->getShared('service1'); //resolve service1
});
Normally, both services are created at runtime.