/php-src/ext/random/tests/ |
H A D | engines.inc | 22 $this->state = sha1($this->state, true); 38 $this->count++; 45 return $this->count; 66 $result = (self::rotl(($this->s0 + $this->s3) & 0xFFFFFFFF, 7) + $this->s0) & 0xFFFFFFFF; 70 $this->s2 ^= $this->s0; 71 $this->s3 ^= $this->s1; 72 $this->s1 ^= $this->s2; 73 $this->s0 ^= $this->s3; 75 $this->s2 ^= $t; 77 $this->s3 = self::rotl($this->s3, 11); [all …]
|
/php-src/sapi/fpm/tests/ |
H A D | response.inc | 148 return $this; 175 $this->error( 179 return $this; 202 return $this; 213 return $this; 233 return $this; 253 return $this; 275 return $this; 368 $this->error("The response is invalid: $this->rawData"); 485 $this->rawData = $this->data['out_response']; [all …]
|
/php-src/Zend/tests/closures/ |
H A D | closure_062.phpt | 2 Closure $this unbinding deprecation 10 var_dump($this); 15 var_dump($this); 28 var_dump($this); 33 var_dump($this); 49 instance scoped, non-static, $this used 51 Warning: Cannot unbind $this of closure using $this in %s on line %d 52 instance scoped, static, $this used 54 static scoped, non-static, $this used 55 static scoped, static, $this used [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | bug77135.phpt | 2 Test extract() with $this 37 echo " \$this = " . get_class($this) . "\n"; 55 $this = Extract 58 $this = Extract 63 $this = Extract 66 $this = Extract 71 $this = Extract 74 $this = Extract 79 $this = Extract 82 $this = Extract [all …]
|
/php-src/tests/lang/ |
H A D | 019.phpt | 18 hey, this is a regular echo'd eval() 19 hey, this is a function inside an eval()! 20 hey, this is a regular echo'd eval() 22 hey, this is a regular echo'd eval() 24 hey, this is a regular echo'd eval() 26 hey, this is a regular echo'd eval() 28 hey, this is a regular echo'd eval() 30 hey, this is a regular echo'd eval() 32 hey, this is a regular echo'd eval() 34 hey, this is a regular echo'd eval() [all …]
|
/php-src/build/ |
H A D | gen_stub.php | 383 return $this->isBuiltin && $this->name === 'int'; 1141 return "$this->className::$this->methodName"; 1187 return $this->type ?? $this->phpDocType; 1199 $type = $this->phpDocType ?? $this->type; 1369 $name = $this->alias ?? $this->name; 1380 $name = $this->alias ?? $this->name; 2157 $this->return = clone $this->return; 2399 $type = $this->phpDocType ?? $this->type; 2682 $type = $this->phpDocType ?? $this->type; 3224 $this->type = clone $this->type; [all …]
|
/php-src/ext/standard/tests/file/ |
H A D | include_userstream_002.phpt | 21 $this->pos = strlen($this->data); 23 $this->pos = 0; 30 if (!empty($this->stream)) { 33 $ret = substr($this->data, $this->pos, $count); 34 $this->pos += strlen($ret); 40 if (!empty($this->stream)) { 43 return $this->pos; 48 if (!empty($this->stream)) { 51 return $this->pos >= strlen($this->data); 56 if (!empty($this->stream)) { [all …]
|
H A D | bug38450.phpt | 18 $this->varname = $url["host"]; 19 $this->position = 0; 26 $ret = substr($GLOBALS[$this->varname], $this->position, $count); 27 $this->position += strlen($ret); 33 $left = substr($GLOBALS[$this->varname], 0, $this->position); 34 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data)); 36 $this->position += strlen($data); 42 return $this->position; 47 return $this->position >= strlen($GLOBALS[$this->varname]); 54 $this->position = $offset; [all …]
|
H A D | bug38450_1.phpt | 18 $this->varname = $url["host"]; 19 $this->position = 0; 26 $ret = substr($GLOBALS[$this->varname], $this->position, $count); 27 $this->position += strlen($ret); 33 $left = substr($GLOBALS[$this->varname], 0, $this->position); 34 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data)); 36 $this->position += strlen($data); 42 return $this->position; 47 return $this->position >= strlen($GLOBALS[$this->varname]); 54 $this->position = $offset; [all …]
|
H A D | bug38450_2.phpt | 18 $this->varname = $url["host"]; 19 $this->position = 0; 26 $ret = substr($GLOBALS[$this->varname], $this->position, $count); 27 $this->position += strlen($ret); 33 $left = substr($GLOBALS[$this->varname], 0, $this->position); 34 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data)); 36 $this->position += strlen($data); 42 return $this->position; 47 return $this->position >= strlen($GLOBALS[$this->varname]); 54 $this->position = $offset; [all …]
|
H A D | include_userstream_001.phpt | 15 $this->pos = strlen($this->data); 17 $this->po = 0; 24 $ret = substr($this->data, $this->pos, $count); 25 $this->pos += strlen($ret); 31 return $this->pos; 36 return $this->pos >= strlen($this->data); 43 if ($offset < $this->data && $offset >= 0) { 44 $this->pos = $offset; 52 $this->pos += $offset; 59 if (strlen($this->data) + $offset >= 0) { [all …]
|
H A D | bug38450_3.phpt | 18 $this->varname = $url["host"]; 19 $this->position = 0; 26 $ret = substr($GLOBALS[$this->varname], $this->position, $count); 27 $this->position += strlen($ret); 33 $left = substr($GLOBALS[$this->varname], 0, $this->position); 34 $right = substr($GLOBALS[$this->varname], $this->position + strlen($data)); 36 $this->position += strlen($data); 42 return $this->position; 47 return $this->position >= strlen($GLOBALS[$this->varname]); 54 $this->position = $offset; [all …]
|
/php-src/ext/spl/tests/ |
H A D | dualiterator.inc | 43 $this->lhs = $lhs; 52 return $this->lhs; 59 return $this->rhs; 88 return $this->lhs->valid() && $this->rhs->valid(); 99 return array($this->lhs->current(), $this->rhs->current()); 139 ? $this->lhs->current() === $this->rhs->current() 140 && $this->lhs->key() === $this->rhs->key() 141 : $this->lhs->valid() == $this->rhs->valid(); 150 ? $this->lhs->current() == $this->rhs->current() 151 && $this->lhs->key() == $this->rhs->key() [all …]
|
H A D | array_005.phpt | 13 $this->id = $id; 14 $this->name = $name; 19 return $this->id . ', ' . $this->name; 24 return $this->id; 35 $this->id = $other->getId(); 40 echo "ACCEPT ".$this->current()->getId()." == ".$this->id."\n"; 41 return $this->current()->getId() == $this->id; 56 if (!$this->contains($student)) { 57 $this->students[] = $student; 63 foreach ($this->students as $s) [all …]
|
H A D | iterator_003.phpt | 13 $this->id = $id; 14 $this->name = $name; 19 return $this->id . ', ' . $this->name; 24 return $this->id; 35 $this->id = $other->getId(); 40 echo "ACCEPT ".$this->current()->getId()." == ".$this->id."\n"; 41 return $this->current()->getId() == $this->id; 51 $this->students = new ArrayObject(array()); 56 if (!$this->contains($student)) { 57 $this->students[] = $student; [all …]
|
H A D | bug65328.phpt | 26 return $this->head; 121 $this->data = $data; 131 $this->uid = $uid; 139 return $this->uid; 172 $this->data = $data; 180 return $this->data; 189 if(true === $this->assureUnique && !self::checkUnique($parent, $this->uid)) { 223 return $this->children[$this->index]; 236 ++$this->index; 241 $this->index = 0; [all …]
|
/php-src/ext/curl/tests/ |
H A D | bug77535.phpt | 24 if (false === $this->mh = curl_multi_init()) { 28 $this->addServerPushCallback(); 30 $this->curl = curl_init(); 33 curl_setopt($this->curl, CURLOPT_HEADER, false); 34 curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, false); 35 curl_setopt($this->curl, CURLOPT_FAILONERROR, false); 36 curl_setopt($this->curl, CURLOPT_URL, 'https://localhost/serverpush'); 44 curl_multi_add_handle($this->mh, $this->curl); 49 $mrc = curl_multi_exec($this->mh, $stillRunning); 52 $info = curl_multi_info_read($this->mh); [all …]
|
/php-src/ext/phar/tests/files/ |
H A D | pear2coverage.phar | 37 return $this->view->TOC($this->sqlite); 45 return $this->view->testTOC($this->sqlite); 58 return $this->view->TOC($this->sqlite); 88 $this->sqlite = $this->view->getDatabase(); 626 … $decorator->renderSummary($this, $this->retrievePaths(), $this->codepath, false, $coverage[1], 669 $this->coverage = $this->aggregator->retrieveCoverage($this->path); 727 $this->linelinks = $this->aggregator->retrieveLineLinks($this->path); 908 … $decorator->renderSummary($this, $this->retrievePaths(), $this->codepath, false, $coverage[1], 1580 $this->coverage = $this->aggregator->retrieveCoverageByTest($this->path, $this->testname); 1585 $info = $this->aggregator->coverageInfoByTest($this->path, $this->testname); [all …]
|
/php-src/ext/exif/tests/ |
H A D | gh10834.phpt | 17 return $this->position >= strlen($this->data); 21 $this->position = 0; 22 $this->data = file_get_contents(__DIR__.'/bug50845.jpg'); 29 if ($offset < strlen($this->data) && $offset >= 0) { 30 $this->position = $offset; 38 $this->position += $offset; 45 if (strlen($this->data) + $offset >= 0) { 46 $this->position = strlen($this->data) + $offset; 58 $ret = substr($this->data, $this->position, $count); 59 $this->position += strlen($ret); [all …]
|
/php-src/Zend/tests/ |
H A D | bug40833.phpt | 12 if ( isset($this->data[$name]) ) 13 return $this->data[$name]; 15 return $this->data[$name] = new set($this); 20 $this->modified[$name] = $value; 30 $this->entity = $entity; 31 $this->entity->whatever = $this; 35 $this->entity->whatever = null; 40 $this->clear(); 41 // $this->entity->{$this->name} = null; 65 //This will not crash (comment previous & uncomment this to test
|
H A D | bug78340.phpt | 13 $this->bytes= self::$files[$path]; 14 $this->pos= 0; 15 $this->ino= crc32($path); 20 $chunk= substr($this->bytes, $this->pos, $count); 21 $this->pos+= strlen($chunk); 26 return $this->pos >= strlen($this->bytes); 30 $this->bytes= null; 36 'size' => strlen($this->bytes), 37 'ino' => $this->ino
|
/php-src/ext/standard/tests/mail/ |
H A D | mail_util.inc | 31 fclose($this->fp); 36 $this->disconnect(); 48 while (!feof($this->fp)) { 49 $line = fgets($this->fp); 70 while (!feof($this->fp)) { 71 $line = fgets($this->fp); 90 $this->fail("{$tag} failed"); 153 fn($uid) => $this->getHeaders($uid) + ['Body' => $this->getBody($uid)], 212 if (!$this->mailData) { 216 if (!$this->count() > 1) { [all …]
|
/php-src/ext/opcache/tests/jit/ |
H A D | reg_alloc_023.phpt | 12 if (isset($this->a[$key])) { 13 foreach ($this->a[$key] as $i => $data) { 16 unset($this->a[$key][$i]); 21 if (isset($this->type_map[$key])) { 22 foreach ($this->b[$key] as $map_start => $_) { 24 unset($this->b[$key][$map_start]); 28 if (isset($this->c[$key])) { 29 foreach ($this->c[$key] as $map_start => $_) { 31 unset($this->c[$key][$map_start]); 35 if (isset($this->d[$key])) { [all …]
|
/php-src/Zend/tests/foreach/ |
H A D | foreach_003.phpt | 11 $this->count = $count; 12 $this->trap = $trap; 16 if ($trap === $this->trap) { 21 function rewind(): void {$this->trap(__FUNCTION__); $this->n = 0;} 22 function valid(): bool {$this->trap(__FUNCTION__); return $this->n < $this->count;} 23 function key(): mixed {$this->trap(__FUNCTION__); return $this->n;} 24 function current(): mixed {$this->trap(__FUNCTION__); return $this->n;} 25 function next(): void {$this->trap(__FUNCTION__); $this->n++;}
|
/php-src/ext/sqlite3/tests/ |
H A D | gh11878.phpt | 10 $this->sqlite = new SQLite3(":memory:"); 12 …$this->sqlite->createAggregate("indexes", array($this, "SQLiteIndex"), array($this, "SQLiteFinal")… 13 $this->sqlite->createAggregate("indexes_closure", fn () => 0, fn () => 0, 0); 16 $this->sqlite->createFunction("func", array($this, "SQLiteIndex"), 0); 17 $this->sqlite->createFunction("func_closure", fn () => 0, 0); 18 $this->sqlite->createCollation("collation", array($this, "SQLiteIndex")); 19 $this->sqlite->createCollation("collation_closure", fn () => 0);
|