Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with PHP safe mode: ON #492

Closed
DrakMrak opened this issue Jun 26, 2020 · 1 comment
Closed

Problem with PHP safe mode: ON #492

DrakMrak opened this issue Jun 26, 2020 · 1 comment
Labels
Milestone

Comments

@DrakMrak
Copy link

DrakMrak commented Jun 26, 2020

I see one more problem... (PHP 7.3 / safe mode: ON / Last version Dokuwiki: Release rc-2020-06-09 "Hogfather" RC3 / Template: Template v2020-04-04 (develop/20200611))
in file: simple_html_dom.php

I must comment this
24: //set_time_limit(0);
25: //ini_set('max_execution_time', 0); - not set to zero!! (5-300)

My provider does not allow set set_time_limit(X) - and dokuwiki appear warning message when trying to change it!
"Warning: set_time_limit() has been disabled for security reasons in /data/web/virtuals/52324/virtual/www/lib/tpl/bootstrap3/inc/simple_html_dom.php on line 24"

I can set max_execution_time from 5 to 300, and I have set 300 - but it is not always enough!
I can not set set_time_limit(0) - among other things, this is not recommended for security reasons !!

"Warning - This function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini."

@DrakMrak DrakMrak added the bug label Jun 26, 2020
@giterlizzi giterlizzi added this to the v2021-02 milestone Feb 25, 2021
@giterlizzi
Copy link
Owner

Fixed in develop branch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants