I was programming a client user database this afternoon when I noticed PHP starting to crash without a parse error — in what I can only assume was a segmentation fault. I tried narrowing down the problem until I realized when I renamed certain functions, they would stop crashing. This is the most bizarre PHP bug I’ve ever encountered. Here are some of the function names causing the problem:
create_user_account() – crashes
renamed to create_user_email() – works
check_user_email() – crashes
renamed to check_user_account() – works
I’m at a total loss on what could be causing this error. Any help in tracing the issue or diagnosing the problem would be appreciated.
Try this:
works! But now:
crashes! Oh! Let’s rename the function:
Works! Yay! Works! Happy day!!!! Sing and Dance!
To make a long story short: This calls for basic debugging first – which code is hit when the screen is blank? Please do a
error_reporting(~0); ini_set('display_errors', 1);at the very beginning of your script. Additionally you should enable error logging and follow the error log. And at that stage then: Which part of the error message do you not understand in specific?