Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: main - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net

search for in the

memory_get_peak_usage" width="11" height="7"/> <ini_set
Last updated: Mon, 05 Feb 2007
view this page in

main

(No version information available, might be only in CVS)

main — main()のダミー

説明

PHP のソースを除き、main() という名前の関数は 存在しません。PHP 4.3.0 では、PHP ソースにおいて新しいタイプの エラー処理(php_error_docref)が追加されました。そのひとつの機能として、 html_errors (デフォルトでオン)と docref_root (PHP 4.3.2 まではデフォルトでオン)のディレクティブがセットされている 場合に、PHP のエラーメッセージ上に PHP のマニュアルへのリンクが 表示されるようになりました。

ときおり、エラーメッセージは main() 関数の マニュアルを指すことがあります。それがこのページが存在する理由です。 どの PHP 関数に関連するエラーで main() を 指すのか、ユーザーコメント欄に追加してくださいますようお願いします。 そうすれば、適切なドキュメントを指すように修正されるでしょう。

表 252. 現在判明している、main() を指すエラー

関数名このバージョン以降、ここを指すことはありません
include()5.1.0
include_once()5.1.0
require()5.1.0
require_once()5.1.0

html_errors, display_errors も参照してください。



add a note add a note User Contributed Notes
main
Maurice
02-May-2006 03:12
Notice: main() [function.main]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "<classname>" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in <filename> on line <line>

You get this error if you have and object in your $_SESSION array and you call session_start() before you have loaded your included classes.

memory_get_peak_usage" width="11" height="7"/> <ini_set
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites