~/talk

Voodoo PHP

Talkat Dutch PHP Conference 2017 · 2017-06-29..07-01· [php]
slides:none on file

Shows concrete language hacks: using the Reflection API and closure bind to mutate private state, the weird backslash-0 property encoding and the unset trick Doctrine uses for lazy loading, and how references and generators can silently change values or segfault the process. Demonstrates libraries that relied on those behaviors (alter-ego/proxies, Humbug, an AOP layer, preprocess-style tools), explains when the tricks actually solved testing or performance problems and when they caused regressions or crashes.

AI-written summary · about

  1. 0:00Introduction
  2. 1:08Demystifying magic
  3. 3:33Who is the magician?
  4. 6:28The tools of the trade
  5. 9:54Building a magic contraption
  6. 14:27Real-world magic use cases
  7. 18:02PHP object internals
  8. 22:12Lazy loading with magic
  9. 25:06Becoming a core contributor
  10. 29:34Libraries leveraging magic
  11. 33:31Experimental magic features
  12. 36:55The cost of magic
  13. 42:00When to use magic
  14. 46:41Conclusion
~/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.