php - short_open_tag setting ignored by PHPUnit -


my phpunit tests keep failing when trying tests .php files in (legacy code) application begin short open tag (<? instead of <?php).

but in php.ini file, short_open_tag set on.

the application runs fine. why phpunit getting upset on short open tag? i've looked other php.ini files, , find 1 @ /etc/php.ini. .htaccess file doesn't affect setting either. else causing this?

general solution

1) check php.ini file loaded (command line: php --ini)

2a) set in php ini file: short_open_tag = on

2b) set in .htaccess file: php_value short_open_tag 1

3) restart server (command line: service httpd restart)


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -