亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Is there any IDE in PHP that can quickly find out whether members of a certain class have been called in other files in the project folder?
淡淡煙草味
淡淡煙草味 2017-05-27 17:41:57
0
4
800

RT, I am currently doing a code audit for a PHP project and found a vulnerable method, but how can I quickly find out where this method has been called in all other files, and where the parameters for calling this method are in other files? Where did it come from? It would be much more convenient if there was such a tool. Please recommend

淡淡煙草味
淡淡煙草味

reply all(4)
滿天的星座

I don’t have any good methods. I’m just going to talk about my approach. I feel like the poster has already tried it.

  1. PhpStorm ,點(diǎn)擊方法,按快捷鍵 ALT + F7CTRL + ALT +SHIFT +F7 查找所有使用。參數(shù)變量按 F4CTRL + 鼠標(biāo)左鍵 Find the source. (This kind of search actually has many references that cannot be found), such as looping through a collection of objects to call the method of this object

  2. If it is a dynamic method, such as function test() 全局搜索 ->test(->test (

  3. If it is a static method, such as static function test() 全局搜索 Class::test(Class::test (

Through the above three steps, you may still miss things such as dynamic parameter calls, so you also need to consider searching for method strings 'test'

$func = 'test';
$ojb->$func();
PHPzhong

PHPStorm

洪濤

phpStorm but you can’t judge with ajax

滿天的星座

If you want to check the parameter transfer and value changes of the running call, you can use the php debug tool. Kint is recommended.
If you want to know which files may be called, you can use sublime to search in the folder.
The above recommended tools are all It's very light and small.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template