[Php 4, Php 5, Php 7, Php 8]
Error_Reporting - Các bộ lỗi PHP được báo cáo — Sets which PHP errors are reported
Sự mô tả
Error_Reporting [? int $error_level
= null
]: int[?int $error_level
= null
]: int
Thông số
error_level
Mức độ lỗi mới. Nó có một hoặc một hằng số được đặt tên. Sử dụng các hằng số được đặt tên được khuyến khích mạnh mẽ để đảm bảo khả năng tương thích cho các phiên bản trong tương lai. Khi các mức lỗi được thêm vào, phạm vi số nguyên tăng, do đó các mức lỗi dựa trên số nguyên cũ sẽ không luôn luôn hoạt động như mong đợi.
Các hằng số mức lỗi có sẵn và ý nghĩa thực tế của các mức lỗi này được mô tả trong các hằng số được xác định trước.
Trả về giá trị
Trả về mức ERROR_REPORTING cũ hoặc mức hiện tại nếu không có tham số error_level
được đưa ra.
Thay đổi
8.0.0 | Error_Reporting [? int $error_level = null ]: int |
Thông số
error_level
error_reporting[] examples
Mức độ lỗi mới. Nó có một hoặc một hằng số được đặt tên. Sử dụng các hằng số được đặt tên được khuyến khích mạnh mẽ để đảm bảo khả năng tương thích cho các phiên bản trong tương lai. Khi các mức lỗi được thêm vào, phạm vi số nguyên tăng, do đó các mức lỗi dựa trên số nguyên cũ sẽ không luôn luôn hoạt động như mong đợi.
Các hằng số mức lỗi có sẵn và ý nghĩa thực tế của các mức lỗi này được mô tả trong các hằng số được xác định trước.
Trả về giá trịE_ALL
constant.
Trả về mức ERROR_REPORTING cũ hoặc mức hiện tại nếu không có tham số error_level
được đưa ra.
- Thay đổi
- Phiên bản
-
error_level
bây giờ là không thể. - Ví dụ
Ví dụ #1 Error_Reporting [] Ví dụ ¶
Ghi chú
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:
- create a new file in which you include the faulty script:
null
0
null
1
null
2Mẹo ¶
Truyền trong giá trị -1
sẽ hiển thị mọi lỗi có thể xảy ra, ngay cả khi các cấp độ và hằng số mới được thêm vào các phiên bản PHP trong tương lai. Hành vi tương đương với việc vượt qua E_ALL
hằng số.
null
3
null
4
null
5
null
6
null
7Xem thêm ¶
Chỉ thị Display_errors
null
8
null
9
error_level
0
null
2Chỉ thị HTML_ERRORS ¶
Chỉ thị XMLRPC_ERRORS
error_level
2
error_level
3
error_level
4
null
2ini_set [] - Đặt giá trị của tùy chọn cấu hình ¶
Thông tin tại Hephoz Dot de ¶
error_level
6
error_level
7
error_level
8
error_level
9
error_level
0
null
214 năm trước ¶
jcastromail tại yahoo dot es ¶
error_level
2
error_level
3
error_level
4
error_level
5
null
21 năm trước ¶
Dave tại Davidhbrown dot chúng tôi ¶
error_level
7
error_level
8
null
216 năm trước ¶
Piancastelli Fernando
error_level
0
error_level
1
error_level
2
error_level
3
error_level
4
null
217 năm trước ¶
Luisdev ¶
error_level
6
error_level
7
null
24 năm trước ¶
Luisdev ¶
error_level
9
0
null
24 năm trước ¶
Thông tin tại Hephoz Dot de ¶
2
14 năm trước ¶
jcastromail tại yahoo dot es ¶
3
4
null
21 năm trước ¶
Ghi chú
6
7
8
9
null
2Mẹo ¶
Truyền trong giá trị -1
sẽ hiển thị mọi lỗi có thể xảy ra, ngay cả khi các cấp độ và hằng số mới được thêm vào các phiên bản PHP trong tương lai. Hành vi tương đương với việc vượt qua E_ALL
hằng số.
-1
1
-1
2
-1
3
-1
4
-1
5
-1
6
-1
7
null
2Xem thêm ¶
Chỉ thị Display_errors
-1
9
E_ALL
0
E_ALL
1
null
2Chỉ thị HTML_ERRORS ¶
Dave tại Davidhbrown dot chúng tôi ¶
E_ALL
3
16 năm trước ¶
Chỉ thị XMLRPC_ERRORS
E_ALL
4
ini_set [] - Đặt giá trị của tùy chọn cấu hình ¶
Chỉ thị XMLRPC_ERRORS
E_ALL
5
E_ALL
6
E_ALL
7
E_ALL
8
E_ALL
9
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:
0
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:
1
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:
2
null
2ini_set [] - Đặt giá trị của tùy chọn cấu hình ¶
Thông tin tại Hephoz Dot de ¶
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:
4
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:
5
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:
6
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:
7
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:
814 năm trước ¶
jcastromail tại yahoo dot es ¶
If you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this:
9
- create a new file in which you include the faulty script:
0
null
21 năm trước ¶
Thông tin tại Hephoz Dot de ¶
- create a new file in which you include the faulty script:
2
- create a new file in which you include the faulty script:
3
- create a new file in which you include the faulty script:
4
null
214 năm trước ¶
jcastromail tại yahoo dot es ¶
- create a new file in which you include the faulty script:
6
- create a new file in which you include the faulty script:
7
null
21 năm trước ¶
Dave tại Davidhbrown dot chúng tôi ¶
- create a new file in which you include the faulty script:
9
null
00
null
01
null
216 năm trước ¶
Chỉ thị XMLRPC_ERRORS
null
03
null
04
null
05
null
2ini_set [] - Đặt giá trị của tùy chọn cấu hình ¶
jcastromail tại yahoo dot es ¶
null
07