Last modified: 2010-05-15 15:29:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 252 - Special:Allmessages gives errors when PHP is in safe mode.
Special:Allmessages gives errors when PHP is in safe mode.
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2004-08-29 23:45 UTC by Olathe
Modified: 2010-05-15 15:29 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Olathe 2004-08-29 23:45:24 UTC
Special:Allmessages (in version 1.3.1) line 8 is 'set_time_limit(0);'.  This
causes errors because my web host has set PHP to safe mode.  I grepped all files
for set_time_limit and that is the only file (aside from maintenance files) that
uses it, so I assume it's not needed.  At the least, an if statement could check
whether safe mode was on to solve the errors.  Commenting that one line out
removes the errors and no other pages give errors in the first place.
Comment 1 Brion Vibber 2004-08-30 01:11:48 UTC
This was probably added because the output was insanely slow and frequently timed out in the default 30 

I've rewritten it in 1.4 to be much faster. Until then, putting a @ in front of the statement to eliminate the error 
message should do. I'll test that...
Comment 2 Brion Vibber 2004-08-30 03:19:49 UTC
On at least one of my boxen the old code runs too slow to finish in the default
30 second time limit anyway, so I've gone ahead and backported the faster 1.4
code and removed the set_time_limit() call. Will be included in 1.3.2.

Note You need to log in before you can comment on or make changes to this bug.