edorian,
@edorian@phpc.social avatar

In the PHP 5.3 days we had a couple use cases where we did object to array casts and used the var_dump($x["\0ClassName\0PropertyName"]); formatting to extract data.

(It was really fast compared to Reflection back then and it was for a good cause. I promise :P)

https://3v4l.org/Sk0Iu

Today while chatting with @beberlei about those times I was reminded that in 7.4 https://www.php.net/manual/en/function.get-mangled-object-vars.php was introduced.

Totally missed that at the time. Good memories!

Have you ever used this, and why? :)

dantleech,
@dantleech@fosstodon.org avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • tacticalgear
  • InstantRegret
  • magazineikmin
  • everett
  • rosin
  • Youngstown
  • slotface
  • ngwrru68w68
  • osvaldo12
  • kavyap
  • mdbf
  • cubers
  • khanakhh
  • anitta
  • cisconetworking
  • Durango
  • provamag3
  • thenastyranch
  • ethstaker
  • modclub
  • tester
  • normalnudes
  • megavids
  • GTA5RPClips
  • Leos
  • JUstTest
  • lostlight
  • All magazines