توضیحاتی در مورد کتاب PHP 8 Revealed: Use Attributes, the JIT Compiler, Union Types, and More for Web Development
نام کتاب : PHP 8 Revealed: Use Attributes, the JIT Compiler, Union Types, and More for Web Development
عنوان ترجمه شده به فارسی : PHP 8 Revealed: از ویژگی ها، کامپایلر JIT، Union Types و موارد دیگر برای توسعه وب استفاده کنید
سری :
نویسندگان : Gunnard Engebreth
ناشر : Apress
سال نشر : 2021
تعداد صفحات : 139
ISBN (شابک) : 9781484268186
زبان کتاب : English
فرمت کتاب : pdf
حجم کتاب : 2 مگابایت
بعد از تکمیل فرایند پرداخت لینک دانلود کتاب ارائه خواهد شد. درصورت ثبت نام و ورود به حساب کاربری خود قادر خواهید بود لیست کتاب های خریداری شده را مشاهده فرمایید.
فهرست مطالب :
Table of Contents
About the Author
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: JIT Compiler
JIT php.ini Settings
opcache.jit_buffer_size
opcache.jit
opcache.jit_debug
JIT Debugging
Chapter 2: Union Types V2
Type Handling
Void and Null Types
Redundant Types
Variance
Adding and Removing Union Types
Variance of Individual Union Members
Coercive Typing Mode
Alternatives
Property Types and References
Reflection
Statistics and Conclusions
Chapter 3: Named Arguments
Benefits
Skipping Defaults
Self-Documenting Code
Object Initialization
Constraints
Variadic Functions and Argument Unpacking
Function Handling Functions
call_user_func() and call_user_func_array()
__call()
Parameter Name Changes During Inheritance
Chapter 4: Reclassifying Engine Warnings, or How I Learned to Stop Worrying and Log the Bugs
Chapter 5: Nullsafe Operator
Short Circuiting
The Benefits
Forbidden Uses
Writing
References
Chapter 6: Attributes V2
Attribute Names Resolve to Classes
Attribute Fetching
Compiler and Userland Attributes
Attribute Use Cases
Chapter 7: Match Expression v2
Return Values
Switch vs. Match
No Type Coercion
No Fallthrough
Exhaustiveness
Chapter 8: Mixed Type v2
Chapter 9: Weak Maps
Chapter 10: New str_begins_with() and str_ends_with()
Chapter 11: Str_contains
Chapter 12: Bug Fixes
Stricter Type Checks for Arithmetic/Bitwise Operators
Change Default PDO Error Mode
Treat Namespaced Names as Single Token
Saner String to Number Comparisons
Ensure Correct Signatures of Magic Methods
Allow Trailing Comma in Closure Use Lists
Remove Inappropriate Inheritance Signature Checks on Private Methods
Saner Numeric Strings
The Problem
Proposal
Make Sorting Stable
Chapter 13: Miscellaneous Additions
Class Constructor Property Promotion
Constraints
New fdiv() Function
Always Generate Fatal Error for Incompatible Method Signatures
Arrays Starting with a Negative Index
Implement New DOM Living Standard APIs in ext/dom
Implement
Static Return Type
Variable Syntax Tweaks
Interpolated and Noninterpolated Strings
Magic, Class, and Regular Constants
Class Constant Dereferenceability
Arbitrary Expression Support for new and instanceof
Add Stringable Interface
get_debug_type
New preg_last_error_msg()
Add CMS Support
Allow::class on Objects
Object-Based token_get_all() Alternative
Validation for Abstract Trait Methods
Throw Expression
Locale-Independent Float to String Cast
Noncapturing Catches
Always Available JSON Extension
zend.exception_string_param_max_len: Configurable String Length in getTraceAsString()
Unbundle ext/xmlrpc
Don’t Automatically Unserialize Phar Metadata Outside getMetadata()
The Proposal
Backward-Incompatible Changes
Index