16 行目に次の解析エラーが表示されます:「構文エラー、予期しない T_STRING」。そうは言っても、次のコード ブロックは PHP 5.4.16 では正しく解析されますが、PHP 4.4.9 では正しく解析されません。考え?
私にとって、このエラーはinterface
キーワードが PHP 4.4.9 でサポートされていなかったことを示唆していますが、PHP の変更ログでそれを見つけることができませんでした。
interface iA { // line 16
public function methodA();
public function methodB();
public function methodC();
}
編集 (完全なスニペットを提供)
<?php
// a comment.
// a comment.
// a comment.
// a comment.
// a comment.
// a comment.
// a comment.
if (!defined('PRODUCT_ENV')) {
exit;
}
// a comment.
interface iA {
public function methodA();
public function methodB();
public function methodC();
}
include(PRODUCT_PWD . PRODUCT_IMPLES . 'anotherfile.php');