Home
last modified time | relevance | path

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

12345678910>>...13

/PHP-7.1/Zend/tests/
H A Dspecial_name_error1.phpt6 namespace self;
10 Fatal error: Cannot use 'self' as namespace name in %s on line %d
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 Dbug69017.phpt11 public static $a1 = array(self::ONE => 'one');
12 public static $a2 = array(self::ZERO => 'zero');
13 public static $a3 = array(self::MAX => 'zero');
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
H A Dbug60573.phpt2 Bug #60573 (type hinting with "self" keyword causes weird errors)
7 public function setSelf(self $s) { }
46 public function setSelf(self $s) { }
52 public function setSelf(self $s) { }
H A Dclosure_055.phpt2 Closure 055: self::class in static closure in static method.
9 return self::class;
H A Dclosure_056.phpt2 Closure 056: self::class in non-static closure in static method.
9 return self::class;
H A Dzend2.php.txt22 if (self::$m_instance == NULL) {
23 self::$m_instance = new Counter();
25 return self::$m_instance;
83 print "self::FATAL = " . self::FATAL;
198 $this->id = self::$id++;
205 $this->id = self::$id++;
H A Dclosure_053.phpt2 Closure 053: self::class in static closure in non-static method.
9 return self::class;
H A Dclosure_054.phpt2 Closure 054: self::class in non-static closure in non-static method.
9 return self::class;
H A Dclass_name_as_scalar.phpt9 const A = self::class;
14 var_dump(self::class); // self compile time lookup
23 $one = self::class,
26 $four = self::B
H A Dtemporary_cleaning_012.phpt8 self::$property = new self;
/PHP-7.1/ext/phar/tests/cache_list/files/
H A Dnophar.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 …]
H A Dopenssl.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 …]
/PHP-7.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 …]
H A Dnophar.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 …]
H A Dopenssl.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 …]
/PHP-7.1/Zend/tests/type_declarations/
H A Dself_on_closure_in_method.phpt2 self return type on closure in a method
8 return function() : self {
/PHP-7.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-7.1/Zend/tests/grammar/
H A Dsemi_reserved_006.phpt18 private static function self(){ echo __METHOD__, PHP_EOL; }
35 TraitB::self as public;
52 Foo::self();
65 TraitB::self
/PHP-7.1/main/streams/
H A Dmemory.c295 php_stream_memory_data *self; in _php_stream_memory_create() local
298 self = emalloc(sizeof(*self)); in _php_stream_memory_create()
299 self->data = NULL; in _php_stream_memory_create()
300 self->fpos = 0; in _php_stream_memory_create()
301 self->fsize = 0; in _php_stream_memory_create()
302 self->smax = ~0u; in _php_stream_memory_create()
303 self->mode = mode; in _php_stream_memory_create()
569 php_stream_temp_data *self; in _php_stream_temp_create_ex() local
572 self = ecalloc(1, sizeof(*self)); in _php_stream_temp_create_ex()
574 self->mode = mode; in _php_stream_temp_create_ex()
[all …]
/PHP-7.1/tests/classes/
H A Dconstants_basic_005.phpt7 const CONST_2 = self::CONST_1;
8 const CONST_1 = self::BASE_CONST;
H A Dconstants_visibility_001.phpt8 var_dump(self::publicConst);
11 var_dump(self::publicConst);
/PHP-7.1/Zend/tests/return_types/
H A D021.phpt2 Return type allows self
6 public static function getInstance() : self {

Completed in 62 milliseconds

12345678910>>...13