カテゴリ | |
---|---|
サマリ | links プラグイン実行時にセーフモード警告? |
バージョン | 1.4rc4 |
投稿者 | とさまる |
状態 | 完了 |
投稿日 | 2003-10-27 (MON) 02:38:46 |
rename済みのコンテンツへのリンクが、Link: の項目に居残る現象が現れたため、リンク再構築のためにplugin=links を実行したところ、パスワード入力後下記のようなメッセージがxml宣言の前に出力されました。 (実際はタグが入っていましたが見やすくするために除きました)
Warning: set_time_limit(): Cannot set time limit in safe mode in (PukiWikiの設置ディレクトリ)/link.php on line 128
link.phpを確認したところ、set_time_limit(0); が引っ掛かったのではないかと思います。この警告は環境依存(--enable-safe-modeしている)によるもので、コメントアウトするだけで問題のないものなのでしょうか? ちなみにリンク再構築自体は正常に完了しているように見受けられます。
$Id: link.php,v 1.6 2003/07/29 09:09:20 arino Exp $
'./configure' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--enable-i18n' '--with-xml' '--with-mysql=/usr/local/mysql' '--with-pgsql=/usr/local/pgsql' '--enable-track-vars' '--enable-discard-path' '--with-gd' '--enable-gd-native-ttf' '--with-zlib-dir=/usr' '--with-jpeg-dir=/usr' '--with-pdflib=/usr/local' '--enable-shared-pdflib' '--with-tiff-dir=/usr/local' '--with-freetype-dir=/usr' '--with-png-dir=/usr/local/libpng' '--disable-debug' '--enable-debug=no' '--enable-debugger=yes' '--enable-memory-limit=yes' '--enable-magic-quotes=yes' '--with-exec-dir=/usr/bin' '--with-config-file-path=/usr/local/apache_shared/conf' '--without-system-regex' '--with-dbase=yes' '--enable-bcmath=yes' '--enable-ftp' '--enable-versioning' '--enable-safe-mode' '--enable-sockets' '--with-mcrypt=/usr/local/lib/libmcrypt' '--disable-posix-threads' '--with-apxs=/usr/local/apache/bin/apxs'
set_time_limit(0)は、スクリプトが時間切れで強制終了してしまうのを防ぐために入れてあるものですから、スクリプトが制限時間内に終了しているのであれば、削除してもかまわないと思います。
ページ数が増えてくると、キャッシュを強制的に更新するときに時間切れになるおそれがありますので、注意してください。
他のレンタルサーバ環境だと、同じ警告が出る可能性がありますね。了解しました。