Yes. Your own examples.
When I worked on my own solution, and clearly the issues remain, your PHP examples are utter junk, missing large amounts of critical steps, along with sloppy code errors.
I mentioned this elsewhere (unsure if direct support, in a thread here, etc) 2 years ago. Clearly nothings been improved!!