Migrating to a newer version of PHP

后端 未结 2 1629
梦如初夏
梦如初夏 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.

    0 讨论(0)
  • 2021-01-06 05:23

    Nothing beats installing on a test server and running your unit tests. You do have unit tests, right? ;)

    0 讨论(0)
提交回复
热议问题