Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 447) sorted by relevance

12345678910>>...18

/PHP-8.4/scripts/gdb/
H A Dphp_gdb.py39 self.val = val
41 def to_string(self): argument
44 def children(self): argument
74 self.val = val
78 return self.format_type(self.val)
80 def children(self): argument
130 self.val = val
142 self.val = val
145 return '((%s*)0x%x)' % (str(self.cast().type), self.val.address)
174 def is_decl(self): argument
[all …]
/PHP-8.4/ext/mysqlnd/
H A Dmysqlnd_debug.c35 self->stream = php_stream_open_wrapper(self->file_name, in MYSQLND_METHOD()
58 if (!self->stream && FAIL == self->m->open(self, FALSE)) { in MYSQLND_METHOD()
120 self->m->close(self); in MYSQLND_METHOD()
121 self->m->open(self, TRUE); in MYSQLND_METHOD()
145 if (!self->stream && FAIL == self->m->open(self, FALSE)) { in MYSQLND_METHOD()
212 self->m->close(self); in MYSQLND_METHOD()
213 self->m->open(self, TRUE); in MYSQLND_METHOD()
265 self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, ">%s", func_name); in MYSQLND_METHOD()
323self->m->log_va(self, line, file, zend_stack_count(&self->call_stack) - 1, NULL, "<%s", *func_name… in MYSQLND_METHOD()
411 self->m->log_va(self, __LINE__, __FILE__, 0, "info : ", in MYSQLND_METHOD()
[all …]
/PHP-8.4/ext/zlib/
H A Dzlib_fopen_wrapper.c41 if (gzeof(self->gz_file)) { in php_gziop_read()
60 assert(self != NULL); in php_gziop_seek()
77 if (self->gz_file) { in php_gziop_close()
79 self->gz_file = NULL; in php_gziop_close()
81 if (self->stream) { in php_gziop_close()
83 self->stream = NULL; in php_gziop_close()
86 efree(self); in php_gziop_close()
134 self = emalloc(sizeof(*self)); in php_stream_gzopen()
138 if (self->gz_file) { in php_stream_gzopen()
150 gzclose(self->gz_file); in php_stream_gzopen()
[all …]
/PHP-8.4/Zend/tests/grammar/
H A Dsemi_reserved_007.phpt2 Edge case: self::self, self::parent, parent::self semi reserved constants access
7 const self = "self";
11 echo self::self, PHP_EOL;
12 echo self::parent, PHP_EOL;
20 echo parent::self, PHP_EOL;
31 self
34 self
H A Dregression_007.phpt14 public function self() {
23 (new Foo)->self()::new()->self()->self()::use
36 Foo::self
38 Foo::self
39 Foo::self
/PHP-8.4/ext/spl/tests/
H A Diterator_041a.phpt13 if (self::$fail == $state)
22 self::fail(0, __FUNCTION__);
24 self::fail(1, __FUNCTION__);
29 self::fail(2, __FUNCTION__);
35 self::fail(3, __FUNCTION__);
41 self::fail(4, __FUNCTION__);
47 self::fail(5, __FUNCTION__);
65 self::$fail = 7;
66 while(self::$fail < 10)
79 self::$fail = $skip[self::$fail];
[all …]
H A Diterator_041.phpt13 if (self::$fail == $state)
22 self::fail(0, __FUNCTION__);
24 self::fail(1, __FUNCTION__);
29 self::fail(2, __FUNCTION__);
35 self::fail(3, __FUNCTION__);
41 self::fail(4, __FUNCTION__);
59 // self::fail(7, __FUNCTION__);
65 self::$fail = 0;
66 while(self::$fail < 10)
79 self::$fail = $skip[self::$fail];
[all …]
H A Diterator_041b.phpt13 if (self::$fail == $state)
22 self::fail(0, __FUNCTION__);
24 self::fail(1, __FUNCTION__);
29 self::fail(2, __FUNCTION__);
35 self::fail(3, __FUNCTION__);
41 self::fail(4, __FUNCTION__);
47 self::fail(5, __FUNCTION__);
65 self::$fail = 0;
66 while(self::$fail < 10)
79 self::$fail = $skip[self::$fail];
[all …]
/PHP-8.4/ext/zip/
H A Dzip_stream.c49 if (self->zf) { in php_zip_ops_read()
94 if (self->zf) { in php_zip_ops_close()
96 self->zf = NULL; in php_zip_ops_close()
99 if (self->za) { in php_zip_ops_close()
104 efree(self); in php_zip_ops_close()
205 if (self->zf) { in php_zip_ops_seek()
252 self = emalloc(sizeof(*self)); in php_stream_zip_open()
255 self->zf = zf; in php_stream_zip_open()
338 self = emalloc(sizeof(*self)); in php_stream_zip_opener()
340 self->za = za; in php_stream_zip_opener()
[all …]
/PHP-8.4/Zend/tests/
H A Dbug68652.phpt9 if (isset(self::$instance)) {
10 return self::$instance;
12 return self::$instance = new self();
24 if (isset(self::$instance)) {
25 return self::$instance;
27 return self::$instance = new self();
31 if (!isset(self::$instance)) return;
H A Dbug45910.phpt2 Bug #45910 (Cannot declare self-referencing constant)
10 const DDD = self::AAA;
13 self::BBB => 'a',
14 self::CCC => 'b',
15 self::DDD => self::AAA
19 self::$foo;
H A Dself_method_or_prop_outside_class.phpt2 Accessing self:: properties or methods outside a class
9 self::${$str . "bar"};
14 unset(self::${$str . "bar"});
19 isset(self::${$str . "bar"});
24 self::{$str . "bar"}();
33 Cannot access "self" when no class scope is active
34 Cannot access "self" when no class scope is active
35 Cannot access "self" when no class scope is active
36 Cannot access "self" when no class scope is active
H A Dbug45910_2.phpt2 Bug #45910.2 (Cannot declare self-referencing constant)
10 const DDD = self::AAA;
13 self::BBB => 'a',
14 self::CCC => 'b',
15 self::DDD => 11
19 self::$foo;
H A Dlsb_021.phpt2 ZE2 Late Static Binding parent::/self:: forwarding while classname doesn't
16 self::test();
17 call_user_func("self::test");
18 call_user_func(array("self", "test"));
28 (self::class)::test();
29 call_user_func(self::class . "::test");
30 call_user_func(array(self::class, "test"));
52 Deprecated: Use of "self" in callables is deprecated in %s on line %d
55 Deprecated: Use of "self" in callables is deprecated in %s on line %d
H A Dcallable_self_parent_static_deprecation.phpt13 '"self::foo"' => "self::foo",
16 '["self", "foo"]' => ["self", "foo"],
19 '["B", "self::foo"]' => ["B", "self::foo"],
23 '[$this, "self::foo"]' => [$this, "self::foo"],
69 "self::foo"
78 ["self", "foo"]
113 "self::foo"
122 ["self", "foo"]
157 "self::foo"
201 "self::foo"
[all …]
H A Dclass_name_as_scalar_error_007.phpt2 Cannot access self::class when no class scope is active
7 var_dump(self::class);
12 var_dump([self::class]);
19 Cannot use "self" in the global scope
20 Cannot use "self" in the global scope
/PHP-8.4/Zend/tests/attributes/
H A D013_class_scope.phpt6 #[A1(self::class, self::FOO)]
9 #[A1(self::class, self::FOO)]
12 #[A1(self::class, self::FOO)]
15 #[A1(self::class, self::FOO)]
16 public function bar(#[A1(self::class, self::FOO)] $p) { }
30 #[A1(self::class, self::FOO)]
61 return new #[A1(self::class, self::FOO)] class() {
64 #[A1(self::class, self::FOO)]
112 string(28) "Undefined constant self::FOO"
/PHP-8.4/Zend/tests/nullsafe_operator/
H A D001.phpt12 function self() {
13 var_dump('Foo::self()');
75 string(11) "Foo::self()"
79 string(11) "Foo::self()"
83 string(11) "Foo::self()"
87 string(11) "Foo::self()"
91 string(11) "Foo::self()"
95 string(11) "Foo::self()"
99 string(11) "Foo::self()"
102 string(11) "Foo::self()"
[all …]
/PHP-8.4/ext/xmlwriter/
H A Dphp_xmlwriter.c231 zval *self; in ZEND_GET_MODULE() local
251 zval *self; in php_xmlwriter_end() local
269 zval *self; in PHP_FUNCTION() local
310 zval *self; in PHP_FUNCTION() local
333 zval *self; in PHP_FUNCTION() local
356 zval *self; in PHP_FUNCTION() local
386 zval *self; in PHP_FUNCTION() local
423 zval *self; in PHP_FUNCTION() local
454 zval *self; in PHP_FUNCTION() local
499 zval *self; in PHP_FUNCTION() local
[all …]
/PHP-8.4/ext/opcache/tests/jit/
H A Dbug80802.phpt15 if(self::$threadLocalStorage === null){
16 self::$threadLocalStorage = new \ArrayObject();
18 self::$threadLocalStorage[spl_object_id($this)][$key] = $complexData;
23 …if(self::$threadLocalStorage !== null and isset(self::$threadLocalStorage[$h = spl_object_id($this…
24 unset(self::$threadLocalStorage[$h]);
25 if(self::$threadLocalStorage->count() === 0){
26 self::$threadLocalStorage = null;
/PHP-8.4/main/
H A Drfc1867.c218 if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) { in fill_buffer()
219 memmove(self->buffer, self->buf_begin, self->bytes_in_buffer); in fill_buffer()
222 self->buf_begin = self->buffer; in fill_buffer()
225 bytes_to_read = self->bufsize - self->bytes_in_buffer; in fill_buffer()
230 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer()
269 self->buf_begin = self->buffer; in multipart_buffer_new()
312 self->bytes_in_buffer -= (self->buf_begin - line); in next_line()
317 if (self->bytes_in_buffer < self->bufsize) { in next_line()
380 if (!find_boundary(self, self->boundary)) { in multipart_buffer_headers()
591 …if ((bound = php_ap_memstr(self->buf_begin, self->bytes_in_buffer, self->boundary_next, self->boun… in multipart_buffer_read()
[all …]
/PHP-8.4/Zend/tests/traits/
H A Dabstract_method_8.phpt2 Abstract method in trait using "self"
7 abstract private function method(self $x): self;
13 private function method(self $x): self {
/PHP-8.4/ext/standard/tests/mail/
H A Dmail_util.inc15 if (($this->fp = @fsockopen(self::HOST, self::PORT)) === false) {
20 public static function getConnection(): self
23 static::$instance = new self();
59 if (time() - $start > self::TIMEOUT) {
86 if (time() - $start > self::TIMEOUT) {
119 public static function login(string $user): self
121 $self = new self();
122 $self->mailConnecter->send(self::LOGIN, 'LOGIN '.$user.' '.self::PASSWORD);
123 if (!$self->mailConnecter->isSuccess(self::LOGIN)) {
124 $self->mailConnecter->fail('login failed');
[all …]
/PHP-8.4/Zend/tests/array_unpack/
H A Dclasses.phpt7 public const FOO = [0, ...self::ARR, 4];
9 public static $bar = [...self::ARR];
13 public const A = [...self::B];
14 public const B = [...self::A];
47 Exception: Cannot declare self-referencing constant self::B
/PHP-8.4/Zend/tests/enum/
H A Dbacked-implements-multiple.phpt25 self::Hearts, self::Diamonds => 'Red',
26 self::Clubs, self::Spades => 'Black',
32 self::Hearts => 'heart',
33 self::Diamonds => 'diamond',
34 self::Clubs => 'club',
35 self::Spades => 'spade',

Completed in 49 milliseconds

12345678910>>...18