php - Does symfony overwrire max_execution_time for its tasks? -
in php.ini, max_execution_time set 30 , cli, 0.
whenever execute php script through cli, max_execution_time set 0 correctly. whenever execute symfony task, max_execution_time 1200.
i checked have not reset max_execution_time anywhere in application. seems symfony overwriting max_execution_time.
if has idea how can resolve problem whenever execute symfony task, gets failed whenever execution time exceeds 1200.
symfony version: 1.4
php version: 5.4.19
os: fedora 19
code sample:
symfony task:
<?php class sampletask extends sfbasetask { protected function configure() { $this->namespace = 'cron'; $this->name = 'sample'; eof; } protected function execute($arguments = array(), $options = array()) { echo ini_get('max_execution_time');die; } } ?> on executing php symfony cron:sample, prints 1200.
php script:
<?php echo ini_get('max_execution_time'); ?> on execution php sample.php, prints 0.
Comments
Post a Comment