установил browscap.ini и теперь php выдает ошибку PHP: syntax error, unexpected $end, expecting ‘]’ in /usr/local/etc/php/php_browscap.ini on line 57
установил browscap.ini и теперь php выдает ошибку PHP: syntax error, unexpected $end, expecting ‘]’ in /usr/local/etc/php/php_browscap.ini on line 57
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 );
установил browscap.ini и теперь php выдает ошибку PHP: syntax error, unexpected $end, expecting ‘]’ in /usr/local/etc/php/php_browscap.ini on line 57