Closed bagbyte closed 10 years ago
Thanks, and sorry for the delay in response! I've not seen this before, and I think the only way to catch this would be to suppress the errors using the @
symbol. I'll get this added in - it seems to be best practice for stream_select
based on some quick research.
Hello, I'm receiving the following exception:
Exception thrown when handling an exception (Symfony\Component\Debug\Exception\FlattenException: Warning: stream_select() [function.stream-select]: You MUST recompile PHP with a larger value of FD_SETSIZE. It is set to 1024, but you have descriptors numbered at least as high as 5375. --enable-fd-setsize=6144 is recommended, but you may want to set it to equal the maximum number of open files supported by your system, in order to avoid seeing this error again at a later date. in /var/www/vhosts/medinaction.com/var/www/vhosts/medinaction.com/symfony_projects/Mia/vendor/richsage/rms-push-notifications-bundle/RMS/PushNotificationsBundle/Service/OS/AppleNotification.php line 163)
ContextErrorException: Warning: stream_select() [function.stream-select]: You MUST recompile PHP with a larger value of FD_SETSIZE. It is set to 1024, but you have descriptors numbered at least as high as 5375. --enable-fd-setsize=6144 is recommended, but you may want to set it to equal the maximum number of open files supported by your system, in order to avoid seeing this error again at a later date. in /var/www/vhosts/medinaction.com/var/www/vhosts/medinaction.com/symfony_projects/Mia/vendor/richsage/rms-push-notifications-bundle/RMS/PushNotificationsBundle/Service/OS/AppleNotification.php line 163
Also if I got this, the notification is delivered anyway, my hosting type doesn't allow me to change this parameter (I've opened a ticket already regardig this to them and it seems only private server can change this setting, I'm using ServerGrove).
I'm trying to catch this error and go on with my flow...but I cannot catch this exception, I've tried catching FlattenException, ContextErrorException and Exception but I'm always getting this error.
Is is possible to fix it somehow? Any applicable solution?
Thank you.