View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002080||Xdebug||Stacktraces||public||2022-03-28 04:40||2022-03-28 09:03|
|Summary||0002080: function_exists true despite xdebug_get_function_stack disabled|
I have existing code like this:
Since some version of Xdebug this throws a warning:
Apparently it isn't fatal, so I don't know what xdebug_get_function_stack() returns in this case (null maybe?) but wouldn't it be better if function_exists('xdebug_get_function_stack') was false if the function is "disabled"?
|Tags||No tags attached.|
It returns an empty array, the same return type as it would use when it can return results.
Yes, that would be better. But I can't do that unless I "hack" PHP's internal function_exists(). This is because functions have to be compiled into PHP (compile time) whereas Xdebug needs to disable these per-process (runtime) due to various variations of the