NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Breakpoining on built-in php functions


Joined: 30 Oct 2007
Posts: 3
Location: Boston
Reply with quote
I'd like to breakpoint on built-in PHP session management functions such as session_start().
Is there any way to do this?

_________________
PA
View user's profileFind all posts by papleySend private messageAIM Address
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
I don't think so. When you accidentally get the IDE to try to break on built-in code (usually through use of eval()), you just get an error message that basically says the code couldn't be found.

Even if you could break around a built-in function, it'd only be on entrance or exit; since the definition code itself is compiled C.

If you want to achieve that same effect now, you'll need to call the function from inside your own wrapper function, and then break in the wrapper. It's a little messy depending on what exactly you're trying to do, but it's typically just a search-and-replace away.
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
Like bobwilliams said: wrap the function with another function?

Code:
function my_session_start()
{
   DebugBreak ( );
   session_start ( );
}


Dunno, if that helps?
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Breakpoining on built-in php functions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic