Dealing with an SSL handshake problem using PHP to connect to RabbitMQ, I kept receiving handshake failure fatal errors. Even though the solution has been documented, I felt it could use a clarification bump so here's how I implemented the solution.
How I used pcntl_fork() to fork a child process from a long-running (daemon) PHP script and used shared-memory to pass data from the child to the parent, in a rabbitMQ message broker program.
Debugging is a learned skill. Like all skills, it requires practice. Use the force, Luke...
Tech article about evaluating object structures in PHP which also explains when, and how, to use the "===" operator. I implemented this technique in a factory model to determine which template class to instantiate post-validation of the comparison of the input structure.