개발! 딱 깔끔하고 센스있게!

Php: "이전 성명" 이 없 는 상황 에서 "재 성명 류" 를 어떻게 해결 할 수 있 습 니까? 본문

개발 스크랩 메모/PHP

Php: "이전 성명" 이 없 는 상황 에서 "재 성명 류" 를 어떻게 해결 할 수 있 습 니까?

렉사이 2020. 12. 4. 02:41

나 는 pDocumentar 알파 를 테스트 하고 싶 지만, 어떤 사람 은 그런 문제 가 없 는 것 같다.

 

# sudo pear uninstall phpdoc/phpDocumentor-alpha uninstall ok: channel://pear.phpdoc.org/phpDocumentor-2.0.0a6 [email protected] ~/Documents/pizzas/dev # phpdoc --help bash: /usr/bin/phpdoc: Aucun fichier ou dossier de ce type # # sudo pear install --alldeps -f phpdoc/phpDocumentor-alpha downloading phpDocumentor-2.0.0a6.tgz ... Starting to download phpDocumentor-2.0.0a6.tgz (1,107,853 bytes) ..................................done: 1,107,853 bytes install ok: channel://pear.phpdoc.org/phpDocumentor-2.0.0a6 # phpdoc --help PHP Fatal error: Cannot redeclare class phpDocumentor\Plugin\Core\Listener in /usr/share/php/phpDocumentor/src/phpDocumentor/Plugin/Core/Listener.php on line 194 Fatal error: Cannot redeclare class phpDocumentor\Plugin\Core\Listener in /usr/share/php/phpDocumentor/src/phpDocumentor/Plugin/Core/Listener.php on line 194 # 

좋아, 나 는 이 문 제 를 피 할 수 있어.

if ( !class_exists('MTIHelperEstadosLocal') ) {...} 

그러나 이 는 추악 한 해결책 일 뿐이다.

신고 서 를 어디서 냈 는 지 알 방법 이 있 는 지 알 고 싶 습 니 다.

 

알 아 요?

대답 하 다.

 

다음은 간단 한 해결 방안 입 니 다.

 

print_r(get_declared_classes()); 

 

Comments