{"id":278,"date":"2012-12-19T00:41:52","date_gmt":"2012-12-19T00:41:52","guid":{"rendered":"07cdfd23373b17c6b337251c22b7ea57"},"modified":"2012-12-19T00:41:52","modified_gmt":"2012-12-19T00:41:52","slug":"","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/278","title":{"rendered":"php\u9519\u8bef\u548c\u5f02\u5e38"},"content":{"rendered":"<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4efb\u4f55\u7a0b\u5e8f\u5458\u5728\u5f00\u53d1\u65f6\u90fd\u53ef\u80fd\u9047\u5230\u8fc7\u4e00\u4e9b\u5931\u8bef\uff0c\u6216\u5176\u4ed6\u539f\u56e0\u9020\u6210\u9519\u8bef\u7684\u53d1\u751f\u3002\u5f53\u7136\uff0c\u7528\u6237\u5982\u679c\u4e0d\u613f\u610f\u6216\u4e0d\u9075\u5faa\u5e94\u7528\u7a0b\u5e8f\u7684\u7ea6\u675f\uff0c\u4e5f\u4f1a\u5728\u4f7f\u7528\u65f6\u5f15\u8d77\u4e00\u4e9b\u9519\u8bef\u53d1\u751f\u3002<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7a0b\u5e8f\u7684\u9519\u8bef\u53d1\u751f\u4e00\u822c\u5f52\u5c5e\u4e8e\u4e0b\u5217\u4e09\u4e2a\u9886\u57df\u3002<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\"><span style=\"font-size:small;\">\u00d8<\/span><span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:small;\">\u8bed\u6cd5\u9519\u8bef<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:small;\">\u8bed\u6cd5\u9519\u8bef\u6700\u5e38\u89c1\uff0c\u5e76\u4e14\u6700\u5bb9\u6613\u4fee\u590d\u3002\u4f8b\u5982\uff0c\u9057\u6f0f\u4e86\u4e00\u4e2a\u5206\u53f7\uff0c\u5c31\u4f1a\u663e\u793a\u9519\u8bef\u4fe1\u606f\u3002\u8fd9\u7c7b\u9519\u8bef\u4f1a\u963b\u6b62\u811a\u672c\u6267\u884c\u3002\u901a\u5e38\u53d1\u751f\u5728\u7a0b\u5e8f\u5f00\u53d1\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u9519\u8bef\u62a5\u544a\u8fdb\u884c\u4fee\u590d\uff0c\u518d\u91cd\u65b0\u8fd0\u884c\u3002<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\"><span style=\"font-size:small;\">\u00d8<\/span><span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:small;\">\u8fd0\u884c\u65f6\u9519\u8bef<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd9\u79cd\u9519\u8bef\u4e00\u822c\u4e0d\u4f1a\u963b\u6b62<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u7684\u8fd0\u884c\uff0c\u4f46\u662f\u4f1a\u963b\u6b62\u811a\u672c\u505a\u5e0c\u671b\u5b83\u6240\u505a\u7684\u4efb\u4f55\u4e8b\u60c5\u3002\u4f8b\u5982\uff0c\u5728\u8c03\u7528<\/span><span lang=\"EN-US\">header()<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\u524d\u5982\u679c\u6709\u5b57\u7b26\u8f93\u51fa\uff0c<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u901a\u5e38\u4f1a\u663e\u793a\u4e00\u6761\u9519\u8bef\u6d88\u606f\uff0c\u867d\u7136<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u7ee7\u7eed\u8fd0\u884c\uff0c\u4f46<\/span><span lang=\"EN-US\">header()<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\u5e76\u6ca1\u6709\u6267\u884c\u6210\u529f\u3002<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\"><span style=\"font-size:small;\">\u00d8<\/span><span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:small;\">\u903b\u8f91\u9519\u8bef<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd9\u79cd\u9519\u8bef\u5b9e\u9645\u4e0a\u662f\u6700\u9ebb\u70e6\u7684\uff0c\u4e0d\u4f46\u4e0d\u4f1a\u963b\u6b62<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u7684\u6267\u884c\uff0c\u4e5f\u4e0d\u4f1a\u663e\u793a\u51fa\u9519\u8bef\u6d88\u606f\u3002\u4f8b\u5982\uff0c\u5728<\/span><span lang=\"EN-US\">if<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bed\u53e5\u4e2d\u5224\u65ad\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\u662f\u5426\u76f8\u7b49\uff0c\u5982\u679c\u9519\u628a\u6bd4\u8f83\u8fd0\u884c\u7b26\u53f7\u201c\uff1d\uff1d\u201d\u5199\u6210\u8d4b\u503c\u8fd0\u884c\u7b26\u53f7\u201c\uff1d\u201d\u5c31\u662f\u4e00\u79cd\u903b\u8f91\u9519\u8bef\uff0c\u5f88\u96be\u4f1a\u88ab\u53d1\u73b0\u3002<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:small;\">\u4e00<br \/>\n\u4e2a\u5f02\u5e38\u5219\u662f\u5728\u4e00\u4e2a\u7a0b\u5e8f\u6267\u884c\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684\u4e00\u4e2a\u4f8b\u5916\uff0c\u6216\u662f\u4e00\u4e2a\u4e8b\u4ef6\uff0c\u5b83\u4e2d\u65ad\u4e86\u6b63\u5e38\u6307\u4ee4\u7684\u8fd0\u884c\uff0c\u8df3\u8f6c\u5230\u5176\u4ed6\u7a0b\u5e8f\u6a21\u5757\u7ee7\u7eed\u6267\u884c\u3002\u6240\u4ee5\u5f02\u5e38\u5904\u7406\u7ecf\u5e38\u88ab\u5f53\u505a\u7a0b\u5e8f\u7684\u63a7\u5236<br \/>\n\u6d41\u7a0b\u4f7f\u7528\u3002\u65e0\u8bba\u662f\u9519\u8bef\u8fd8\u662f\u5f02\u5e38\uff0c\u5e94\u7528\u7a0b\u5e8f\u90fd\u5fc5\u987b\u80fd\u591f\u4ee5\u59a5\u5584\u7684\u65b9\u5f0f\u5904\u7406\uff0c\u5e76\u505a\u51fa\u76f8\u5e94\u7684\u53cd\u5e94\uff0c\u5e0c\u671b\u4e0d\u8981\u4e22\u5931\u6570\u636e\u6216\u8005\u5bfc\u81f4\u7a0b\u5e8f\u5d29\u6e83\u3002<\/span><\/span><\/p>\n<h3 style=\"margin:15pt 0cm 10pt;\"><span style=\"font-family:Arial;\"><span lang=\"EN-US\">10.1.1<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><span style=\"font-family:\u65b9\u6b63\u51c6\u5706\u7b80\u4f53;mso-ascii-font-family:Arial;\">\u9519\u8bef\u7c7b\u578b\u548c\u57fa\u672c\u7684\u8c03\u8bd5\u65b9\u6cd5<\/span><\/span><\/h3>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd0\u884c<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u65f6\uff0c<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u89e3\u6790\u5668\u4f1a\u5c3d\u5176\u6240\u80fd\u5730\u62a5\u544a\u5b83\u9047\u5230\u7684\u95ee\u9898\u3002\u5728<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u9519\u8bef\u62a5\u544a\u7684\u5904\u7406\u884c\u4e3a\uff0c\u90fd\u662f\u901a\u8fc7<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u914d\u7f6e\u6587\u4ef6<\/span><span lang=\"EN-US\">php.ini<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u6709\u5173\u7684\u914d\u7f6e\u6307\u4ee4\u786e\u5b9a\u7684\u3002\u53e6\u5916<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u9519\u8bef\u62a5\u544a\u6709\u5f88\u591a\u79cd\u7ea7\u522b\uff0c\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u9519\u8bef\u62a5\u544a\u7ea7\u522b\u63d0\u4f9b\u5bf9\u5e94\u7684\u8c03\u8bd5\u65b9\u6cd5\u3002\u4e00\u65e6\u628a<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bbe\u7f6e\u6210\u5448\u73b0\u51fa\u53d1\u751f\u4e86\u54ea\u4e9b\u9519\u8bef\uff0c\u4f60\u53ef\u80fd\u60f3\u8c03\u6574\u9519\u8bef\u62a5\u544a\u7684\u7ea7\u522b\u3002\u5728\u8868<\/span><span lang=\"EN-US\">10-1<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u5217\u51fa\u4e86<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u5927\u591a\u6570\u7684\u9519\u8bef\u62a5\u544a\u7ea7\u522b\u3002<\/span><\/span><\/p>\n<p style=\"margin:auto 0cm;\" class=\"0402\"><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\u8868<\/span><span lang=\"EN-US\"><span style=\"font-family:Arial;\">10-1<span style=\"mso-spacerun:yes;\">&nbsp; <\/span>PHP<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\u7684\u9519\u8bef\u62a5\u544a\u7ea7\u522b<\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"border-bottom:medium none;border-left:medium none;width:467.8pt;border-collapse:collapse;border-top:medium none;border-right:medium none;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;mso-border-alt:solid windowtext 1.0pt;\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;background:#e6e6e6;border-top:windowtext 1pt solid;border-right:windowtext 0.5pt solid;padding-top:0cm;\" valign=\"top\" width=\"162\">\n<p style=\"text-align:center;margin:0cm 0cm 0pt;\" class=\"a1\" align=\"center\"><span style=\"font-family:\u9ed1\u4f53;\"><span style=\"font-size:xx-small;\">\u7ea7\u522b\u5e38\u91cf<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;background:#e6e6e6;border-top:windowtext 1pt solid;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"text-align:center;margin:0cm 0cm 0pt;\" class=\"a1\" align=\"center\"><span style=\"font-family:\u9ed1\u4f53;\"><span style=\"font-size:xx-small;\">\u9519\u8bef\u62a5\u544a\u63cf\u8ff0<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_ERROR<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u81f4\u547d\u7684\u8fd0\u884c\u65f6\u9519\u8bef\uff08\u5b83\u4f1a\u963b\u6b62\u811a\u672c\u7684\u6267\u884c\uff09<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_WARNING<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u8fd0\u884c\u65f6\u8b66\u544a\uff08\u975e\u81f4\u547d\u7684\u9519\u8bef\uff09<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_PARSE<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u4ece\u8bed\u6cd5\u4e2d\u89e3\u6790\u9519\u8bef<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_NOTICE<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u8fd0\u884c\u65f6\u6ce8\u610f\u6d88\u606f\uff08\u53ef\u80fd\u662f\u6216\u8005\u53ef\u80fd\u4e0d\u662f\u4e00\u4e2a\u95ee\u9898\uff09<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_CORE_ERROR<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-size:xx-small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7c7b\u4f3c<\/span><span lang=\"EN-US\">E_ERROR<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u4f46\u4e0d\u5305\u62ec<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6838\u5fc3\u9020\u6210\u7684\u9519\u8bef<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_CORE_WARNING<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-size:xx-small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7c7b\u4f3c<\/span><span lang=\"EN-US\">E_WARNING<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u4f46\u4e0d\u5305\u62ec<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6838\u5fc3\u9519\u8bef\u8b66\u544a<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_COMPILE_ERROR<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u81f4\u547d\u7684\u7f16\u8bd1\u65f6\u9519\u8bef<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_COMPILE_WARNING<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u81f4\u547d\u7684\u7f16\u8bd1\u65f6\u8b66\u544a<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_USER_ERROR<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u7528\u6237\u5bfc\u81f4\u7684\u9519\u8bef\u6d88\u606f<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_USER_WARNING<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u7528\u6237\u5bfc\u81f4\u7684\u8b66\u544a<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_USER_NOTICE<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u7528\u6237\u5bfc\u81f4\u7684\u6ce8\u610f\u6d88\u606f<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_ALL<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u6240\u6709\u7684\u9519\u8bef\u3001\u8b66\u544a\u548c\u6ce8\u610f<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 1pt solid;border-left:windowtext 1pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:121.25pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"162\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-size:xx-small;\">E_STRICT<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 1pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:346.55pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 1pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"462\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-size:xx-small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5173\u4e8e<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7248\u672c\u79fb\u690d\u7684\u517c\u5bb9\u6027\u548c\u4e92\u64cd\u4f5c\u6027\u5efa\u8bae<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5982\u679c\u7528\u6237\u5e0c\u671b\u5728<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u4e2d\uff0c\u9047\u5230\u4e0a\u8868\u4e2d\u7684\u67d0\u4e2a\u7ea7\u522b\u7684\u9519\u8bef\u65f6\uff0c\u5c06\u9519\u8bef\u6d88\u606f\u62a5\u544a\u7ed9\u7528\u6237\u3002\u5219\u5fc5\u987b\u5728\u914d\u7f6e\u6587\u4ef6<\/span><span lang=\"EN-US\">php.ini<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\uff0c\u5c06<\/span><span lang=\"EN-US\">display_errors<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6307\u4ee4\u7684\u503c\u8bbe\u7f6e\u4e3a<\/span><span lang=\"EN-US\">On<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u5f00\u542f<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8f93\u51fa\u9519\u8bef\u62a5\u544a\u7684\u529f\u80fd\u3002\u4e5f\u53ef\u4ee5\u5728<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u4e2d\u8c03\u7528<\/span><span lang=\"EN-US\">ini_set()<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\uff0c\u52a8\u6001\u8bbe\u7f6e\u914d\u7f6e\u6587\u4ef6<\/span><span lang=\"EN-US\">php.ini<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u7684\u67d0\u4e2a\u6307\u4ee4\u3002\u5982\u679c<\/span><span lang=\"EN-US\">display_errors<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u88ab<br \/>\n\u542f\u7528\uff0c\u5c31\u4f1a\u663e\u793a\u6ee1\u8db3\u5df2\u8bbe\u7f6e\u7684\u9519\u8bef\u7ea7\u522b\u7684\u6240\u6709\u9519\u8bef\u3002\u5f53\u7528\u6237\u5728\u8bbf\u95ee\u65f6\uff0c\u770b\u5230\u663e\u793a\u7684\u8fd9\u4e9b\u6d88\u606f\u4e0d\u4ec5\u4f1a\u611f\u5230\u8ff7\u60d1\uff0c\u800c\u4e14\u8fd8\u53ef\u80fd\u4f1a\u8fc7\u591a\u5730\u6cc4\u9732\u6709\u5173\u670d\u52a1\u5668\u7684\u4fe1\u606f\uff0c\u4f7f\u670d\u52a1\u5668<br \/>\n\u53d8\u5f97\u5f88\u4e0d\u5b89\u5168\u3002\u6240\u4ee5\u5728\u9879\u76ee\u5f00\u53d1\u6216\u6d4b\u8bd5\u671f\u95f4\u542f\u7528\u6b64\u6307\u4ee4\uff0c\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u9519\u8bef\u62a5\u544a\u66f4\u597d\u7684\u8c03\u8bd5\u7a0b\u5e8f\u3002\u51fa\u4e8e\u5b89\u5168\u6027\u548c\u7f8e\u611f\u7684\u76ee\u7684\uff0c\u8ba9\u516c\u4f17\u7528\u6237\u67e5\u770b<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u8be6\u7ec6\u51fa\u9519\u6d88\u606f\u4e00\u822c\u662f\u4e0d\u660e\u667a\u7684\uff0c\u6240\u4ee5\u5728\u7f51\u7ad9\u6295\u5165\u4f7f\u7528\u65f6\u8981\u5c06\u5176\u7981\u7528\u3002<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5f53\u4f60\u6b63\u5728\u5f00\u53d1\u7ad9\u70b9\u65f6\uff0c\u4f60\u5c06\u5e0c\u671b<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u62a5\u544a\u7279\u5b9a\u7c7b\u578b\u7684\u9519\u8bef\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u9519\u8bef\u62a5\u544a\u7684\u7ea7\u522b\u5b9e\u73b0\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4e24\u79cd\u65b9\u6cd5\u8bbe\u7f6e\u9519\u8bef\u62a5\u544a\u7ea7\u522b\u3002<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\"><span style=\"font-size:small;\">\u00d8<\/span><span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ef\u4ee5\u901a\u8fc7\u5728\u914d\u7f6e\u6587\u4ef6<\/span><span lang=\"EN-US\">php.ini<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\uff0c\u4fee\u6539\u914d\u7f6e\u6307\u4ee4<\/span><span lang=\"EN-US\">error_reporting<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u503c\uff0c\u4fee\u6539\u6210\u529f\u540e\u91cd\u65b0\u542f\u52a8<\/span><span lang=\"EN-US\">Web<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\uff0c\u5219\u6bcf\u4e2a<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u90fd\u53ef\u4ee5\u6309\u8c03\u6574\u540e\u7684\u9519\u8bef\u7ea7\u522b\u8f93\u51fa\u9519\u8bef\u62a5\u544a\u3002\u4e0b\u9762\u662f\u4fee\u6539<\/span><span lang=\"EN-US\">php.ini<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u914d\u7f6e\u6587\u4ef6\u7684\u793a\u4f8b\uff0c\u5217\u51fa\u51e0\u79cd\u4e3a<\/span><span lang=\"EN-US\">error_reporting<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6307\u4ee4\u8bbe\u7f6e\u4e0d\u540c\u7ea7\u522b\u503c\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u628a\u4f4d\u8fd0\u7b97\u7b26\uff3b<\/span><span lang=\"EN-US\">&amp;<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff08\u4e0e\uff09\u3001<\/span><span lang=\"EN-US\">|<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff08\u6216\uff09\u3001<\/span><span lang=\"EN-US\">~<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff08\u975e\uff09\uff3d\u548c\u9519\u8bef\u7ea7\u522b\u5e38\u91cf\u4e00\u8d77\u4f7f\u7528\u3002\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\">; <\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ef\u4ee5\u629b\u51fa\u4efb\u4f55\u975e\u6ce8\u610f\u7684\u9519\u8bef\uff0c\u9ed8\u8ba4\u503c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-size:x-small;\">error_reporting = E_ALL &amp; ~E_NOTICE<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\">; <\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ea\u8003\u8651\u81f4\u547d\u7684\u8fd0\u884c\u65f6\u9519\u8bef\u3001\u89e3\u6790\u9519\u8bef\u548c\u6838\u5fc3\u9519\u8bef<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-size:x-small;\">; error_reporting = E_ERROR | E_PARSE | E_CORE_ERROR<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\">; <\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u62a5\u544a\u9664\u7528\u6237\u5bfc\u81f4\u7684\u9519\u8bef\u4e4b\u5916\u7684\u6240\u6709\u9519\u8bef<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-size:x-small;\">; error_reporting = E_ALL &amp; ~(E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE)<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\"><span style=\"font-size:small;\">\u00d8<\/span><span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6216\u8005\u53ef\u4ee5\u5728<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u4e2d\u4f7f\u7528<\/span><span lang=\"EN-US\">error_reporting()<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\uff0c\u57fa\u4e8e\u5404\u4e2a\u811a\u672c\u6765\u8c03\u6574\u8fd9\u79cd\u884c\u4e3a\u3002\u8fd9\u4e2a\u51fd\u6570\u7528\u4e8e\u786e\u5b9a<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5e94\u8be5\u5728\u7279\u5b9a\u7684\u9875\u9762\u5185\u62a5\u544a\u54ea\u4e9b\u7c7b\u578b\u7684\u9519\u8bef\u3002\u8be5\u51fd\u6570\u83b7\u53d6\u4e00\u4e2a\u6570\u5b57\u6216\u4e0a\u8868\u4e2d\u9519\u8bef\u7ea7\u522b\u5e38\u91cf\u4f5c\u4e3a\u53c2\u6570\u3002\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\">error_reporting(0);<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bbe\u7f6e\u4e3a<\/span><span lang=\"EN-US\">0<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4f1a\u5b8c\u5168\u5173\u95ed\u9519\u8bef\u62a5\u544a<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\">error_reporting (E_ALL);<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5c06\u4f1a\u5411<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u62a5\u544a\u53d1\u751f\u7684\u6bcf\u4e2a\u9519\u8bef<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\">error_reporting (E_ALL &amp; ~E_NOTICE);<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ef\u4ee5\u629b\u51fa\u4efb\u4f55\u975e\u6ce8\u610f\u7684\u9519\u8bef\u62a5\u544a<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728\u4e0b\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5728<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u4e2d\u5206\u522b\u521b\u5efa\u51fa\u4e00\u4e2a\u201c\u6ce8\u610f\u201d\u3001\u4e00\u4e2a\u201c\u8b66\u544a\u201d\u548c\u4e00\u4e2a\u81f4\u547d\u201c\u9519\u8bef\u201d\u3002\u5e76\u901a\u8fc7\u8bbe\u7f6e\u4e0d\u540c\u7684\u9519\u8bef\u7ea7\u522b\uff0c\u9650\u5236\u7a0b\u5e8f\u8f93\u51fa\u6ca1\u6709\u88ab\u5141\u8bb8\u7684\u9519\u8bef\u62a5\u544a\u3002\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<\/span><span lang=\"EN-US\">error.php<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u811a\u672c\u6587\u4ef6\uff0c\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\">&lt;html&gt;<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&lt;head&gt;&lt;title&gt;<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6d4b\u8bd5\u9519\u8bef\u62a5\u544a<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">&lt;\/title&gt;&lt;\/head&gt;<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&lt;body&gt;<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&lt;h2&gt;<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6d4b\u8bd5\u9519\u8bef\u62a5\u544a<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">&lt;\/h2&gt;<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&lt;?php<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/*<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5f00\u542f<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">php.ini<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u7684<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">display_errors<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6307\u4ee4\uff0c\u53ea\u6709\u8be5\u6307\u4ee4\u5f00\u542f\u5982\u679c\u6709\u9519\u8bef\u62a5\u544a\u624d\u80fd\u8f93\u51fa<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">*\/<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>ini_set('display_errors',1);<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/*<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u901a\u8fc7<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">error_reporting()<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\u8bbe\u7f6e\u5728\u672c\u811a\u672c\u4e2d\uff0c\u8f93\u51fa\u6240\u6709\u7ea7\u522b\u7684\u9519\u8bef\u62a5\u544a<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">*\/<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>error_reporting(E_ALL);<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/*<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u201c\u6ce8\u610f<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">(notice)<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u201d\u7684\u62a5\u544a\uff0c\u4e0d\u4f1a\u963b\u6b62\u811a\u672c\u7684\u6267\u884c\uff0c\u5e76\u4e14\u53ef\u80fd\u4e0d\u4e00\u5b9a\u662f\u4e00\u4e2a\u95ee\u9898<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\"> *\/<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>getType($var);<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">\/\/<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8c03\u7528\u51fd\u6570\u65f6\u63d0\u4f9b\u7684\u53c2\u6570\u53d8\u91cf\u6ca1\u6709\u5728\u4e4b\u524d\u58f0\u660e<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/*<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u201c\u8b66\u544a<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">(warning)<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u201d\u7684\u62a5\u544a\uff0c\u6307\u793a\u4e00\u4e2a\u95ee\u9898\uff0c\u4f46\u662f\u4e0d\u4f1a\u963b\u6b62\u811a\u672c\u7684\u6267\u884c<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\"> *\/<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>getType();<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">\/\/<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8c03\u7528\u51fd\u6570\u65f6\u6ca1\u6709\u63d0\u4f9b\u5fc5\u8981\u7684\u53c2\u6570<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/*<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u201c\u9519\u8bef<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">(error)<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u201d\u7684\u62a5\u544a\uff0c\u5b83\u4f1a\u7ec8\u6b62\u7a0b\u5e8f\uff0c\u811a\u672c\u4e0d\u4f1a\u518d\u5411\u4e0b\u6267\u884c<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\"> *\/<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>get_Type();<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;<\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">\/\/<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8c03\u7528\u4e00\u4e2a\u6ca1\u6709\u88ab\u5b9a\u4e49\u7684\u51fd\u6570<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>?&gt;<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&lt;\/body&gt;<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\">&lt;\/html&gt;<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728\u4e0a\u9762\u7684\u811a\u672c\u4e2d\uff0c\u4e3a\u4e86\u786e\u4fdd\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684<\/span><span lang=\"EN-US\">display_errors<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6307\u4ee4\u5f00\u542f\uff0c\u901a\u8fc7<\/span><span lang=\"EN-US\">ini_set()<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\u5f3a\u5236\u5728\u8be5\u811a\u672c\u6267\u884c\u4e2d\u542f\u52a8\uff0c\u5e76\u901a\u8fc7<\/span><span lang=\"EN-US\">error_repoting()<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\u8bbe\u7f6e\u9519\u8bef\u7ea7\u522b\u4e3a<\/span><span lang=\"EN-US\">E_ALL<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u62a5\u544a\u6240\u6709\u9519\u8bef\u3001\u8b66\u544a\u548c\u6ce8\u610f\u3002\u5e76\u5728\u811a\u672c\u4e2d\u5206\u522b\u521b\u5efa\u51fa\u6ce8\u610f\u3001\u8b66\u544a\u548c\u9519\u8bef\uff0c<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u53ea\u6709\u5728\u9047\u5230\u9519\u8bef\u65f6\u624d\u4f1a\u7ec8\u6b62\u8fd0\u884c\uff0c\u8f93\u51fa\u7684\u9519\u8bef\u62a5\u544a\u7ed3\u679c\u5982\u56fe<\/span><span lang=\"EN-US\">10-1<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6240\u793a\u3002<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201212\/46b71355849085.jpg\" id=\"ematt:162\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201212\/46b71355849085.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/span><\/p>\n<p><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><\/p>\n<p style=\"margin:auto 0cm;\" class=\"0305\"><span style=\"font-size:x-small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u56fe<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">10-1 <span style=\"mso-spacerun:yes;\">&nbsp;<\/span><\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8f93\u51fa\u9519\u8bef\u62a5\u544a\u7ed3\u679c\u7684\u6f14\u793a<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u201c\u6ce8\u610f\u201d\u548c\u201c\u8b66\u544a\u201d\u7684\u9519\u8bef\u62a5\u544a\u5e76\u4e0d\u4f1a\u7ec8\u6b62\u7a0b\u5e8f\u8fd0\u884c\u3002\u5982\u679c\u5728\u4e0a\u9762\u7684\u8f93\u51fa\u7ed3\u679c\u4e2d\uff0c\u4e0d\u5e0c\u671b\u6709\u6ce8\u610f\u548c\u8b66\u544a\u7684\u62a5\u544a\u8f93\u51fa\uff0c\u5c31\u53ef\u4ee5\u5728\u811a\u672c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error.php<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u4fee\u6539<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error_repoting()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\uff0c\u4fee\u6539\u7684\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error_reporting(E_ALL&amp;~(E_WARNING | E_NOTICE));<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u62a5\u544a\u9664\u6ce8\u610f\u548c\u8b66\u544a\u4e4b\u5916\u7684\u6240\u6709\u9519\u8bef<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error.php<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u88ab\u4fee\u6539\u4ee5\u540e\u5e76\u91cd\u65b0\u8fd0\u884c\uff0c\u5728\u8f93\u51fa\u7684\u7ed3\u679c\u4e2d\u5c31\u53ea\u5269\u4e0b\u4e00\u6761\u9519\u8bef\u62a5\u544a\u4e86\uff0c\u5982\u56fe<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">10-2<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6240\u793a\u3002<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><a target=\"_blank\" href=\"\/notes\/content\/uploadfile\/201212\/80cb1355849085.jpg\" id=\"ematt:163\"><img decoding=\"async\" src=\"\/notes\/content\/uploadfile\/201212\/80cb1355849085.jpg\" alt=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\" border=\"0\" \/><\/a><br \/>\n<\/span><\/p>\n<p><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><\/p>\n<p style=\"margin:auto 0cm;\" class=\"0305\"><span style=\"font-size:x-small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u56fe<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">10-2 <span style=\"mso-spacerun:yes;\">&nbsp;<\/span><\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5c4f\u853d\u201c\u6ce8\u610f\u201d\u548c\u201c\u8b66\u544a\u201d\u540e\u7684\u8f93\u51fa\u7ed3\u679c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u9664\u4e86\u4f7f\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error_reporting<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u548c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">display_error<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e24\u4e2a\u914d\u7f6e\u6307\u4ee4\u53ef\u4ee5\u4fee\u6539\u9519\u8bef\u62a5\u544a\u884c\u4e3a\u4ee5\u5916\uff0c\u8fd8\u6709\u8bb8\u591a\u914d\u7f6e\u6307\u4ee4\u53ef\u4ee5\u786e\u5b9a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u9519\u8bef\u62a5\u544a\u884c\u4e3a\u3002\u5176\u4ed6\u7684\u4e00\u4e9b\u91cd\u8981\u7684\u6307\u4ee4\u5982\u8868<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">10-2<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6240\u793a\u3002<\/span><\/p>\n<p style=\"margin:auto 0cm;\" class=\"0402\"><span style=\"font-size:x-small;\"><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\u8868<\/span><span lang=\"EN-US\"><span style=\"font-family:Arial;\">10-2 <span style=\"mso-spacerun:yes;\">&nbsp;<\/span><\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\u786e\u5b9a<\/span><span lang=\"EN-US\"><span style=\"font-family:Arial;\">PHP<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\u9519\u8bef\u62a5\u544a\u884c\u4e3a\u7684\u914d\u7f6e\u6307\u4ee4<\/span><\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"border-bottom:medium none;border-left:medium none;width:467.8pt;border-collapse:collapse;border-top:medium none;border-right:medium none;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;mso-border-alt:solid windowtext .5pt;\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 0.5pt solid;padding-bottom:0cm;padding-left:5.4pt;width:101.7pt;padding-right:5.4pt;background:#e6e6e6;border-top:windowtext 0.5pt solid;border-right:windowtext 0.5pt solid;padding-top:0cm;\" valign=\"top\" width=\"136\">\n<p style=\"text-align:center;margin:0cm 0cm 0pt;\" class=\"a1\" align=\"center\"><span style=\"font-family:\u9ed1\u4f53;\"><span style=\"font-size:xx-small;\">\u914d\u7f6e\u6307\u4ee4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;padding-left:5.4pt;width:299.7pt;padding-right:5.4pt;background:#e6e6e6;border-top:windowtext 0.5pt solid;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;\" valign=\"top\" width=\"400\">\n<p style=\"text-align:center;margin:0cm 0cm 0pt;\" class=\"a1\" align=\"center\"><span style=\"font-family:\u9ed1\u4f53;\"><span style=\"font-size:xx-small;\">\u63cf <span lang=\"EN-US\"><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;<\/span>\u8ff0<\/span><\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;padding-left:5.4pt;width:66.4pt;padding-right:5.4pt;background:#e6e6e6;border-top:windowtext 0.5pt solid;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;\" valign=\"top\" width=\"89\">\n<p style=\"text-align:center;margin:0cm 0cm 0pt;\" class=\"a1\" align=\"center\"><span style=\"font-family:\u9ed1\u4f53;\"><span style=\"font-size:xx-small;\">\u9ed8 \u8ba4 \u503c<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 0.5pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:101.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" width=\"136\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">display_startup_errors<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:299.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"400\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-size:xx-small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u662f\u5426\u663e\u793a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5f15\u64ce\u5728\u521d\u59cb\u5316\u65f6\u9047\u5230\u7684\u6240\u6709\u9519\u8bef<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:66.4pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" width=\"89\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">Off<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 0.5pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:101.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" width=\"136\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">log_errors<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:299.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"400\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u786e\u5b9a\u65e5\u5fd7\u8bed\u53e5\u8bb0\u5f55\u7684\u4f4d\u7f6e<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:66.4pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" width=\"89\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">Off<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 0.5pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:101.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" width=\"136\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">error_log<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:299.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"400\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-size:xx-small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bbe\u7f6e\u9519\u8bef\u53ef\u4ee5\u53d1\u9001\u5230<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:66.4pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" width=\"89\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">Null<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 0.5pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:101.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" width=\"136\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">log_errors_max_len<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:299.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"400\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-size:xx-small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6bcf\u4e2a\u65e5\u5fd7\u9879\u7684\u6700\u5927\u957f\u5ea6\uff0c\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\uff0c\u8bbe\u7f6e<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">0<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8868\u793a\u6307\u5b9a\u6700\u5927\u957f\u5ea6<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:66.4pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" width=\"89\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">1024<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 0.5pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:101.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" width=\"136\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">ignore_repeated_errors<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:299.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"400\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u662f\u5426\u5ffd\u7565\u540c\u4e00\u6587\u4ef6\u3001\u540c\u4e00\u884c\u53d1\u751f\u7684\u91cd\u590d\u9519\u8bef\u6d88\u606f<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:66.4pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" width=\"89\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">Off<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 0.5pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:101.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" width=\"136\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">ignore_repeated_source<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:299.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"400\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:xx-small;\">\u5ffd\u7565\u4e0d\u540c\u6587\u4ef6\u4e2d\u6216\u540c\u4e00\u6587\u4ef6\u4e2d\u4e0d\u540c\u884c\u4e0a\u53d1\u751f\u7684\u91cd\u590d\u9519\u8bef<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:66.4pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" width=\"89\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">Off<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:windowtext 0.5pt solid;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:101.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-top-alt:solid windowtext .5pt;\" width=\"136\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">track_errors <\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:299.7pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" valign=\"top\" width=\"400\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span style=\"font-size:xx-small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u542f\u52a8\u8be5\u6307\u4ee4\u4f1a\u4f7f<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">$php_errormsg<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u5b58\u50a8\u6700\u8fd1\u53d1\u751f\u7684\u9519\u8bef\u4fe1\u606f<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-bottom:windowtext 0.5pt solid;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:66.4pt;padding-right:5.4pt;border-top:#ece9d8;border-right:windowtext 0.5pt solid;padding-top:0cm;mso-border-left-alt:solid windowtext .5pt;mso-border-top-alt:solid windowtext .5pt;\" width=\"89\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"a1\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:xx-small;\">Off<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<h3 style=\"margin:15pt 0cm 10pt;\"><span style=\"font-family:Arial;\"><span lang=\"EN-US\">10.1.2<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><span style=\"font-family:\u65b9\u6b63\u51c6\u5706\u7b80\u4f53;mso-ascii-font-family:Arial;\">\u9519\u8bef\u65e5\u5fd7<\/span><\/span><\/h3>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5bf9\u4e8e<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5f00\u53d1\u8005\u6765\u8bf4\uff0c\u4e00\u65e6\u67d0\u4e2a\u4ea7\u54c1\u6295\u5165\u4f7f\u7528\uff0c\u5e94\u8be5\u7acb\u5373\u5c06<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">display_errors<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u9009<br \/>\n\u9879\u5173\u95ed\uff0c\u4ee5\u514d\u56e0\u4e3a\u8fd9\u4e9b\u9519\u8bef\u6240\u900f\u9732\u7684\u8def\u5f84\u3001\u6570\u636e\u5e93\u8fde\u63a5\u3001\u6570\u636e\u8868\u7b49\u4fe1\u606f\u800c\u906d\u5230\u9ed1\u5ba2\u653b\u51fb\u3002\u4f46\u662f\uff0c\u4efb\u4f55\u4e00\u4e2a\u4ea7\u54c1\u5728\u6295\u5165\u4f7f\u7528\u540e\uff0c\u90fd\u96be\u514d\u4f1a\u6709\u9519\u8bef\u51fa\u73b0\uff0c\u90a3\u4e48\u5982\u4f55\u8bb0\u5f55\u4e00<br \/>\n\u4e9b\u5bf9\u5f00\u53d1\u8005\u6709\u7528\u7684\u9519\u8bef\u62a5\u544a\u5462\uff1f\u6211\u4eec\u53ef\u4ee5\u5728\u5355\u72ec\u7684\u6587\u672c\u6587\u4ef6\u4e2d\u5c06\u9519\u8bef\u62a5\u544a\u4f5c\u4e3a\u65e5\u5fd7\u8bb0\u5f55\u3002\u9519\u8bef\u65e5\u5fd7\u7684\u8bb0\u5f55\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u6216\u8005\u7ba1\u7406\u4eba\u5458\u67e5\u770b\u7cfb\u7edf\u662f\u5426\u5b58\u5728\u95ee\u9898\u3002<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5982\u679c\u9700\u8981\u5c06\u7a0b\u5e8f\u4e2d\u7684\u9519\u8bef\u62a5\u544a\u5199\u5165\u9519\u8bef\u65e5\u5fd7\u4e2d\uff0c\u53ea\u8981\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u5c06\u914d\u7f6e\u6307\u4ee4<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">log_errors<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5f00\u542f\u5373\u53ef\u3002\u9519\u8bef\u62a5\u544a\u9ed8\u8ba4\u5c31\u4f1a\u8bb0\u5f55\u5230<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Web<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\u7684\u65e5\u5fd7\u6587\u4ef6\u91cc\uff0c\u4f8b\u5982\u8bb0\u5f55\u5230<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Apache<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\u7684\u9519\u8bef\u65e5\u5fd7\u6587\u4ef6<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error.log<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u3002\u5f53\u7136\u4e5f\u53ef\u4ee5\u8bb0\u5f55\u9519\u8bef\u65e5\u5fd7\u5230\u6307\u5b9a\u7684\u6587\u4ef6\u4e2d\u6216\u53d1\u9001\u7ed9\u7cfb\u7edf<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u5206\u522b\u4ecb\u7ecd\u5982\u4e0b\uff1a<\/span><\/p>\n<p style=\"margin:5pt 0cm 3pt;\" class=\"4\"><span lang=\"EN-US\"><span style=\"font-family:Arial;\">1<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\uff0e\u4f7f\u7528\u6307\u5b9a\u7684\u6587\u4ef6\u8bb0\u5f55\u9519\u8bef\u62a5\u544a\u65e5\u5fd7<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5982\u679c\u4f7f\u7528\u81ea\u5df1\u6307\u5b9a\u7684\u6587\u4ef6\u8bb0\u5f55\u9519\u8bef\u65e5\u5fd7\uff0c\u4e00\u5b9a\u8981\u786e\u4fdd\u5c06\u8fd9\u4e2a\u6587\u4ef6\u5b58\u653e\u5728\u6587\u6863\u6839\u76ee\u5f55\u4e4b\u5916\uff0c\u4ee5\u51cf\u5c11\u906d\u5230\u653b\u51fb\u7684\u53ef\u80fd\u3002\u5e76\u4e14\u8be5\u6587\u4ef6\u4e00\u5b9a\u8981\u8ba9<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u7684\u6267\u884c\u7528\u6237\uff08<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Web<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\u8fdb\u7a0b\u6240\u6709\u8005\uff09\u5177\u6709\u5199\u6743\u9650\u3002\u5047\u8bbe\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Linux<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u5c06<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">\/usr\/local\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u76ee\u5f55\u4e0b\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error.log<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6587\u4ef6\u4f5c\u4e3a\u9519\u8bef\u65e5\u5fd7\u6587\u4ef6\uff0c\u5e76\u8bbe\u7f6e<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Web<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\u8fdb\u7a0b\u7528\u6237\u5177\u6709\u5199\u7684\u6743\u9650\u3002\u7136\u540e\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u5c06<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error_log<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6307\u4ee4\u7684\u503c\u8bbe\u7f6e\u4e3a\u8fd9\u4e2a\u9519\u8bef\u65e5\u5fd7\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84\u3002\u9700\u8981\u5c06<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">php.ini<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u7684\u914d\u7f6e\u6307\u4ee4\u505a\u5982\u4e0b\u4fee\u6539\uff1a<\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error_reporting<span style=\"mso-spacerun:yes;\">&nbsp; <\/span>=<span style=\"mso-spacerun:yes;\">&nbsp; <\/span>E_ALL <span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>;<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5c06\u4f1a\u5411<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u62a5\u544a\u53d1\u751f\u7684\u6bcf\u4e2a\u9519\u8bef<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">display_errors = Off<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span>;<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e0d\u663e\u793a\u6ee1\u8db3\u4e0a\u6761\u6307\u4ee4\u6240\u5b9a\u4e49\u89c4\u5219\u7684\u6240\u6709\u9519\u8bef\u62a5\u544a<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">log_errors = On<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span>;<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51b3\u5b9a\u65e5\u5fd7\u8bed\u53e5\u8bb0\u5f55\u7684\u4f4d\u7f6e<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">log_errors_max_len = 1024<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>;<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bbe\u7f6e\u6bcf\u4e2a\u65e5\u5fd7\u9879\u7684\u6700\u5927\u957f\u5ea6<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error_log = \/usr\/local\/error.log<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>;<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6307\u5b9a\u4ea7\u751f\u7684\u9519\u8bef\u62a5\u544a\u5199\u5165\u7684\u65e5\u5fd7\u6587\u4ef6\u4f4d\u7f6e<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u914d\u7f6e\u6587\u4ef6\u6309\u4e0a\u9762\u7684\u65b9\u5f0f\u8bbe\u7f6e\u5b8c\u6210\u4ee5\u540e\uff0c\u5e76\u91cd\u65b0\u542f\u52a8<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Web<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\u3002\u8fd9\u6837\uff0c\u5728\u6267\u884c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u4efb\u4f55\u811a\u672c\u6587\u4ef6\u65f6\uff0c\u6240\u4ea7\u751f\u7684\u6240\u6709\u9519\u8bef\u62a5\u544a\u90fd\u4e0d\u4f1a\u5728\u6d4f\u89c8\u5668\u4e2d\u663e\u793a\uff0c\u800c\u4f1a\u8bb0\u5f55\u5728\u81ea\u5df1\u6307\u5b9a\u7684\u9519\u8bef\u65e5\u5fd7<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">\/usr\/local\/error.log<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u3002\u6b64\u5916\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u8bb0\u5f55\u6ee1\u8db3<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error_reporting<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6240\u5b9a\u4e49\u89c4\u5219\u7684\u6240\u6709\u9519\u8bef\uff0c\u800c\u4e14\u8fd8\u53ef\u4ee5\u4f7f\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error_log()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\uff0c\u9001\u51fa\u4e00\u4e2a\u7528\u6237\u81ea\u5b9a\u4e49\u7684\u9519\u8bef\u4fe1\u606f\u3002\u8be5\u51fd\u6570\u7684\u539f\u578b\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:x-small;\">bool error_log ( string message [, int message_type [, string destination [, string extra_headers]]] )<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6b64\u51fd\u6570\u4f1a\u9001\u51fa\u9519\u8bef\u4fe1\u606f\u5230<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Web<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\u7684\u9519\u8bef\u65e5\u5fd7\u6587\u4ef6\u3001\u67d0\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">TCP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\u6216\u5230\u6307\u5b9a\u6587\u4ef6\u4e2d\u3002\u8be5\u51fd\u6570\u6267\u884c\u6210\u529f\u5219\u8fd4\u56de<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">TRUE<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u5931\u8d25\u5219\u8fd4\u56de<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">FALSE<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u3002\u7b2c\u4e00\u4e2a\u53c2\u6570<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">message <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u662f\u5fc5\u9009\u9879\uff0c\u5373\u4e3a\u8981\u9001\u51fa\u7684\u9519\u8bef\u4fe1\u606f\u3002\u5982\u679c\u4ec5\u4f7f\u7528\u8fd9\u4e00\u4e2a\u53c2\u6570\uff0c\u4f1a\u6309\u914d\u7f6e\u6587\u4ef6<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">php.ini<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u6240\u8bbe\u7f6e\u7684\u4f4d\u7f6e\u5904\u53d1\u9001\u6d88\u606f\u3002\u7b2c\u4e8c\u4e2a\u53c2\u6570<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">message_type<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e3a\u6574\u6570\u503c\uff1a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">0<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8868\u793a\u9001\u5230\u64cd\u4f5c\u7cfb\u7edf\u7684\u65e5\u5fd7\u4e2d\uff1b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">1<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5219\u4f7f\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Mail()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\uff0c\u53d1\u9001\u4fe1\u606f\u5230\u67d0<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">E-mail<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5904\uff0c\u7b2c\u56db\u4e2a\u53c2\u6570<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">extra_headers<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ea6\u4f1a\u7528\u5230\uff1b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">2<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5219\u5c06\u9519\u8bef\u4fe1\u606f\u9001\u5230<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">TCP <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\u4e2d\uff0c\u6b64\u65f6\u7b2c\u4e09\u4e2a\u53c2\u6570<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">destination<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8868\u793a\u76ee\u7684\u5730<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">IP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ca<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Port<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff1b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">3<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5219\u5c06\u4fe1\u606f\u5b58\u5230\u6587\u4ef6<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">destination<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u3002\u5982\u679c\u4ee5\u767b\u5165<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Oracle<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6570\u636e\u5e93\u51fa\u73b0\u95ee\u9898\u7684\u5904\u7406\u4e3a\u4f8b\uff0c\u8be5\u51fd\u6570\u7684\u4f7f\u7528\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\">&lt;?php<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>if(!Ora_Logon($username, $password)){<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>error_log(\"Oracle<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6570\u636e\u5e93\u4e0d\u53ef\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">!\", 0);<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5c06\u9519\u8bef\u6d88\u606f\u5199\u5165\u5230\u64cd\u4f5c\u7cfb\u7edf\u65e5\u5fd7\u4e2d<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>if(!($foo=allocate_new_foo()){<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>error_log(\"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fa\u73b0\u5927\u9ebb\u70e6\u4e86<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">!\", 1, \"webmaster@www.mydomain.com\");<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53d1\u9001\u5230\u7ba1\u7406\u5458\u90ae\u7bb1\u4e2d<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>error_log(\"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u641e\u7838\u4e86<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">!\",<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>2,<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>\"localhost:5000\");<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53d1\u9001\u5230\u672c\u673a\u5bf9\u5e94<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">5000<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7aef\u53e3\u7684\u670d\u52a1\u5668\u4e2d<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>error_log(\"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u641e\u7838\u4e86<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">!\",<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>3,<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>\"\/usr\/local\/errors.log\"); <span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53d1\u9001\u5230\u6307\u5b9a\u7684\u6587\u4ef6\u4e2d<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-size:x-small;\"><span style=\"font-family:'Times New Roman';\">?&gt;<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:5pt 0cm 3pt;\" class=\"4\"><span lang=\"EN-US\"><span style=\"font-family:Arial;\">2<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\uff0e\u9519\u8bef\u4fe1\u606f\u8bb0\u5f55\u5230\u64cd\u4f5c\u7cfb\u7edf\u7684\u65e5\u5fd7\u91cc<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u9519\u8bef\u62a5\u544a\u4e5f\u53ef\u4ee5\u88ab\u8bb0\u5f55\u5230\u64cd\u4f5c\u7cfb\u7edf\u65e5\u5fd7\u91cc\uff0c\u4f46\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e4b\u95f4\u7684\u65e5\u5fd7\u7ba1\u7406\u6709\u70b9\u533a\u522b\u3002\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Linux<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e0a\u9519\u8bef\u8bed\u53e5\u5c06\u9001\u5f80<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u800c\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Windows<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e0a\u9519\u8bef\u5c06\u53d1\u9001\u5230\u4e8b\u4ef6\u65e5\u5fd7\u91cc\u3002\u5982\u679c\u4f60\u4e0d\u719f\u6089<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u8d77\u7801\u8981\u77e5\u9053\u5b83\u662f\u57fa\u4e8e<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">UNIX<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u65e5\u5fd7\u5de5\u5177\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">API<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6765\u8bb0\u5f55\u4e0e\u7cfb\u7edf\u548c\u5e94\u7528\u7a0b\u5e8f\u6267\u884c\u6709\u5173\u7684\u6d88\u606f\u3002<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Windows<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e8b\u4ef6\u65e5\u5fd7\u5b9e\u9645\u4e0a\u4e0e<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">UNIX<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u76f8\u540c\uff0c\u8fd9\u4e9b\u65e5\u5fd7\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u4e8b\u4ef6\u67e5\u770b\u5668\u6765\u67e5\u770b\u3002\u5982\u679c\u5e0c\u671b\u5c06\u9519\u8bef\u62a5\u544a\u5199\u5230\u64cd\u4f5c\u7cfb\u7edf\u7684\u65e5\u5fd7\u91cc\uff0c\u53ef\u4ee5\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5c06<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error_log<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6307\u4ee4\u7684\u503c\u8bbe\u7f6e\u4e3a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u3002\u5177\u4f53\u9700\u8981\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">php.ini<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u4fee\u6539\u7684\u914d\u7f6e\u6307\u4ee4\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\">error_reporting<span style=\"mso-spacerun:yes;\">&nbsp; <\/span>=<span style=\"mso-spacerun:yes;\">&nbsp; <\/span>E_ALL <span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">;<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5c06\u4f1a\u5411<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u62a5\u544a\u53d1\u751f\u7684\u6bcf\u4e2a\u9519\u8bef<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\">display_errors = Off<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">;<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e0d\u663e\u793a\u6ee1\u8db3\u4e0a\u6761\u6307\u4ee4\u6240\u5b9a\u4e49\u89c4\u5219\u7684\u6240\u6709\u9519\u8bef\u62a5\u544a<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\">log_errors = On<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">;<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51b3\u5b9a\u65e5\u5fd7\u8bed\u53e5\u8bb0\u5f55\u7684\u4f4d\u7f6e<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\">log_errors_max_len = 1024<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">;<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bbe\u7f6e\u6bcf\u4e2a\u65e5\u5fd7\u9879\u7684\u6700\u5927\u957f\u5ea6<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\">error_log = syslog<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">;<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6307\u5b9a\u4ea7\u751f\u7684\u9519\u8bef\u62a5\u544a\u5199\u5165\u64cd\u4f5c\u7cfb\u7edf\u7684\u65e5\u5fd7\u91cc<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u9664\u4e86\u4e00\u822c\u7684\u9519\u8bef\u8f93\u51fa\u4e4b\u5916\uff0c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd8\u5141\u8bb8\u5411\u7cfb\u7edf<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u53d1\u9001\u5b9a\u5236\u7684\u6d88\u606f\u3002\u867d\u7136\u901a\u8fc7\u524d\u9762\u4ecb\u7ecd\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">error_log()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\uff0c\u4e5f\u53ef\u4ee5\u5411<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u53d1\u9001\u5b9a\u5236\u7684\u6d88\u606f\uff0c\u4f46\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u4e3a\u8fd9\u4e2a\u7279\u6027\u63d0\u4f9b\u4e86\u9700\u8981\u4e00\u8d77\u4f7f\u7528\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">4<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2a\u4e13\u7528\u51fd\u6570\u3002\u5206\u522b\u4ecb\u7ecd\u5982\u4e0b\uff1a<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">&nbsp;<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\">\u00d8<span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">define_syslog_variables() <\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728\u4f7f\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">openlog()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u3001<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ca<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">closelog()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e09\u4e2a\u51fd\u6570\u4e4b\u524d\u5fc5\u987b\u5148\u8c03\u7528\u8be5\u51fd\u6570\u3002\u56e0\u4e3a\u5728\u8c03\u7528\u8be5\u51fd\u6570\u65f6\uff0c\u5b83\u4f1a\u6839\u636e\u73b0\u5728\u7684\u7cfb\u7edf\u73af\u5883\u4e3a\u4e0b\u9762\u4e09\u4e2a\u51fd\u6570\u521d\u4f7f\u7528\u5316\u4e00\u4e9b\u5fc5\u9700\u7684\u5e38\u91cf\u3002<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\">\u00d8<span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">openlog()<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6253\u5f00\u4e00\u4e2a\u548c\u5f53\u524d\u7cfb\u7edf\u4e2d\u65e5\u5fd7\u5668\u7684\u8fde\u63a5\uff0c\u4e3a\u5411\u7cfb\u7edf\u63d2\u5165\u65e5\u5fd7\u6d88\u606f\u505a\u597d\u51c6\u5907\u3002\u5e76\u5c06\u63d0\u4f9b\u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26\u4e32\u53c2\u6570\u63d2\u5165\u5230\u6bcf\u4e2a\u65e5\u5fd7\u6d88\u606f\u4e2d\uff0c\u8be5\u51fd\u6570\u8fd8\u9700\u8981\u6307\u5b9a\u4e24\u4e2a\u5c06\u5728\u65e5\u5fd7\u4e0a\u4e0b\u6587\u4f7f\u7528\u7684\u53c2\u6570\uff0c\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u6587\u6863\u4f7f\u7528\u3002<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> <\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\">\u00d8<span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog()<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8be5\u51fd\u6570\u5411\u7cfb\u7edf\u65e5\u5fd7\u4e2d\u53d1\u9001\u4e00\u4e2a\u5b9a\u5236\u6d88\u606f\u3002\u9700\u8981\u4e24\u4e2a\u5fc5\u9009\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u901a\u8fc7\u6307\u5b9a\u4e00\u4e2a\u5e38\u91cf\u5b9a\u5236\u6d88\u606f\u7684\u4f18\u5148\u7ea7\u3002\u4f8b\u5982<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">LOG_WARNING<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8868\u793a\u4e00\u822c\u7684\u8b66\u544a\uff0c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">LOG_EMERG<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8868\u793a\u4e25\u91cd\u5730\u53ef\u4ee5\u9884\u793a\u7740\u7cfb\u7edf\u5d29\u6e83\u7684\u95ee\u9898\uff0c\u4e00\u4e9b\u5176\u4ed6\u7684\u8868\u793a\u4e25\u91cd\u7a0b\u5ea6\u7684\u5e38\u91cf\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u6587\u6863\u4f7f\u7528\u3002\u7b2c\u4e8c\u4e2a\u53c2\u6570\u5219\u662f\u5411\u7cfb\u7edf\u65e5\u5fd7\u4e2d\u53d1\u9001\u7684\u5b9a\u5236\u6d88\u606f\uff0c\u9700\u8981\u63d0\u4f9b\u4e00\u4e2a\u6d88\u606f\u5b57\u7b26\u4e32\uff0c\u4e5f\u53ef\u4ee5\u662f<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5f15\u64ce\u5728\u8fd0\u884c\u65f6\u63d0\u4f9b\u7684\u9519\u8bef\u5b57\u7b26\u4e32\u3002<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\">\u00d8<span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">closelog()<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8be5\u51fd\u6570\u5728\u5411\u7cfb\u7edf\u65e5\u5fd7\u4e2d\u53d1\u9001\u5b8c\u6210\u5b9a\u5236\u6d88\u606f\u4ee5\u540e\u8c03\u7528\uff0c\u5173\u95ed\u7531<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">openlog()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\u6253\u5f00\u7684\u65e5\u5fd7\u8fde\u63a5\u3002<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5982\u679c\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u5df2\u7ecf\u5f00\u542f\u5411<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53d1\u9001\u5b9a\u5236\u6d88\u606f\u7684\u6307\u4ee4\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528\u524d\u9762\u4ecb\u7ecd\u7684\u56db\u4e2a\u51fd\u6570\u53d1\u9001\u4e00\u4e2a\u8b66\u544a\u6d88\u606f\u5230\u7cfb\u7edf\u65e5\u5fd7\u4e2d\uff0c\u5e76\u901a\u8fc7\u7cfb\u7edf\u4e2d\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u89e3\u6790\u5de5\u5177\uff0c\u67e5\u770b\u548c\u5206\u6790\u7531<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7a0b\u5e8f\u53d1\u9001\u7684\u5b9a\u5236\u6d88\u606f\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">&lt;?php<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>define_syslog_variables();<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>openlog(\"PHP5\", LOG_PID , LOG_USER);<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>syslog(LOG_WARNING, \"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8b66\u544a\u62a5\u544a\u5411<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u53d1\u9001\u7684\u6f14\u793a\uff0c\u8b66\u544a\u65f6\u95f4\uff1a<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">\".date(\"Y\/m\/d H:i:s\"));<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>closelog();<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">?&gt;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee5<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Windows<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7cfb\u7edf\u4e3a\u4f8b\uff0c\u901a\u8fc7\u53f3\u51fb\u201c\u6211\u7684\u7535\u8111\u201d\u9009\u62e9\u7ba1\u7406\u9009\u9879\uff0c\u7136\u540e\u5230\u7cfb\u7edf\u5de5\u5177\u83dc\u5355\u4e2d\uff0c\u9009\u62e9\u4e8b\u4ef6\u67e5\u770b\u5668\uff0c\u518d\u627e\u5230\u5e94\u7528\u7a0b\u5e8f\u9009\u9879\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u81ea\u5df1\u5b9a\u5236\u7684\u8b66\u544a\u6d88\u606f\u4e86\u3002\u4e0a\u9762\u8fd9\u6bb5\u4ee3\u7801\u5c06\u5728\u7cfb\u7edf\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6587\u4ef6\u4e2d\uff0c\u751f\u6210\u7c7b\u4f3c\u4e0b\u9762\u7684\u4e00\u6761\u4fe1\u606f\uff0c\u662f\u4e8b\u4ef6\u7684\u4e00\u90e8\u5206\uff1a<\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span style=\"mso-font-kerning:0pt;mso-ansi-language:ZH-CN;\"><span style=\"font-family:'Times New Roman';\">PHP5[3084], <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-font-kerning:0pt;mso-ansi-language:ZH-CN;\">\u8b66\u544a\u62a5\u544a\u5411<\/span><span style=\"mso-font-kerning:0pt;mso-ansi-language:ZH-CN;\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-font-kerning:0pt;mso-ansi-language:ZH-CN;\">\u4e2d<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53d1\u9001\u7684<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-font-kerning:0pt;mso-ansi-language:ZH-CN;\">\u6f14\u793a\uff0c\u8b66\u544a<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u65f6<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-font-kerning:0pt;mso-ansi-language:ZH-CN;\">\u95f4\uff1a<\/span><span style=\"mso-font-kerning:0pt;mso-ansi-language:ZH-CN;\"><span style=\"font-family:'Times New Roman';\">2009\/03\/26 04:09:11.<\/span><\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4f7f\u7528\u6307\u5b9a\u7684\u6587\u4ef6\u8fd8\u662f\u4f7f\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bb0\u5f55\u9519\u8bef\u65e5\u5fd7\uff0c\u53d6\u51b3\u4e8e\u4f60\u6240\u5728\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Web<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\u73af\u5883\u3002\u5982\u679c\u4f60\u53ef\u4ee5\u63a7\u5236<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Web<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u670d\u52a1\u5668\uff0c\u4f7f\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u662f\u6700\u7406\u60f3\u7684\uff0c\u56e0\u4e3a\u4f60\u80fd\u5229\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">syslog<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u89e3\u6790\u5de5\u5177\u6765\u67e5\u770b\u548c\u5206\u6790\u65e5\u5fd7\u3002\u4f46\u5982\u679c\u4f60\u7684\u7f51\u7ad9\u5728\u5171\u4eab\u670d\u52a1\u5668\u7684\u865a\u62df\u4e3b\u673a\u4e2d\u8fd0\u884c\uff0c\u5c31\u53ea\u6709\u4f7f\u7528\u5355\u72ec\u7684\u6587\u672c\u6587\u4ef6\u8bb0\u5f55\u9519\u8bef\u65e5\u5fd7\u4e86\u3002<\/span><\/p>\n<h3 style=\"margin:15pt 0cm 10pt;\"><span style=\"font-family:Arial;\"><span lang=\"EN-US\">10.1.3<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><\/span><span style=\"font-family:\u65b9\u6b63\u51c6\u5706\u7b80\u4f53;mso-ascii-font-family:Arial;\">\u5f02\u5e38\u5904\u7406<\/span><\/span><\/h3>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;font-size:10.5pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-bidi-font-size:12.0pt;mso-font-kerning:1.0pt;mso-bidi-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\">\u5f02\u5e38\uff08<\/span><span style=\"font-family:'Times New Roman';font-size:10.5pt;mso-bidi-font-size:12.0pt;mso-fareast-font-family:\u5b8b\u4f53;mso-font-kerning:1.0pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\" lang=\"EN-US\">Exception<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:10.5pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-bidi-font-size:12.0pt;mso-font-kerning:1.0pt;mso-bidi-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\">\uff09\u5904\u7406\u7528\u4e8e\u5728\u6307\u5b9a\u7684\u9519\u8bef\u53d1\u751f\u65f6\u6539\u53d8\u811a\u672c\u7684\u6b63\u5e38\u6d41\u7a0b\uff0c\u662f<\/span><span style=\"font-family:'Times New Roman';font-size:10.5pt;mso-bidi-font-size:12.0pt;mso-fareast-font-family:\u5b8b\u4f53;mso-font-kerning:1.0pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\" lang=\"EN-US\">PHP 5<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:10.5pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-bidi-font-size:12.0pt;mso-font-kerning:1.0pt;mso-bidi-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\">\u4e2d\u7684\u4e00\u4e2a\u65b0\u7684\u91cd\u8981\u7279\u6027\u3002\u5f02\u5e38\u5904\u7406\u662f\u4e00\u79cd\u53ef\u6269\u5c55\u3001\u6613\u7ef4\u62a4\u7684\u9519\u8bef\u5904\u7406\u7edf\u4e00\u673a\u5236\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e00\u79cd\u65b0\u7684\u9762\u5411\u5bf9\u8c61\u7684\u9519\u8bef\u5904\u7406\u65b9\u5f0f\u3002\u5728<\/span><span style=\"font-family:'Times New Roman';font-size:10.5pt;mso-bidi-font-size:12.0pt;mso-fareast-font-family:\u5b8b\u4f53;mso-font-kerning:1.0pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\" lang=\"EN-US\">Java<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:10.5pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-bidi-font-size:12.0pt;mso-font-kerning:1.0pt;mso-bidi-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\">\u3001<\/span><span style=\"font-family:'Times New Roman';font-size:10.5pt;mso-bidi-font-size:12.0pt;mso-fareast-font-family:\u5b8b\u4f53;mso-font-kerning:1.0pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\" lang=\"EN-US\">C#<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:10.5pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-bidi-font-size:12.0pt;mso-font-kerning:1.0pt;mso-bidi-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\">\u53ca<\/span><span style=\"font-family:'Times New Roman';font-size:10.5pt;mso-bidi-font-size:12.0pt;mso-fareast-font-family:\u5b8b\u4f53;mso-font-kerning:1.0pt;mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\" lang=\"EN-US\">Python<\/span><span style=\"font-family:\u5b8b\u4f53;font-size:10.5pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';mso-bidi-font-size:12.0pt;mso-font-kerning:1.0pt;mso-bidi-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:ZH-CN;mso-bidi-language:AR-SA;\">\u7b49<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bed\u8a00\u4e2d\u5f88\u65e9\u5c31\u63d0\u4f9b\u4e86\u8fd9\u79cd\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u5982\u679c\u4f60\u5bf9\u54ea\u4e00\u79cd\u8bed\u8a00\u4e2d\u7684\u5f02\u5e38\u5904\u7406\u719f\u6089\uff0c\u90a3\u5bf9<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u63d0\u4f9b\u7684\u5f02\u5e38\u5904\u7406\u673a\u5236\u4e5f\u4e0d\u4f1a\u964c\u751f\u3002<\/span><\/p>\n<p style=\"margin:5pt 0cm 3pt;\" class=\"4\"><span lang=\"EN-US\"><span style=\"font-family:Arial;\">1<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\uff0e\u5f02\u5e38\u5904\u7406\u5b9e\u73b0<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5f02\u5e38\u5904\u7406\u548c\u7f16\u5199\u7a0b\u5e8f\u7684\u6d41\u7a0b\u63a7\u5236\u76f8\u4f3c\uff0c\u6240\u4ee5\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5f02\u5e38\u5904\u7406\u5b9e\u73b0\u4e00\u79cd\u53e6\u7c7b\u7684\u6761\u4ef6\u9009\u62e9\u7ed3\u6784\u3002\u5f02\u5e38\u5c31\u662f\u5728\u7a0b\u5e8f\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684\u4e00\u4e9b\u610f\u6599\u4e4b\u5916\u7684\u4e8b\u4ef6\uff0c\u5982\u679c\u4e0d\u5bf9\u6b64\u4e8b\u4ef6\u8fdb\u884c\u5904\u7406\uff0c\u5219\u7a0b\u5e8f\u5728\u6267\u884c\u65f6\u9047\u5230\u5f02\u5e38\u5c06\u5d29\u6e83\u3002\u5904\u7406\u5f02\u5e38\u9700\u8981\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u4e2d\u4f7f\u7528\u4ee5\u4e0b\u8bed\u53e5\uff1a<\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\">try {<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6240\u6709\u9700\u8981\u8fdb\u884c\u5f02\u5e38\u5904\u7406\u7684\u4ee3\u7801\u90fd\u5fc5\u987b\u653e\u5165\u8fd9\u4e2a\u4ee3\u7801\u5757\u5185<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>\u2026 \u2026<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728\u8fd9\u91cc\u53ef\u4ee5\u4f7f\u7528<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">throw<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bed\u53e5\u629b\u51fa\u4e00\u4e2a\u5f02\u5e38\u5bf9\u8c61<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\">}catch(ex1) {<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4f7f\u7528\u8be5\u4ee3\u7801\u5757\u6355\u83b7\u4e00\u4e2a\u5f02\u5e38\uff0c\u5e76\u8fdb\u884c\u5904\u7406<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>\u2026 \u2026<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5904\u7406\u53d1\u751f\u7684\u5f02\u5e38\uff0c\u4e5f\u53ef\u518d\u6b21\u629b\u51fa\u5f02\u5e38<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\">}<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u4e2d\u6240\u4ea7\u751f\u7684\u5f02\u5e38\u53ef\u4ee5\u88ab<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">throw<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bed\u53e5\u629b\u51fa\u5e76\u88ab<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bed\u53e5\u6355\u83b7\u3002\u9700\u8981\u8fdb\u884c\u5f02\u5e38\u5904\u7406\u7684\u4ee3\u7801\u90fd\u5fc5\u987b\u653e\u5165<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u5185\uff0c\u4ee5\u4fbf\u6355\u83b7\u53ef\u80fd\u5b58\u5728\u7684\u5f02\u5e38\u3002\u6bcf\u4e00\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u81f3\u5c11\u8981\u6709\u4e00\u4e2a\u4e0e\u4e4b\u5bf9\u5e94\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u4e5f\u4e0d\u80fd\u51fa\u73b0\u5355\u72ec\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u53e6\u5916<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u548c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">cache<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e4b\u95f4\u4e5f\u4e0d\u80fd\u6709\u4efb\u4f55\u7684\u4ee3\u7801\u51fa\u73b0\u3002\u4e00\u4e2a\u5f02\u5e38\u5904\u7406\u7684\u7b80\u5355\u5b9e\u4f8b\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">&lt;?php<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>try {<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>$error = 'Always throw this error';<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>throw new Exception($error);<\/span><span lang=\"EN-US\"> <span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u521b\u5efa\u4e00\u4e2a\u5f02\u5e38\u5bf9\u8c61\uff0c\u901a\u8fc7<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">throw<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bed\u53e5\u629b\u51fa<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo 'Never executed';<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ece\u8fd9\u91cc\u5f00\u59cb\uff0c<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u5185\u7684\u4ee3\u7801\u5c06\u4e0d\u4f1a\u518d\u88ab\u6267\u884c<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>} catch (Exception $e) {<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo 'Caught exception: ',<span style=\"mso-spacerun:yes;\">&nbsp; <\/span>$e-&gt;getMessage(), \"\\n\";<span style=\"mso-spacerun:yes;\">&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8f93\u51fa\u6355\u83b7\u7684\u5f02\u5e38\u6d88\u606f<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo 'Hello World';<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"font-size:9pt;\" lang=\"EN-US\">\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7a0b\u5e8f\u6ca1\u6709\u5d29\u6e83\u7ee7\u7eed\u5411\u4e0b\u6267\u884c<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:9pt;\" lang=\"EN-US\">?&gt;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u5982\u679c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e2d\u51fa\u73b0\u67d0\u4e9b\u9519\u8bef\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u6267\u884c\u4e00\u4e2a\u629b\u51fa\u5f02\u5e38\u7684\u64cd\u4f5c\u3002\u5728\u67d0\u4e9b\u7f16\u7a0b\u8bed\u8a00\u4e2d\uff0c\u4f8b\u5982<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Java<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u5728\u51fa\u73b0\u5f02\u5e38\u65f6\u5c06\u81ea\u52a8\u629b\u51fa\u5f02\u5e38\u3002\u800c\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\uff0c\u5f02\u5e38\u5fc5\u987b\u624b\u52a8\u629b\u51fa\u3002<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">throw<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5173\u952e\u5b57\u5c06\u89e6\u53d1\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u5b83\u662f\u4e00\u4e2a\u8bed\u8a00\u7ed3\u6784\uff0c\u800c\u4e0d\u662f\u4e00\u4e2a\u51fd\u6570\uff0c\u4f46\u5fc5\u987b\u7ed9\u5b83\u4f20\u9012\u4e00\u4e2a\u5bf9\u8c61\u4f5c\u4e3a\u503c\u3002\u5728\u6700\u7b80\u5355\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5b9e\u4f8b\u5316\u4e00\u4e2a\u5185\u7f6e\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Exception<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7c7b\uff0c\u5c31\u50cf\u4ee5\u4e0a\u4ee3\u7801\u6240\u793a\u90a3\u6837\u3002\u5982\u679c\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bed\u53e5\u4e2d\u6709\u5f02\u5e38\u5bf9\u8c61\u88ab\u629b\u51fa\uff0c\u8be5\u4ee3\u7801\u5757\u4e0d\u4f1a\u518d\u7ee7\u7eed\u5411\u4e0b\u6267\u884c\uff0c\u800c\u76f4\u63a5\u8df3\u8f6c\u5230<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u6267\u884c\u3002\u5e76\u4f20\u9012\u7ed9<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e00\u4e2a\u5bf9\u8c61\uff0c\u4e5f\u53ef\u4ee5\u7406\u89e3\u4e3a\u88ab<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u6355\u83b7\u7684\u5bf9\u8c61\uff0c\u5176\u5b9e\u5c31\u662f\u5bfc\u81f4\u5f02\u5e38\u88ab<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">throw<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bed\u53e5\u629b\u51fa\u7684\u5bf9\u8c61\u3002\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e2d\u53ef\u4ee5\u7b80\u5355\u7684\u8f93\u51fa\u4e00\u4e9b\u5f02\u5e38\u7684\u539f\u56e0\uff0c\u4e5f\u53ef\u4ee5\u662f<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e2d\u4efb\u52a1\u7684\u53e6\u4e00\u4e2a\u7248\u672c\u89e3\u51b3\u65b9\u6848\uff0c\u6b64\u5916\uff0c\u4e5f\u53ef\u4ee5\u5728\u8fd9\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e2d\u4ea7\u751f\u65b0\u7684\u5f02\u5e38\u3002\u6700\u91cd\u8981\u7684\u662f\uff0c\u5728\u5f02\u5e38\u5904\u7406\u4e4b\u540e\uff0c\u7a0b\u5e8f\u4e0d\u4f1a\u5d29\u6e83\uff0c\u800c\u4f1a\u7ee7\u7eed\u6267\u884c\u3002<\/span><\/p>\n<p style=\"margin:5pt 0cm 3pt;\" class=\"4\"><span lang=\"EN-US\"><span style=\"font-family:Arial;\">2<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\uff0e\u6269\u5c55<\/span><span lang=\"EN-US\"><span style=\"font-family:Arial;\">PHP<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\u5185\u7f6e\u7684\u5f02\u5e38\u5904\u7406\u7c7b<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e2d\uff0c\u9700\u8981\u4f7f\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">throw<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bed\u53e5\u629b\u51fa\u4e00\u4e2a\u5f02\u5e38\u5bf9\u8c61\uff0c\u624d\u80fd\u8df3\u8f6c\u5230<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e2d\u6267\u884c\uff0c\u5e76\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e2d\u6355\u83b7\u5e76\u4f7f\u7528\u8fd9\u4e2a\u5f02\u5e38\u7c7b\u7684\u5bf9\u8c61\u3002\u867d\u7136\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u63d0\u4f9b\u7684\u5185\u7f6e\u5f02\u5e38\u5904\u7406\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Exception<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u5df2\u7ecf\u5177\u6709\u975e\u5e38\u4e0d\u9519\u7684\u7279\u6027\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u8fd8\u8981\u6269\u5c55\u8fd9\u4e2a\u7c7b\u6765\u5f97\u5230\u66f4\u591a\u7684\u529f\u80fd\u3002\u6240\u4ee5\u7528\u6237\u53ef\u4ee5\u7528\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u5904\u7406\u7c7b\u6765\u6269\u5c55<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5185\u7f6e\u7684\u5f02\u5e38\u5904\u7406\u7c7b\u3002\u4ee5\u4e0b\u7684\u4ee3\u7801\u8bf4\u660e\u4e86\u5728\u5185\u7f6e\u7684\u5f02\u5e38\u5904\u7406\u7c7b\u4e2d\uff0c\u54ea\u4e9b\u5c5e\u6027\u548c\u65b9\u6cd5\u5728\u5b50\u7c7b\u4e2d\u662f\u53ef\u8bbf\u95ee\u548c\u53ef\u7ee7\u627f\u7684\uff1a<\/span><\/p>\n<p style=\"margin:auto 0cm;\" class=\"0402\"><span style=\"font-size:x-small;\"><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\u5185\u7f6e\u7684\u5f02\u5e38\u5904\u7406\u7c7b\uff08<\/span><span lang=\"EN-US\"><span style=\"font-family:Arial;\">Exception<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\uff09<\/span><\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:x-small;\">&lt;?php<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>class Exception {<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>protected $message = 'Unknown exception';<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5f02\u5e38\u4fe1\u606f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>protected $code = 0;<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7528\u6237\u81ea\u5b9a\u4e49\u5f02\u5e38\u4ee3\u7801<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>protected $file;<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53d1\u751f\u5f02\u5e38\u7684\u6587\u4ef6\u540d<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>protected $line;<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53d1\u751f\u5f02\u5e38\u7684\u4ee3\u7801\u884c\u53f7<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\">&nbsp;<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>function __construct($message = null, $code = 0){}<span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6784\u9020\u65b9\u6cd5<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\">&nbsp;<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>final function getMessage(){}<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd4\u56de\u5f02\u5e38\u4fe1\u606f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>final function getCode(){}<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd4\u56de\u5f02\u5e38\u4ee3\u7801<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>final function getFile(){}<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd4\u56de\u53d1\u751f\u5f02\u5e38\u7684\u6587\u4ef6\u540d<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;<\/span>final function getLine(){}<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd4\u56de\u53d1\u751f\u5f02\u5e38\u7684\u4ee3\u7801\u884c\u53f7<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;<\/span>final function getTrace(){}<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/backtrace() <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6570\u7ec4<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;<\/span>final function getTraceAsString(){}<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5df2\u683c\u6210\u5316\u6210\u5b57\u7b26\u4e32\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> getTrace() <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4fe1\u606f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\">&nbsp;<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>\/* <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ef\u91cd\u8f7d\u7684\u65b9\u6cd5<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> *\/<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>function __toString(){}<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ef\u8f93\u51fa\u7684\u5b57\u7b26\u4e32<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-size:x-small;\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span style=\"font-family:'Times New Roman';\"><span lang=\"EN-US\">?&gt;<\/span><\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e0a\u9762\u8fd9\u6bb5\u4ee3\u7801\u53ea\u4e3a\u8bf4\u660e\u5185\u7f6e\u5f02\u5e38\u5904\u7406\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Exception<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u7ed3\u6784\uff0c\u5b83\u5e76\u4e0d\u662f\u4e00\u6bb5\u6709\u5b9e\u9645\u610f\u4e49\u7684\u53ef\u7528\u4ee3\u7801\u3002\u5982\u679c\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u7c7b\u4f5c\u4e3a\u5f02\u5e38\u5904\u7406\u7c7b\uff0c\u5219\u5fc5\u987b\u662f\u6269\u5c55\u5185\u7f6e\u5f02\u5e38\u5904\u7406\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Exception<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u5b50\u7c7b\uff0c\u975e<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Exception<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7c7b\u7684\u5b50\u7c7b\u662f\u4e0d\u80fd\u4f5c\u4e3a\u5f02\u5e38\u5904\u7406\u7c7b\u4f7f\u7528\u7684\u3002\u5982\u679c\u5728\u6269\u5c55\u5185\u7f6e\u5904\u7406\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Exception<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u65f6\u91cd\u65b0\u5b9a\u4e49\u6784\u9020\u51fd\u6570\u7684\u8bdd\uff0c\u5efa\u8bae\u540c\u65f6\u8c03\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">parent::construct()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6765\u68c0\u67e5\u6240\u6709\u7684\u53d8\u91cf\u662f\u5426\u5df2\u88ab\u8d4b\u503c\u3002\u5f53\u5bf9\u8c61\u8981\u8f93\u51fa\u5b57\u7b26\u4e32\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u91cd\u8f7d<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">__toString()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5e76\u81ea\u5b9a\u4e49\u8f93\u51fa\u7684\u6837\u5f0f\u3002\u53ef\u4ee5\u5728\u81ea\u5b9a\u4e49\u7684\u5b50\u7c7b\u4e2d\uff0c\u76f4\u63a5\u4f7f\u7528\u5185\u7f6e\u5f02\u5e38\u5904\u7406<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Exception<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7c7b\u4e2d\u7684\u6240\u6709\u6210\u5458\u5c5e\u6027\uff0c\u4f46\u4e0d\u80fd\u91cd\u65b0\u6539\u5199\u4ece\u8be5\u7236\u7c7b\u4e2d\u7ee7\u627f\u8fc7\u6765\u7684\u6210\u5458\u65b9\u6cd5\uff0c\u56e0\u4e3a\u8be5\u7c7b\u7684\u5927\u591a\u6570\u516c\u6709\u65b9\u6cd5\u90fd\u662f<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">final<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u3002<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u5904\u7406\u7a0b\u5e8f\u975e\u5e38\u7b80\u5355\uff0c\u548c\u4f20\u7edf\u7c7b\u7684\u58f0\u660e\u65b9\u5f0f\u76f8\u540c\uff0c\u4f46\u8be5\u7c7b\u5fc5\u987b\u662f\u5185\u7f6e\u5f02\u5e38\u5904\u7406\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Exception<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u4e00\u4e2a\u6269\u5c55\u3002\u5f53<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u53d1\u751f\u5f02\u5e38\u65f6\uff0c\u53ef\u8c03\u7528\u81ea\u5b9a\u4e49\u5f02\u5e38\u7c7b\u4e2d\u7684\u65b9\u6cd5\u8fdb\u884c\u5904\u7406\u3002\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">MyException<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7c7b\uff0c\u7ee7\u627f\u4e86\u5185\u7f6e\u5f02\u5e38\u5904\u7406\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Exception<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u7684\u6240\u6709\u5c5e\u6027\uff0c\u5e76\u5411\u5176\u6dfb\u52a0\u4e86\u81ea\u5b9a\u4e49\u7684\u65b9\u6cd5\u3002\u4ee3\u7801\u53ca\u5e94\u7528\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<p style=\"margin:auto 0cm;\" class=\"0402\"><span style=\"font-size:x-small;\"><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\u6269\u5c55<\/span><span lang=\"EN-US\"><span style=\"font-family:Arial;\">PHP<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\u5185\u7f6e\u7684\u5f02\u5e38\u5904\u7406\u7c7b\u7684\u5e94\u7528<\/span><\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:x-small;\">&lt;?php<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/* <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u81ea\u5b9a\u4e49\u7684\u4e00\u4e2a\u5f02\u5e38\u5904\u7406\u7c7b\uff0c\u4f46\u5fc5\u987b\u662f\u6269\u5c55\u5185\u5f02\u5e38\u5904\u7406\u7c7b\u7684\u5b50\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> *\/<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>class MyException extends Exception{<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u91cd\u5b9a\u4e49\u6784\u9020\u5668\u4f7f\u7b2c\u4e00\u4e2a\u53c2\u6570<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> message <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53d8\u4e3a\u5fc5\u987b\u88ab\u6307\u5b9a\u7684\u5c5e\u6027<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>public function __construct($message, $code=0){<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ef\u4ee5\u5728\u8fd9\u91cc\u5b9a\u4e49\u4e00\u4e9b\u81ea\u5df1\u7684\u4ee3\u7801<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5efa\u8bae\u540c\u65f6\u8c03\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> parent::construct()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6765\u68c0\u67e5\u6240\u6709\u7684\u53d8\u91cf\u662f\u5426\u5df2\u88ab\u8d4b\u503c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>parent::__construct($message, $code);<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"mso-tab-count:2;\"><span style=\"font-family:'Times New Roman';font-size:x-small;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>public function __toString() {<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u91cd\u5199\u7236\u7c7b\u65b9\u6cd5\uff0c\u81ea\u5b9a\u4e49\u5b57\u7b26\u4e32\u8f93\u51fa\u7684\u6837\u5f0f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>return __CLASS__.\":[\".$this-&gt;code.\"]:\".$this-&gt;message.\"&lt;br&gt;\";<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"mso-tab-count:2;\"><span style=\"font-family:'Times New Roman';font-size:x-small;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>public function customFunction() { <span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e3a\u8fd9\u4e2a\u5f02\u5e38\u81ea\u5b9a\u4e49\u4e00\u4e2a\u5904\u7406\u65b9\u6cd5<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6309\u81ea\u5b9a\u4e49\u7684\u65b9\u6cd5\u5904\u7406\u51fa\u73b0\u7684\u8fd9\u4e2a\u7c7b\u578b\u7684\u5f02\u5e38<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">&lt;br&gt;\";<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\"><span style=\"font-family:'Times New Roman';font-size:x-small;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>try {<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u7c7b\u6355\u83b7\u4e00\u4e2a\u5f02\u5e38\uff0c\u5e76\u5904\u7406\u5f02\u5e38<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>$error = '<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5141\u8bb8\u629b\u51fa\u8fd9\u4e2a\u9519\u8bef<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">';<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>throw new MyException($error);<span style=\"mso-spacerun:yes;\">&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u7c7b\u5bf9\u8c61\uff0c\u901a\u8fc7<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">throw<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8bed\u53e5\u629b\u51fa<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo 'Never executed';<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;<\/span><span style=\"mso-spacerun:yes;\">&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ece\u8fd9\u91cc\u5f00\u59cb\uff0c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u5185\u7684\u4ee3\u7801\u5c06\u4e0d\u4f1a\u518d\u88ab\u6267\u884c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>} catch (MyException $e) {<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6355\u83b7\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u5bf9\u8c61<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo '<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6355\u83b7\u5f02\u5e38<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">: '.$e;<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8f93\u51fa\u6355\u83b7\u7684\u5f02\u5e38\u6d88\u606f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>$e-&gt;customFunction();<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u901a\u8fc7\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u5bf9\u8c61\u4e2d\u7684\u65b9\u6cd5\u5904\u7406\u5f02\u5e38<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo '<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4f60\u597d\u5440<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">';<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7a0b\u5e8f\u6ca1\u6709\u5d29\u6e83\u7ee7\u7eed\u5411\u4e0b\u6267\u884c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span style=\"font-family:'Times New Roman';\"><span lang=\"EN-US\">?&gt;<\/span><\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728\u81ea\u5b9a\u4e49\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">MyException<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7c7b\u4e2d\uff0c\u4f7f\u7528\u7236\u7c7b\u4e2d\u7684\u6784\u9020\u65b9\u6cd5\u68c0\u67e5\u6240\u6709\u7684\u53d8\u91cf\u662f\u5426\u5df2\u88ab\u8d4b\u503c\u3002\u800c\u4e14\u91cd\u8f7d\u4e86\u7236\u7c7b\u4e2d\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">__toString()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u65b9\u6cd5\uff0c\u8f93\u51fa\u81ea\u5df1\u5b9a\u5236\u6355\u83b7\u7684\u5f02\u5e38\u6d88\u606f\u3002\u81ea\u5b9a\u4e49\u548c\u5185\u7f6e\u7684\u5f02\u5e38\u5904\u7406\u7c7b\uff0c\u5728\u4f7f\u7528\u4e0a\u6ca1\u6709\u591a\u5927\u533a\u522b\uff0c\u53ea\u4e0d\u8fc7\u5728\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u5904\u7406\u7c7b\u4e2d\uff0c\u53ef\u4ee5\u8c03\u7528\u4e3a\u5177\u4f53\u7684\u5f02\u5e38\u4e13\u95e8\u7f16\u5199\u7684\u5904\u7406\u65b9\u6cd5\u3002<\/span><\/p>\n<p style=\"margin:5pt 0cm 3pt;\" class=\"4\"><span lang=\"EN-US\"><span style=\"font-family:Arial;\">3<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\uff0e\u6355\u83b7\u591a\u4e2a\u5f02\u5e38<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e4b\u540e\uff0c\u5fc5\u987b\u81f3\u5c11\u7ed9\u51fa\u4e00\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\uff0c\u4e5f\u53ef\u4ee5\u5c06\u591a\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e0e\u4e00\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u8fdb\u884c\u5173\u8054\u3002\u5982\u679c\u6bcf\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u53ef\u4ee5\u6355\u83b7\u4e00\u4e2a\u4e0d\u540c\u7c7b\u578b\u7684\u5f02\u5e38\uff0c\u90a3\u4e48\u4f7f\u7528\u591a\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5c31\u53ef\u4ee5\u6355\u83b7\u4e0d\u540c\u7684\u7c7b\u6240\u4ea7\u751f\u7684\u5f02\u5e38\u3002\u5f53\u4ea7\u751f\u4e00\u4e2a\u5f02\u5e38\u65f6\uff0c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5c06\u67e5\u8be2\u4e00\u4e2a\u5339\u914d\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u3002\u5982\u679c\u6709\u591a\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\uff0c\u4f20\u9012\u7ed9\u6bcf\u4e00\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u7684\u5bf9\u8c61\u5fc5\u987b\u5177\u6709\u4e0d\u540c\u7684\u7c7b\u578b\uff0c\u8fd9\u6837<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ef\u4ee5\u627e\u5230\u9700\u8981\u8fdb\u5165\u54ea\u4e00\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u3002\u5f53<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5757\u4e0d\u518d\u629b\u51fa\u5f02\u5e38\u6216\u8005\u627e\u4e0d\u5230<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u80fd\u5339\u914d\u6240\u629b\u51fa\u7684\u5f02\u5e38\u65f6\uff0c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4ee3\u7801\u5c31\u4f1a\u5728\u8df3\u8f6c\u5230\u6700\u540e\u4e00\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> catch <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u540e\u9762\u7ee7\u7eed\u6267\u884c\u3002\u591a\u4e2a\u5f02\u5e38\u7684\u6355\u83b7\u7684\u793a\u4f8b\u5982\u4e0b\uff1a<\/span><\/p>\n<p style=\"margin:auto 0cm;\" class=\"0402\"><span style=\"font-size:x-small;\"><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\u5185\u7f6e\u7684\u5f02\u5e38\u5904\u7406\u7c7b\uff08<\/span><span lang=\"EN-US\"><span style=\"font-family:Arial;\">Exception<\/span><\/span><span style=\"font-family:\u9ed1\u4f53;mso-ascii-font-family:Arial;\">\uff09<\/span><\/span><\/p>\n<p>&lt;DIV align=center&gt;<\/p>\n<table style=\"width:467.8pt;border-collapse:collapse;background:#e6e6e6;mso-padding-alt:0cm 5.4pt 0cm 5.4pt;\" bgcolor=\"#e6e6e6\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"624\">\n<tbody>\n<tr>\n<td style=\"border-bottom:#ece9d8;border-left:#ece9d8;padding-bottom:0cm;background-color:transparent;padding-left:5.4pt;width:467.8pt;padding-right:5.4pt;border-top:#ece9d8;border-right:#ece9d8;padding-top:0cm;\" valign=\"top\" width=\"624\">\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';font-size:x-small;\">&lt;?php<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/* <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u81ea\u5b9a\u4e49\u7684\u4e00\u4e2a\u5f02\u5e38\u5904\u7406\u7c7b\uff0c\u4f46\u5fc5\u987b\u662f\u6269\u5c55\u5185\u5f02\u5e38\u5904\u7406\u7c7b\u7684\u5b50\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> *\/<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>class MyException extends Exception{<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u91cd\u5b9a\u4e49\u6784\u9020\u5668\u4f7f\u7b2c\u4e00\u4e2a\u53c2\u6570<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> message <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53d8\u4e3a\u5fc5\u987b\u88ab\u6307\u5b9a\u7684\u5c5e\u6027<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>public function __construct($message, $code=0){<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ef\u4ee5\u5728\u8fd9\u91cc\u5b9a\u4e49\u4e00\u4e9b\u81ea\u5df1\u7684\u4ee3\u7801<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5efa\u8bae\u540c\u65f6\u8c03\u7528<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> parent::construct()<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6765\u68c0\u67e5\u6240\u6709\u7684\u53d8\u91cf\u662f\u5426\u5df2\u88ab\u8d4b\u503c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>parent::__construct($message, $code);<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u91cd\u5199\u7236\u7c7b\u4e2d\u7ee7\u627f\u8fc7\u6765\u7684\u65b9\u6cd5\uff0c\u81ea\u5b9a\u4e49\u5b57\u7b26\u4e32\u8f93\u51fa\u7684\u6837\u5f0f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-size:x-small;\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>public function __toString() {<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>return __CLASS__.\":[\".$this-&gt;code.\"]:\".$this-&gt;message.\"&lt;br&gt;\";<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\">&nbsp;<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e3a\u8fd9\u4e2a\u5f02\u5e38\u81ea\u5b9a\u4e49\u4e00\u4e2a\u5904\u7406\u65b9\u6cd5<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>public function customFunction() {<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6309\u81ea\u5b9a\u4e49\u7684\u65b9\u6cd5\u5904\u7406\u51fa\u73b0\u7684\u8fd9\u4e2a\u7c7b\u578b\u7684\u5f02\u5e38<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">\";<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"mso-tab-count:1;\"><span style=\"font-family:'Times New Roman';font-size:x-small;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/* <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u6d4b\u8bd5\u81ea\u5b9a\u4e49\u6269\u5c55\u7684\u5f02\u5e38\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">MyException *\/<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>class TestException {<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>public $var;<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e00\u4e2a\u6210\u5458\u5c5e\u6027\uff0c\u7528\u6765\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u521b\u5efa\u6210\u529f\u88ab\u521d\u59cb\u5316<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\">&nbsp;<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>function __construct($value=0) {<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u901a\u8fc7\u6784\u9020\u65b9\u6cd5\u7684\u4f20\u503c\u51b3\u5b9a\u629b\u51fa\u7684\u5f02\u5e38<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>switch($value){<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5bf9\u4f20\u5165\u7684\u503c\u8fdb\u884c\u9009\u62e9\u6027\u7684\u5224\u65ad<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:4;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>case 1:<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5982\u679c\u4f20\u5165\u7684\u53c2\u6570\u503c\u4e3a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">1<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u5219\u629b\u51fa\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u5bf9\u8c61<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:5;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>throw new MyException(\"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4f20\u5165\u7684\u503c\u201c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">1<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u201d<\/span><span style=\"font-family:'Times New Roman';\"> <\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u662f\u4e00\u4e2a\u65e0\u6548\u7684\u53c2\u6570<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">\", 5);<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:5;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>break;<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:4;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>case 2:<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5982\u679c\u4f20\u5165\u7684\u53c2\u6570\u503c\u4e3a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">2<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u5219\u629b\u51fa<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5185\u7f6e\u7684\u5f02\u5e38\u5bf9\u8c61<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:5;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>throw new Exception(\"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4f20\u5165\u7684\u503c\u201c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">2<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u201d\u4e0d\u5141\u8bb8\u4f5c\u4e3a\u4e00\u4e2a\u53c2\u6570<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">\", 6);<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:5;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>break;<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:4;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>default:<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5982\u679c\u4f20\u5165\u7684\u53c2\u6570\u503c\u5408\u6cd5\uff0c\u5219\u4e0d\u629b\u51fa\u5f02\u5e38\u521b\u5efa\u5bf9\u8c61\u6210\u529f<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"> <\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:5;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>$this-&gt;var=$value; <span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e3a\u5bf9\u8c61\u4e2d\u7684\u6210\u5458\u5c5e\u6027\u8d4b\u503c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:5;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>break;<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:3;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u793a\u4f8b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">1<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u5728\u6ca1\u6709\u5f02\u5e38\u65f6\uff0c\u7a0b\u5e8f\u6b63\u5e38\u6267\u884c\uff0c<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u7684\u4ee3\u7801\u5168\u90e8\u6267\u884c\u5e76\u4e0d\u4f1a\u6267\u884c\u4efb\u4f55<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u533a\u5757<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>try{<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>$testObj=new TestException();<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4f7f\u7528\u9ed8\u8ba4\u53c2\u6570\u521b\u5efa\u5f02\u5e38\u7684\u6d4b\u8bd5\u7c7b\u5bf9\u8c61<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"***********&lt;br&gt;\";<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6ca1\u6709\u629b\u51fa\u5f02\u5e38\u8fd9\u6761\u8bed\u53e5\u5c31\u4f1a\u6b63\u5e38\u6267\u884c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}catch(MyException $e){<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6355\u83b7\u7528\u6237\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u533a\u5757<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6355\u83b7\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\uff1a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">$e &lt;br&gt;\";<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6309\u81ea\u5b9a\u4e49\u7684\u65b9\u5f0f\u8f93\u51fa\u5f02\u5e38\u6d88\u606f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>$e-&gt;customFunction();<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u53ef\u4ee5\u8c03\u7528\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u5904\u7406\u65b9\u6cd5<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}catch(Exception $e) {<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6355\u83b7<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5185\u7f6e\u7684\u5f02\u5e38\u5904\u7406\u7c7b\u7684\u5bf9\u8c61<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6355\u83b7\u9ed8\u8ba4\u7684\u5f02\u5e38\uff1a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">\".$e-&gt;getMessage().\"&lt;br&gt;\";<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8f93\u51fa\u5f02\u5e38\u6d88\u606f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>} <span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>var_dump($testObj);<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u521b\u5efa\u6210\u529f\uff0c\u5982\u679c\u6ca1\u6709\u4efb\u4f55\u5f02\u5e38\uff0c\u5219\u521b\u5efa\u6210\u529f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\">&nbsp;<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u793a\u4f8b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">2<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u629b\u51fa\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\uff0c\u5e76\u901a\u8fc7\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u5904\u7406\u7c7b\u6355\u83b7\u8fd9\u4e2a\u5f02\u5e38\u5e76\u5904\u7406<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>try{<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>$testObj1=new TestException(1);<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4f20\u5165\u53c2\u6570<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">1<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u65f6\uff0c\u521b\u5efa\u6d4b\u8bd5\u7c7b\u5bf9\u8c61\u629b\u51fa\u81ea\u5b9a\u4e49\u5f02\u5e38<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"***********&lt;br&gt;\";<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd9\u4e2a\u8bed\u53e5\u4e0d\u4f1a\u88ab\u6267\u884c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}catch(MyException $e){<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd9\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u533a\u5757\u4e2d\u7684\u4ee3\u7801\u5c06\u88ab\u6267\u884c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6355\u83b7\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\uff1a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">$e &lt;br&gt;\";<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>$e-&gt;customFunction();<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}catch(Exception $e) {<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd9\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u533a\u5757\u4e0d\u4f1a\u6267\u884c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6355\u83b7\u9ed8\u8ba4\u7684\u5f02\u5e38\uff1a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">\".$e-&gt;getMessage().\"&lt;br&gt;\";<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>} <span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>var_dump($testObj1);<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6709\u5f02\u5e38\u4ea7\u751f\uff0c\u8fd9\u4e2a\u5bf9\u8c61\u6ca1\u6709\u521b\u5efa\u6210\u529f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-size:x-small;\"><span style=\"font-family:'Times New Roman';\">&nbsp;<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"MsoNormal\"><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u793a\u4f8b<\/span><span style=\"font-size:9pt;\" lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">2<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;font-size:9pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff0c\u629b\u51fa\u5185\u7f6e\u7684\u5f02\u5e38\uff0c\u5e76\u901a\u8fc7\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u5904\u7406\u7c7b\u6355\u83b7\u8fd9\u4e2a\u5f02\u5e38\u5e76\u5904\u7406<\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>try{<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>$testObj2=new TestException(2);<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4f20\u5165\u53c2\u6570<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">2<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u65f6\uff0c\u521b\u5efa\u6d4b\u8bd5\u7c7b\u5bf9\u8c61\u629b\u51fa\u5185\u7f6e\u5f02\u5e38<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"***********&lt;br&gt;\";<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd9\u4e2a\u8bed\u53e5\u4e0d\u4f1a\u88ab\u6267\u884c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}catch(MyException $e){<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd9\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u533a\u5757\u4e0d\u4f1a\u6267\u884c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6355\u83b7\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\uff1a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">$e &lt;br&gt;\";<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>$e-&gt;customFunction();<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>}catch(Exception $e) {<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd9\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u533a\u5757\u4e2d\u7684\u4ee3\u7801\u5c06\u88ab\u6267\u884c<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:2;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>echo \"<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6355\u83b7\u9ed8\u8ba4\u7684\u5f02\u5e38\uff1a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">\".$e-&gt;getMessage().\"&lt;br&gt;\";<\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"font-size:x-small;\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>} <span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\"><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>var_dump($testObj2);<span style=\"mso-spacerun:yes;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"mso-tab-count:1;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>\/\/<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u6709\u5f02\u5e38\u4ea7\u751f\uff0c\u8fd9\u4e2a\u5bf9\u8c61\u6ca1\u6709\u521b\u5efa\u6210\u529f<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"3\"><span style=\"font-size:x-small;\"><span style=\"font-family:'Times New Roman';\"><span lang=\"EN-US\">?&gt;<\/span><\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;\/DIV&gt;<\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5728\u4e0a\u9762\u4ee3\u7801\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e24\u4e2a\u5f02\u5e38\u5904\u7406\u7c7b\uff1a\u4e00\u4e2a\u662f\u81ea\u5b9a\u4e49\u7684\u5f02\u5e38\u5904\u7406\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">MyException<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\uff1b\u53e6\u4e00\u4e2a\u5219\u662f<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">PHP<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4e2d\u5185\u7f6e\u7684\u5f02\u5e38\u5904\u7406\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">Exception<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u3002\u5206\u522b\u5728<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">try<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u533a\u5757\u4e2d\u521b\u5efa\u6d4b\u8bd5\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">TestException<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u5bf9\u8c61\uff0c\u5e76\u6839\u636e\u6784\u9020\u65b9\u6cd5\u4e2d\u63d0\u4f9b\u7684\u4e0d\u540c\u6570\u5b57\u53c2\u6570\uff0c\u629b\u51fa\u81ea\u5b9a\u4e49\u5f02\u5e38\u7c7b\u5bf9\u8c61\u3001\u5185\u7f6e\u7684\u5f02\u5e38\u7c7b\u5bf9\u8c61\u548c\u4e0d\u629b\u51fa\u4efb\u4f55\u5f02\u5e38\u7684\u60c5\u51b5\uff0c\u8df3\u8f6c\u5230\u5bf9\u5e94\u7684<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u533a\u5757\u4e2d\u6267\u884c\u3002\u5982\u679c\u6ca1\u6709\u5f02\u5e38\u53d1\u751f\uff0c\u5219\u4e0d\u4f1a\u8fdb\u5165\u4efb\u4f55\u4e00\u4e2a<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">catch<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u5757\u4e2d\u6267\u884c\uff0c\u6d4b\u8bd5\u7c7b<\/span><span lang=\"EN-US\"><span style=\"font-family:'Times New Roman';\">TestException<\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7684\u5bf9\u8c61\u521b\u5efa\u6210\u529f\u3002<\/span><\/p>\n<p><\/span><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u4efb\u4f55\u7a0b\u5e8f\u5458\u5728\u5f00\u53d1\u65f6\u90fd\u53ef\u80fd\u9047\u5230\u8fc7\u4e00\u4e9b\u5931\u8bef\uff0c\u6216\u5176\u4ed6\u539f\u56e0\u9020\u6210\u9519\u8bef\u7684\u53d1\u751f\u3002\u5f53\u7136\uff0c\u7528\u6237\u5982\u679c\u4e0d\u613f\u610f\u6216\u4e0d\u9075\u5faa\u5e94\u7528\u7a0b\u5e8f\u7684\u7ea6\u675f\uff0c\u4e5f\u4f1a\u5728\u4f7f\u7528\u65f6\u5f15\u8d77\u4e00\u4e9b\u9519\u8bef\u53d1\u751f\u3002<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u7a0b\u5e8f\u7684\u9519\u8bef\u53d1\u751f\u4e00\u822c\u5f52\u5c5e\u4e8e\u4e0b\u5217\u4e09\u4e2a\u9886\u57df\u3002<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\"><span style=\"font-size:small;\">\u00d8<\/span><span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:small;\">\u8bed\u6cd5\u9519\u8bef<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:small;\">\u8bed\u6cd5\u9519\u8bef\u6700\u5e38\u89c1\uff0c\u5e76\u4e14\u6700\u5bb9\u6613\u4fee\u590d\u3002\u4f8b\u5982\uff0c\u9057\u6f0f\u4e86\u4e00\u4e2a\u5206\u53f7\uff0c\u5c31\u4f1a\u663e\u793a\u9519\u8bef\u4fe1\u606f\u3002\u8fd9\u7c7b\u9519\u8bef\u4f1a\u963b\u6b62\u811a\u672c\u6267\u884c\u3002\u901a\u5e38\u53d1\u751f\u5728\u7a0b\u5e8f\u5f00\u53d1\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u9519\u8bef\u62a5\u544a\u8fdb\u884c\u4fee\u590d\uff0c\u518d\u91cd\u65b0\u8fd0\u884c\u3002<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt 31.2pt;\" class=\"1\"><span style=\"font-family:Wingdings;mso-bidi-font-size:10.5pt;\" lang=\"EN-US\"><span style=\"font-size:small;\">\u00d8<\/span><span style=\"font:7pt 'Times New Roman';\">&nbsp; <\/span><\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\"><span style=\"font-size:small;\">\u8fd0\u884c\u65f6\u9519\u8bef<\/span><\/span><\/p>\n<p style=\"margin:0cm 0cm 0pt;\" class=\"074\"><span style=\"font-size:small;\"><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u8fd9\u79cd\u9519\u8bef\u4e00\u822c\u4e0d\u4f1a\u963b\u6b62<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u7684\u8fd0\u884c\uff0c\u4f46\u662f\u4f1a\u963b\u6b62\u811a\u672c\u505a\u5e0c\u671b\u5b83\u6240\u505a\u7684\u4efb\u4f55\u4e8b\u60c5\u3002\u4f8b\u5982\uff0c\u5728\u8c03\u7528<\/span><span lang=\"EN-US\">header()<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\u524d\u5982\u679c\u6709\u5b57\u7b26\u8f93\u51fa\uff0c<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u901a\u5e38\u4f1a\u663e\u793a\u4e00\u6761\u9519\u8bef\u6d88\u606f\uff0c\u867d\u7136<\/span><span lang=\"EN-US\">PHP<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u811a\u672c\u7ee7\u7eed\u8fd0\u884c\uff0c\u4f46<\/span><span lang=\"EN-US\">header()<\/span><span style=\"font-family:\u5b8b\u4f53;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';\">\u51fd\u6570\u5e76\u6ca1\u6709\u6267...<\/span><\/span><\/p>\n<p> <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/278\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[273],"tags":[27],"class_list":["post-278","post","type-post","status-publish","format-standard","hentry","category-article","tag-php"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/278\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}