Ninjakreborn Posted April 29, 2010 Share Posted April 29, 2010 OK. I have a custom error handler function. I am setting that as a callback to the PHP error handling system: set_error_handler("user_error_handler"); user_error_handler is the custom function. It just databases the error data when PHP throws them. That all works fine. I am also using it as a custom function call sometimes. In one situation I have a "Code" parameter I am passing based off some authorization stuff from a third party system. I am doing a print_r on the code and for some reason it's printing EVERYTHING. The post, get, files, global, database objects, and every single thing in the entire system. I do not understand why it is doing this. I am passing it a code...when I try to print_r the code on the actual page it comes up empty, when I do it inside the function it prints out every single variable in the system including the DB configuration options and everything else. What reasons would cause print_r to do a system wide print? Quote Link to comment https://forums.phpfreaks.com/topic/200217-print_r-going-haywire/ Share on other sites More sharing options...
aebstract Posted April 29, 2010 Share Posted April 29, 2010 It's really hard to help without seeing the code in subject. Quote Link to comment https://forums.phpfreaks.com/topic/200217-print_r-going-haywire/#findComment-1050705 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.