Home
last modified time | relevance | path

Searched refs:self (Results 76 – 100 of 398) sorted by relevance

12345678910>>...16

/PHP-8.1/Zend/tests/
H A Dclosure_037.phpt2 Closure 037: self:: and static:: within closures
11 self::printX();
12 self::print42();
H A Dbug50816.phpt12 public static $mapWithConst = array(self::ONE => 'one', self::TWO => 'two',);
14 public static $mapWithConst1 = array(1 => 'one', self::TWO => 'two',);
15 public static $mapWithConst2 = array(self::ONE => 'one', 1 => 'two',);
H A Dbug79862.phpt20 var_dump(self::$prop1);
21 var_dump(self::$prop2);
22 var_dump(self::$prop5);
23 var_dump(self::$prop6);
H A Dclass_properties_dynamic.phpt8 public $bar = self::BAR | self::BAZ;
H A Dbug41633_1.phpt2 Bug #41633.1 (self:: doesn't work for constants)
6 const A = self::B;
H A Dbug41633_4.phpt2 Bug #41633.4 (self:: doesn't work for constants)
6 const A = self::B;
H A Dbug74053.phpt15 if (self::$max-- <= 0) return;
17 self::$b = new b;
18 self::$new[] = new a;
H A Dobjects_024.phpt10 self::$bar[] = $b;
15 return self::$bar[count(self::$bar)-1];
H A Dbug32322.phpt2 Bug #32322 (Return values by reference broken( using self::),example singleton instance)
20 if ( self::$instance == null )
22 self::$instance = new test('Singleton1');
25 echo "Using old class " . self::$instance -> myname . "\n";
27 return self::$instance;
H A Dbug65419.phpt2 Bug #65419 (Inside trait, self::class != __CLASS__)
9 echo self::class, "\n";
H A Dspecial_name_error3.phpt6 trait self {}
10 Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d
/PHP-8.1/ext/phar/phar/
H A Dclicommand.inc29 $this->cmds = self::getCommands($this);
30 $this->typs = self::getArgTyps($this);
33 self::error("No command given, check ${argv[0]} help\n");
83 self::error($missing);
97 self::notice($msg);
143 return self::getSubFuncs($cmdclass, 'cli_arg_', array('typ'));
154 self::error("Argument to -$key must be an integer.\n");
186 self::error("Requested path '$arg' does not exist.\n");
208 self::error("Path for file '$arg' does not exist.\n");
292 self::error("More than one command given.\n");
[all …]
/PHP-8.1/ext/reflection/tests/
H A Dbug80190.phpt8 public function a(): self
12 public function b(): stdClass|self
51 $method->getReturnType()->__toString() returns self
55 $method->getReturnType()->__toString() returns stdClass|self
57 type(s) in union: ReflectionNamedType(stdClass), ReflectionNamedType(self)
H A DReflectionClassConstant_getValue.phpt8 const X = self::Y * 2;
12 const X = self::Y * 2;
16 const X = self::Y * 2;
/PHP-8.1/ext/sqlite3/tests/
H A Dstream_test.inc17 $ret = substr(self::$string, $this->position, $count);
29 return array('size' => self::$string_length);
39 return ($this->position >= self::$string_length);
/PHP-8.1/ext/phar/tests/
H A Dphar_createdefaultstub.phpt151 fseek($fp, self::LEN);
173 if ($f & self::GZ) {
180 if ($f & self::BZ2) {
200 self::$temp = $temp;
227 include self::START;
467 if ($f & self::GZ) {
494 self::$temp = $temp;
521 include self::START;
769 if ($f & self::GZ) {
796 self::$temp = $temp;
[all …]
H A Dphar_setdefaultstub.phpt171 fseek($fp, self::LEN);
193 if ($f & self::GZ) {
200 if ($f & self::BZ2) {
220 self::$temp = $temp;
247 include self::START;
488 if ($f & self::GZ) {
515 self::$temp = $temp;
542 include self::START;
783 if ($f & self::GZ) {
810 self::$temp = $temp;
[all …]
/PHP-8.1/ext/iconv/
H A Diconv.c2319 iconv_close(self->cd); in php_iconv_stream_filter_dtor()
2320 pefree(self->to_charset, self->persistent); in php_iconv_stream_filter_dtor()
2321 pefree(self->from_charset, self->persistent); in php_iconv_stream_filter_dtor()
2340 if ((iconv_t)-1 == (self->cd = iconv_open(self->to_charset, self->from_charset))) { in php_iconv_stream_filter_ctor()
2346 self->stub_len = 0; in php_iconv_stream_filter_ctor()
2380 pt = self->stub; in php_iconv_stream_filter_append_bucket()
2381 tcnt = self->stub_len; in php_iconv_stream_filter_append_bucket()
2393 if (self->stub_len >= sizeof(self->stub)) { in php_iconv_stream_filter_append_bucket()
2397 self->stub[self->stub_len++] = *(ps++); in php_iconv_stream_filter_append_bucket()
2399 pt = self->stub; in php_iconv_stream_filter_append_bucket()
[all …]
/PHP-8.1/Zend/tests/use_const/
H A Dself_parent.phpt2 Allow self and parent in use const statement
7 use const self as foo;
/PHP-8.1/Zend/tests/use_function/
H A Dself_parent.phpt2 Allow self and parent in use function statement
7 use function self as foo;
/PHP-8.1/Zend/tests/return_types/
H A D025.phpt2 Return type of self is allowed in closure
6 $c = function(): self { return $this; };
/PHP-8.1/Zend/tests/type_declarations/
H A Dtyped_properties_080.phpt13 self::$a;
18 self::$b;
23 self::$c;
H A Dself_on_closure_in_method.phpt2 self return type on closure in a method
8 return function() : self {
/PHP-8.1/tests/lang/
H A Dbug21849.phpt2 Bug #21849 (self::constant doesn't work as method's default parameter)
8 function __construct($arg = self::bar) {
/PHP-8.1/ext/phar/tests/files/
H A Dinclude_path2.phar116 fseek($fp, self::LEN);
135 $info = self::_unpack($m);
138 if ($f & self::GZ) {
145 if ($f & self::BZ2) {
152 $temp = self::tmpdir();
165 self::$temp = $temp;
166 self::$origdir = getcwd();
192 include self::START;
254 if ($entry[4] & self::GZ) {
256 } elseif ($entry[4] & self::BZ2) {
[all …]

Completed in 43 milliseconds

12345678910>>...16