(Php 4, Php 5, Php 7, Php 8)
Nội dung chính ShowShow
- Sự mô tả
- Thông số
- Trả về giá trị
- Thay đổi
- Thông số
- Trả về giá trị
- Thay đổi
- 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.
- 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.
- Làm cách nào để dừng báo cáo lỗi PHP?
- Làm cách nào để vô hiệu hóa báo cáo lỗi trong Laravel?
Làm cách nào để ẩn các lỗi không dùng nữa trong PHP? — Sets which PHP errors are reported
Sự mô tả
Thông số(?int $error_level
= null
): int
Thông số
Trả về giá trịTrả về giá trị
Thay đổi
Trả về giá trị
Thay đổi
Thay đổi
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. | Sự mô tả |
---|
8.0.0 | 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. |
Thông số
Trả về giá trịerror_reporting() examples
<?php// Turn off all error reporting
error_reporting(0);// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);// Report all PHP errors
error_reporting(E_ALL);// Report all PHP errors
error_reporting(-1);// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);?>
Trả về giá trị
Thay đổi
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.null
0 constant.
Thay đổi
- Thay đổi
- 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.
- 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.
- Làm cách nào để dừng báo cáo lỗi PHP?
Làm cách nào để vô hiệu hóa báo cáo lỗi trong Laravel? ¶
Làm cách nào để ẩn các lỗi không dùng nữa trong PHP?
null
2
null
3
null
0
null
1
null
2 Làm cách nào để tắt cảnh báo PHP trong WordPress?
¶
Error_Reporting - Các bộ lỗi PHP được báo cáo — Sets which PHP errors are reported
null
3
null
4
null
5
null
6
null
7 Error_Reporting (? int $error_level
= null
): int(?int $error_level
= null
): int ¶
error_level
null
8
null
9
error_level
0
null
2 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ề 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.
error_level
2
error_level
3
error_level
4
null
2 Phiên bản ¶
Error_Reporting (? int $error_level
= null
): int
error_level
6
error_level
7
error_level
8
error_level
9
error_level
0
null
2 error_level
error_reporting() examples ¶
Trả về giá trịnull
0 constant.
error_level
2
error_level
3
error_level
4
error_level
5
null
2 error_level
bây giờ là không thể.
¶
Ví dụ
error_level
7
error_level
8
null
2 Ví dụ #1 Error_Reporting () Ví dụ ¶ ¶
Ghi chú
error_level
0
error_level
1
error_level
2
error_level
3
error_level
4
null
2 Mẹo ¶ ¶
Truyền trong giá trị null
7 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 null
0 hằng số.
error_level
6
error_level
7
null
2 Xem thêm ¶ ¶
Truyền trong giá trị null
7 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 null
0 hằng số.
error_level
9
<?php// Turn off all error reporting
error_reporting(0);// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);// Report all PHP errors
error_reporting(E_ALL);// Report all PHP errors
error_reporting(-1);// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);?>
0
Xem thêm ¶ Xem thêm ¶ ¶
Error_Reporting (? int $error_level
= null
): int
<?php// Turn off all error reporting
error_reporting(0);// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);// Report all PHP errors
error_reporting(E_ALL);// Report all PHP errors
error_reporting(-1);// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);?>
2
error_level
error_reporting() examples ¶
Trả về giá trịnull
0 constant.
<?php// Turn off all error reporting
error_reporting(0);// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);// Report all PHP errors
error_reporting(E_ALL);// Report all PHP errors
error_reporting(-1);// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);?>
3
<?php// Turn off all error reporting
error_reporting(0);// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);// Report all PHP errors
error_reporting(E_ALL);// Report all PHP errors
error_reporting(-1);// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);?>
4
null
2 error_level
bây giờ là không thể. ¶
Làm cách nào để ẩn các lỗi không dùng nữa trong PHP?
<?php// Turn off all error reporting
error_reporting(0);// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);// Report all PHP errors
error_reporting(E_ALL);// Report all PHP errors
error_reporting(-1);// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);?>
6
<?php// Turn off all error reporting
error_reporting(0);// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);// Report all PHP errors
error_reporting(E_ALL);// Report all PHP errors
error_reporting(-1);// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);?>
7
<?php// Turn off all error reporting
error_reporting(0);// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);// Report all PHP errors
error_reporting(E_ALL);// Report all PHP errors
error_reporting(-1);// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);?>
8
<?php// Turn off all error reporting
error_reporting(0);// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);// Report all errors except E_NOTICE
error_reporting(E_ALL & ~E_NOTICE);// Report all PHP errors
error_reporting(E_ALL);// Report all PHP errors
error_reporting(-1);// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);?>
9
null
2 Làm cách nào để tắt cảnh báo PHP trong WordPress? ¶
Error_Reporting - Các bộ lỗi PHP được báo cáo — Sets which PHP errors are reported
null
71
null
72
null
73
null
74
null
75
null
76
null
77
null
2 Error_Reporting (? int $error_level
= null
): int(?int $error_level
= null
): int ¶
error_level
null
79
null
00
null
01
null
2 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. ¶
Ví dụ
null
03
Ví dụ #1 Error_Reporting () Ví dụ ¶ ¶
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.
null
04
null
05
null
06
null
07
null
08
null
09
null
20
null
21
null
2 Phiên bản ¶
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.
null
23
Phiên bản ¶
Error_Reporting (? int $error_level
= null
): int
null
24
null
25
null
26
null
27
null
28 error_level
error_reporting() examples ¶
Trả về giá trịnull
0 constant.
null
29
null
30
null
2 error_level
bây giờ là không thể. ¶
Error_Reporting (? int $error_level
= null
): int
null
32
null
33
null
34
null
2 error_level
error_reporting() examples ¶
Trả về giá trịnull
0 constant.
null
36
null
37
Xem thêm ¶ error_level
bây giờ là không thể. ¶
Ví dụ
null
39
null
00
null
01
null
2 16 năm trước ¶ ¶
Chỉ thị XMLRPC_ERRORS
null
03
null
04
null
05
null
2 ini_set () - Đặt giá trị của tùy chọn cấu hình ¶ ¶
jcastromail tại yahoo dot es ¶
null
07