0 голосов
1.8k просмотров
установил browscap.ini и теперь php выдает ошибку PHP: syntax error, unexpected $end, expecting ']' in /usr/local/etc/php/php_browscap.ini on line 57
от

1 Answer

0 голосов

There is seemingly right now an error with those browsecap files. They seem to contain unescaped semicolons ";" in the browser spec. You can fix that using this little script:

<?php $browsecap = file('browscap.ini'); foreach( $browsecap as &$row ) if ( $row[ 0 ] == '[' ) $row = str_replace( ';', '\\;', $row ); file_put_contents( 'fixed_browscap.ini', $browsecap );
от
...