Skip to content

Commit

Permalink
use PHP_VERSION constant
Browse files Browse the repository at this point in the history
less shellcode, just use PHP_VERSION constant

http://www.php.net//manual/en/reserved.constants.php
  • Loading branch information
glensc committed Jun 13, 2014
1 parent 7c74d52 commit d4e8f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -16,7 +16,7 @@ before_script:
- sudo mkdir -p /var/qmail/bin
- sudo cp fakesendmail.sh /var/qmail/bin/sendmail
- sudo cp fakesendmail.sh /usr/sbin/sendmail
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' | sudo tee "/home/travis/.phpenv/versions/`php -i|grep "PHP Version"|head -n 1|grep -o -P '\d+\.\d+\.\d+.*'`/etc/conf.d/sendmail.ini"
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' | sudo tee "/home/travis/.phpenv/versions/`php -r 'echo PHP_VERSION;'`/etc/conf.d/sendmail.ini"
- pwd
- ls -al
script:
Expand Down

0 comments on commit d4e8f43

Please sign in to comment.