Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 php-cpp 编写一个 PHP 扩展来帮助我分析我的代码。
php-cpp 中是否有任何方法可以在不修改我的 php 的情况下跟踪对特定函数的所有调用?
例如跟踪对 json_encode() 的所有调用并获取传递给它的参数?
像 javascript 一样,也许我可以在 json_encode 调用事件上注册一个回调函数?只是在这里的黑暗中摸索
如果有 php-cpp 经验的人可以指出正确的方向,那就太好了。
干杯!