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'));
}
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | extractor_safemode_0.patch | 563 bytes | ChrisKennedy |
| extractor_safemode.patch | 374 bytes | ChrisKennedy |
Comments
Comment #1
ChrisKennedy commentedRe-rolling now that I know how to make a real patch.
Comment #2
gábor hojtsyThanks, 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.
Comment #3
(not verified) commented