Silent changed behaviors
These changes do not emit any error. They are different between versions, but keep executing the task. They might be only detected by actual inspection of the result.
- Negative Automatic Index From Empty Array
- Automatic Index In Non Empty Array
- array_intersect() Converts Values While Scanning Inputs
- Bitshift And Concat Precedence
- Catch Without Variable
- convert_uuencode() Works On Empty Strings
- curl_close() No Longer Flushes The Cookie Jar
- cUrl Moved Away From Resource
- datetime With Multiple Signs
- Dot And Bitshift Priority
- FilessytemIterator Skips Dot Files
- Finfo Moved Away From Resource
- func_get_arg() Changed Behavior
- get_object_vars() Does Not Work On ArrayObject
- Copy Of $GLOBALS
- hexdec() Warns When The Result Loses Precision
- Default Values With htmlspecialchars()
- http_build_query() supports enumerations
- in_array() String Int Comparisons
- in_array() Doesn’t Confuse 0 And Empty String
- Increment Non-alphanumeric
- Increment On Boolean Is Deprecated
- Inegality Comparisons
- ini_get_all() Includes The Built-in Default Value
- krsort() Places Integers Before Strings In Keys
- ksort() Now Places Integers Before Strings
- isset()-Materialized Magic Property Skips __get()
- max() On String And Integer
- Negative Index On Strings
- New Cases In Switch
- Plus And Concat Precedence
- preg_grep() Returns false On A PCRE Execution Error
- range() Lists Everything Between Strings
- Reflection Doesn’t Return Self
- Reflection Doesn’t Return Static
- Session Functions Reject NUL Bytes And session_encode() Changes Its Empty-Session Return Value
- Session Cookies Default To Secure Settings
- setlocale() Does Not Affect Echo Anymore
- spaceship Operator Results
- SplFileObject::fgets() No Longer Caches The Current Line
- SplFileObject::next() Always Advances The Stream
- SplFixedArray Is Now An IteratorAggregate
- Static Variables Are Linked To Their Method
- Static Properties With References
- String To Integer Comparison
- Strings Are Bigger Than Integers
- strpos() With Integer Argument
- substr() Returns Empty String On Out Of Bond Offset
- switch() Changed Comparison Style
- Length Of tempnam() Has Been Raised
- Tentative Static Returntype With Datetime
- trim() Strips Form Feed By Default
- Typed Class Constant
- var_export() Format
- WeakMap Allows Reference Assignment To A Missing Key