i have this error Fatal error: Call to undefined function pcntl_fork() in /var/www/onplans/application/models/api_repor |
[eluser]dinisptc[/eluser]
i have this error Fatal error: Call to undefined function pcntl_fork() in /var/www/onplans/application/models/api_report_model.php on line 94 i went to php.ini disable functions ; This directive allows you to disable certain functions for security reasons. ; It receives a comma-delimited list of function names. This directive is ; *NOT* affected by whether Safe Mode is turned On or Off. ; http://php.net/disable-functions ;disable_functions pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, i think pcntl its installed $ php -m | grep pcntl pcntl and its installed i am missing something here ? i am going to show function where iam using fork Code: if ($pid = pcntl_fork())
[eluser]dinisptc[/eluser]
Code: instalation of
[eluser]dinisptc[/eluser]
now on my localhost its working well but on the server i am getting this errors : A PHP Error was encountered Severity: Notice Message: Use of undefined constant STDIN - assumed 'STDIN' Filename: models/api_report_model.php Line Number: 140 A PHP Error was encountered Severity: Warning Message: fclose() expects parameter 1 to be resource, string given Filename: models/api_report_model.php Line Number: 140 A PHP Error was encountered Severity: Notice Message: Use of undefined constant STDOUT - assumed 'STDOUT' Filename: models/api_report_model.php Line Number: 141 A PHP Error was encountered Severity: Warning Message: fclose() expects parameter 1 to be resource, string given Filename: models/api_report_model.php Line Number: 141 A PHP Error was encountered Severity: Notice Message: Use of undefined constant STDERR - assumed 'STDERR' Filename: models/api_report_model.php Line Number: 142 A PHP Error was encountered Severity: Warning Message: fclose() expects parameter 1 to be resource, string given Filename: models/api_report_model.php Line Number: 142 Code: if( is_callable('pcntl_fork') ) // NOTE: not enabled in php5-fpm (via dotdeb) |
Welcome Guest, Not a member yet? Register Sign In |