Jump to content

print_r going haywire


Ninjakreborn

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/200217-print_r-going-haywire/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.