GeniusesOfSymfony / PNCTLEventLoopEmitter

:triangular_flag_on_post: PCNTL Event Loop Emitter
MIT License
20 stars 3 forks source link

Fatal error: Cannot redeclare pcntl_sigtimedwait() in src/functions.php #4

Open kokmok opened 8 years ago

kokmok commented 8 years ago

When installing via GOS/WebsocketBundle i have this exception triggered at ScriptHandler::buildBootstrap step.

I'm using PHP7.0.0 and symfony 2.8.6

EDIT: I still have the exception with php5

kokmok commented 8 years ago

Ok, on ubuntu/debian pcntl functions are disabled by default.

I just had to comment the directive argument in php.ini :: disable_functions

I just don't know why is this disabled by default

mickadoo commented 7 years ago

I had this too, I'm not sure it makes sense you should have to change your php.ini just to install this bundle

jjsaunier commented 7 years ago

This is a strange behavior, because before registering the polyfill we check the existence of the function.

See https://github.com/GeniusesOfSymfony/PNCTLEventLoopEmitter/blob/master/src/functions.php#L3

Have you another library that create a polyfill of this extension

mickadoo commented 7 years ago

I was just testing a Stackoverflow question I was trying to help. I just had a default installation of Symfony3.

fnash commented 6 years ago

So any solution? Or the root of the problem?