Migrating to a newer version of PHP

后端 未结 2 1631
梦如初夏
梦如初夏 2021-01-06 04:20

I notice that a couple of weeks ago PHP 5.3 reached release candidate stage (woo!), but then seeing the list of already-deprecated functions finally being removed, that got

2条回答
  •  执念已碎
    2021-01-06 05:16

    One technique you could use is to take the list of deprecated functions that is being removed and grep for them. A little shell scripting fu goes a long way for things like this.

    Let's suppose you have a file deprecated.txt with deprecated function names one per line:

    for func in `cat deprecated.txt`
    do
      grep -R $func /path/to/src
    done
    

    That will tell you all the instances of the deprecated functions you're using.

提交回复
热议问题