Thread::kill

(PECL pthreads < 3.0.0)

Thread::kill执锟斤拷

Warning

pthreads v3 锟斤拷锟斤拷锟狡筹拷锟剿凤拷锟斤拷锟斤拷

说锟斤拷

public Thread::kill ( void ) : void

强锟斤拷锟竭筹拷锟斤拷止

Warning

通锟斤拷锟斤拷锟斤拷拢锟斤拷锟斤拷锟皆憋拷锟接︼拷锟角匡拷锟缴憋拷锟斤拷叱锟�

锟斤拷锟斤拷

锟剿猴拷锟斤拷没锟叫诧拷锟斤拷锟斤拷

锟斤拷锟斤拷值

锟斤拷锟斤拷值锟斤拷锟斤拷示锟斤拷锟斤拷锟缴癸拷锟斤拷锟�

锟斤拷锟斤拷

Example #1 杀锟斤拷锟竭筹拷

<?php
class extends Thread {
    public function 
run() {
        
$stdin fopen("php://stdin""r");
        while((
$line fgets($stdin))) {
            echo 
$line;
        }
    }
}

$t = new T();
$t->start();

var_dump($t->kill());
?>

锟斤拷锟斤拷锟斤拷锟教伙拷锟斤拷锟斤拷锟�

bool(true)