~/talk

Prepare Your Code for PHP 9: PHP 8 Deprecations Explained

Talkat International PHP Conference 2025 Munich · 2025-10-27..10-31· [php]
slides:none on file

Overview of concrete PHP 8 deprecations and how to fix them: core functions like UTF8 encode/UTF8 decode and legacy mhash/LCG functions are removed in favor of mbstring and the random extension; curly-brace array access and string increment/decrement become errors with replacement APIs; fputcsv’s escape default is dropped so callers must pass it or use named params; dynamic properties require allow_dynamic_properties or explicit class fields; directives (filter.default, session, disabled_functions) and assertion options change. Static analysis, grep/replace, Rector and named parameters are recommended; expect ~325 deprecations with 5–10% likely to bite.

AI-written summary · about

  1. 0:00PHP 9 preparation intro
  2. 4:16PHP deprecations in practice
  3. 7:07Deprecated PHP features
  4. 8:32PHP 8.3 deprecated functions
  5. 10:41Random number generator removed
  6. 12:25FTP resource transitions
  7. 14:12Assert options removed
  8. 15:57Gutted features in code
  9. 18:27Deprecated constants
  10. 21:35Deprecated classes/interfaces
  11. 22:42Deprecated variables/operators
  12. 24:11Deprecated PHP directives
  13. 27:01Disabled classes/functions removed
  14. 29:08Assert function changes
  15. 30:35CSV escape parameter change
  16. 33:04Modernizing with optional params
  17. 37:00Typed array keys
  18. 40:13Dollar-curly-brace syntax
  19. 42:27Null to string parameters
  20. 44:35MB string encoding updates
  21. 47:00Dynamic properties deprecation
  22. 52:39Nullable parameters fixes
  23. 54:03False vivification behavior
  24. 55:28Underscore class name
  25. 56:31Sort comparison function changes
  26. 58:18Switch colon to semicolon
  27. 1:00:05String increment/operators removed
~/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.