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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.