0
PHP 버전 7을 사용하고 클래스를 확장하는 클래스를 정의했지만 클래스 '스레드'를 찾을 수없는 프로그램을 실행할 때 오류가 발견되지 않았습니다. 검색 한 결과 나는 pthreadVC2.dll
를 아파치와 system32 폴더에 복사해야하고 php_pthreads.dll
을 php/ext와 system32 폴더에 복사하고 extension=php_pthreads.dll
을 php.ini
에 추가한다. 나는이 모든 작업을했지만 그 오류는 다시 발생한다. php_pthreads.dll
및 pthreadVC2.dll
버전은 그것은 CLI에서만 사용할 수 있습니다 (14)PHP 왜 클래스 '스레드'를 찾을 수 없습니다
<?php
class exampleThread extends Thread
{
var $Mobile;
var $code;
public function __construct($Mobile, $code)
{
$this->Mobile = $Mobile;
$this->code = $code;
}
public function run()
{
}
};
?>
코드를 보여주십시오. – urfusion
@urfusion 내가 편집했습니다 – zohreh
https://stackoverflow.com/questions/22901578/php-pthreads-fatal-error-class-thread-not-found – urfusion