php 多次导入文件导致 Cannot redeclare class

定义了类A

b.php中导入了A

c.php中导入了b.php

c.php中导入A会报错;

 

posted @ 2019-03-28 18:26  持&恒  阅读(581)  评论(0编辑  收藏  举报