~/talk

Modernizing PHP one edge case at a time

Talkat PHP UK Conference 2025 · on Wednesday, 2025-02-19· [php]
slides:none on file

Walks through exact PHP oddities and the fixes: string "0" is falsy and SimpleXML can make objects evaluate false, GMP boolean-cast bug becomes false in PHP 8.4, comparison rules sometimes force the left operand to be “greater” and array_intersect casts values to strings so arrays collide, string increment spills into numeric semantics prompting a new str_increment helper, range and step edge cases start throwing ValueError in 8.3, disable_functions/classes can cause segfaults, and strict_types applies per file while the engine still uses coercive calls.

AI-written summary · about

  1. 0:00PHP modernization intro
  2. 1:52PHP Foundation role
  3. 2:35Falsy values in PHP
  4. 6:08Comparison operators casting
  5. 9:03String numeric quirks
  6. 12:58Array intersection casting
  7. 17:59Incrementing booleans null
  8. 20:51String incrementation edge cases
  9. 26:03Range function behavior
  10. 31:25ArrayObject inconsistencies
  11. 37:25Disabling PHP functions
  12. 40:34Strict types limitations
  13. 44:04Modernization goals
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.