File Get Contents Loads 2GB Crashing 47 Web Servers?!
MEMORY EXPLOSION! file_get_contents() loads ENTIRE 2GB file into RAM! 47 web servers CRASHED! Tax deadline missed! 12K users disconnected! $12M class action lawsuit! Lead developer FIRED!
#php #phpdisaster #filegetcontents #memoryexhaustion #servercrash #taxdeadline #productionbug #phpshorts #phpwtf #outofmemory #careerending #cascadefailure
https://www.youtube.com/watch?v=7mhJQ1u608A
I was about to request jokingly an assertRoughlyEquals() method in #phpunit to avoid errors like "Failed asserting that 5.656000000000001 is identical to 5.656" when testing with floats.
Then I realized it already exists ! 😂
https://docs.phpunit.de/en/12.5/assertions.html#assertequalswithdelta
Handy !
Slides from my talk "Building #PHP Extensions with #WebAssembly" @ConFooCa are up, incl 20 demos.
Rust, Go, JS → .wasm → call from PHP, sub-ms performance, sandboxed
Get the slides here https://gamma.app/docs/Building-PHP-plugins-with-WASM-Confoo-2026-j0k4fwetfc6gjib and check out all the code here: https://github.com/johanjanssens/frankenwasm
Kudos to @dunglas #FrankenPHP rocks!

🔗 Quick tips: Sending Laravel output to Ray automatically
https://myray.app/blog/quick-tips-sending-laravel-output-to-ray-automatically
#php #laravel #debugging #ray #tips
We all want fast code, but how do you find the slow spots in production? Here are two approaches that have worked well for us. #php #laravel https://masteringlaravel.io/daily/2026-03-11-republished-how-do-you-know-if-slow-in-production
I've noticed that unintentionally, the @roave Discord has become a mini open source hub for several projects (obviously not exclusive), which is super cool to see our little community growing ❤️
If you fancy joining us, please feel free! https://discord.gg/roave
Now this animation is available for the 1000 sequences decomposed on my website.
Accessible from the 3Dgraph, 2Dgraph500terms and 2dgraphs pages ➡️ https://decompwlj.com
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research
4: The palindromes in base 10 (A002113) ➡️ https://decompwlj.com/3DgraphGen/Palindromes.html
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research
3: The triangular numbers (A000217) ➡️ https://decompwlj.com/3DgraphGen/Triangular_numbers.html
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research
2: The prime numbers (A000040) ➡️ https://decompwlj.com/3DgraphGen/Prime_numbers.html
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research
Generation of four sequences decomposed into weight × level + jump (log(weight), log(level), log(jump)) - three.js animation:
🧵⬇️
1: The natural numbers (A000027) ➡️ https://decompwlj.com/3DgraphGen/Natural_numbers.html
#decompwlj #math #mathematics #maths #sequence #OEIS #JavaScript #php #graph #3D #threejs #webGL #triangular #numbers #primes #PrimeNumbers #palindromes #animation #FundamentalTheoremOfArithmetic #sequences #NumberTheory #classification #integer #decomposition #number #theory #equation #graphs #sieve #fundamental #theorem #arithmetic #research