The set_time_limit call in extractor.php causes a warning if safe_mode is enabled. This patch does an ini_get() to check and only calls set_time_limit if not in safe_mode.


--- extractor.php.1 2006-08-10 10:32:21.000000000 -0500
+++ extractor.php 2006-08-10 10:34:09.000000000 -0500
@@ -22,7 +22,10 @@
define('OVERHTTP', FALSE);
}

- set_time_limit(0);
+ if (!ini_get('safe_mode')) {
+ set_time_limit(0);
+ }
+
if (!defined("STDERR") && !OVERHTTP) {
define('STDERR', fopen('php://stderr', 'w'));
}

Comments

ChrisKennedy’s picture

StatusFileSize
new563 bytes

Re-rolling now that I know how to make a real patch.

gábor hojtsy’s picture

Status: Needs review » Fixed

Thanks, I have simplified the patch, so that it just silences any possible error with an @. It is possible that this function is disabled for example, so checking for safe mode is not enough.

Anonymous’s picture

Status: Fixed » Closed (fixed)