PHP version requirement scanner?

Discussion in 'PHP' started by Chuckun, Aug 2, 2011.

  1. #1
    Hey folks, 

    I am in the process of creating a bunch of scripts I plan to distribute.  Personally I always stick to the newest stable release of PHP but I know a lot don't/can't, and thus may still be using older versions of PHP.  Point being, I want to let my customers know what versions of PHP the script will run on, but I don't really want to have to trawl through my coding of fairly large scripts, listing every single function I use, and then manually cross-referencing to php.net for answers..

    I was just going to install multiple versions of PHP and check the scripts individually on each version but that would be a nightmare too.

    So I am looking for a scanner (a windows/linux program or a php script, I don't mind) which will trawl through the PHP files in a chosen directory (or just individual files at least..), checking all functions used, and let me know which PHP versions it will be compatible with.

    Does anyone know of such a scanner?

    Thanks for any help,
    Chuckun
     
    Chuckun, Aug 2, 2011 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Never heard of it, but can be build ofcource! :)
     
    EricBruggema, Aug 4, 2011 IP
  3. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #3
    Thanks for your reply Eric.. I have searched endlessly and decided someone might know of one here.  I guess I'll make it if noone can tell me of an existing one, since I need it anyway and I'm sure others would find it useful.

    Chuckun 
     
    Chuckun, Aug 5, 2011 IP
  4. Chuckun

    Chuckun Well-Known Member

    Messages:
    1,161
    Likes Received:
    60
    Best Answers:
    2
    Trophy Points:
    150
    #4
    Chuckun, Aug 5, 2011 IP
  5. jazzcho

    jazzcho Peon

    Messages:
    326
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Great, nice to have!
     
    jazzcho, Aug 6, 2011 IP