It's functionality is so strong that I worry about its stability and performance.
What do you think?
UPDATE
What I'm doing is this:
$old_dir = getcwd();
chdir( dirname($included_file) );
include ( $included_file );
chdir( $old_dir );
Essentially it just does include ( $included_file );,but inside that $included_file...
Is there any way to get the caller function with something else than debug_backtrace()?
I'm looking for a less greedy way to simulate scopes like friend or internal.
Let's say I have a class A and a class B.
Until now, I've been using debug_backtrace(), which is too greedy (IMHO).
I thought of something like this:
<?php
class A...
Hi,
im trying to debug a symfony app.
I've added a debug_backtrace() calling to this function below. It
outputs a list of functions called, but the save() function (that is
just before the debug_backtrace() calling) is not that list.. why? any other way to debug that shows more things, in this case the save() calling ?
protected funct...
I am using print_r(debug_backtrace(), true) to retrieve a string representation of the debug backtrace. This works fine, as print_r handles recursion.
When I tried to recursively iterate through the debug_backtrace() return array before turning it into a string it ran into recursion and never ended.
Is there some simple way I can remo...