Menu

#148 checkBranch() problem

Core Class
closed-fixed
Code/Logic (73)
5
2009-06-09
2009-06-03
No

The checkBranch() function in Core.php compares php_sapi_name() to 'cgi' but some environments are now returning 'cgi-fgci' instead of just 'cgi'. See http://ca3.php.net/php_sapi_name. It looks like something new in php 5.3. As a result a new installation immediately gets dropped to an error page.

Change
if (php_sapi_name() == 'cgi' && PHPWS_SOURCE_DIR == getcwd() . '/') {
to
if (substr(php_sapi_name(),0,3) == 'cgi' && PHPWS_SOURCE_DIR == getcwd() . '/') {
and it works fine.

Discussion

  • Anonymous

    Anonymous - 2009-06-09

    Thank you for this. It has been added.

     
  • Anonymous

    Anonymous - 2009-06-09
    • status: open --> closed-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.