Home
last modified time | relevance | path

Searched refs:this (Results 101 – 125 of 2290) sorted by relevance

12345678910>>...92

/PHP-5.5/Zend/tests/
H A Dclosure_005.phpt2 Closure 005: Lambda inside class, lifetime of $this
10 $this->x = $x;
19 $this->x += $val;
25 echo $this->x."\n";
31 echo $this->x."\n";
36 echo $this->x."\n";
74 Fatal error: Using $this when not in object context in %sclosure_005.php on line 28
H A Dbug47343.phpt14 $this->data['foo'] = new B($this);
15 $this->data['bar'] = new B($this);
17 return $this->data['foo'];
25 $this->A = $A;
H A Ddereference_005.phpt11 $this->container = array(
18 $this->container[$offset] = $value;
21 return isset($this->container[$offset]);
24 unset($this->container[$offset]);
27 return isset($this->container[$offset]) ? $this->container[$offset] : null;
H A Dbug24635.phpt8 function __construct() { $this->page = new PageClass(); }
17 $this->Comment = $comment;
20 out($this->Comment); // this line doesn't crash PHP
21 out("\n<!-- End Section: " . $this->Comment . "-->"); // this line
H A Dbug52614.phpt13 return $this->a1;
17 return $this->a2;
21 $this->a3 = array();
22 return $this->a3;
26 return $this->o1;
30 $this->o2 = new stdClass;
31 return $this->o2;
35 return $this->a1;
H A Dbug64417.phpt9 $this->container[] = $value;
11 $this->container[$offset] = $value;
15 return isset($this->container[$offset]);
18 unset($this->container[$offset]);
22 if (isset($this->container[$offset])) {
23 $result = &$this->container[$offset];
H A Dbug38779_1.phpt10 $this->data = '<' . "?php \n\"\";ll l\n ?" . '>';
11 $this->position = 0;
15 $ret = substr($this->data, $this->position, $count);
16 $this->position += strlen($ret);
20 return $this->position >= strlen($this->data);
/PHP-5.5/ext/spl/tests/
H A Dbug37457.phpt13 $this->array = $a;
19 return current($this->array);
25 return key($this->array);
31 $this->valid = (false !== next($this->array));
37 return $this->valid;
43 $this->valid = (false !== reset($this->array));
H A Diterator_021.phpt36 $this->max_depth = $max_depth;
43 $this->skip = false;
50 if ($this->skip)
52 $this->skip = false;
53 $this->next();
78 $this->skip = false;
80 $res = $this->getDepth() < $this->max_depth && $has;
84 $this->over++;
85 if ($this->over == 2) {
86 $this->skip = true;
[all …]
H A Dobserver_002.phpt45 $this->name = '$' . $name;
55 return $this->name;
66 $this->observers = new MyObjectStorage;
67 $this->name = '$' . $name;
73 $this->observers->attach($observer);
79 $this->observers->detach($observer);
84 return $this->observers->count();
90 foreach($this->observers as $key => $observer)
92 $observer->update($this);
98 return $this->name;
[all …]
/PHP-5.5/ext/standard/tests/file/
H A Dfgetss_variation3-win32.phpt29 <?php echo "this string is within php tag"; ?> {;}<{> this
35 this is the line with \n character.
97 string(10) " {;} this
151 string(10) " {;} this
205 string(10) " {;} this
259 string(10) " {;} this
313 string(10) " {;} this
367 string(10) " {;} this
421 string(10) " {;} this
475 string(10) " {;} this
[all …]
H A Dfgetss_variation3.phpt29 <?php echo "this string is within php tag"; ?> {;}<{> this
35 this is the line with \n character.
93 string(10) " {;} this
147 string(10) " {;} this
201 string(10) " {;} this
255 string(10) " {;} this
309 string(10) " {;} this
363 string(10) " {;} this
417 string(10) " {;} this
471 string(10) " {;} this
[all …]
/PHP-5.5/ext/spl/internal/
H A Dmultipleiterator.inc45 $this->flags = $flags;
51 return $this->flags;
57 $this->flags = $flags;
75 foreach($this->iterators as $iter)
89 $this->iterators->detach($iter);
103 return $this->iterators->count();
109 foreach($this->iterators as $iter)
124 if (!sizeof($this->iterators)) {
130 foreach($this->iterators as $iter)
159 if (!sizeof($this->iterators))
[all …]
H A Drecursivefilteriterator.inc25 * this does not transport any state or control information of your accept()
26 * implementation to the new instance. To overcome this problem you might
27 * need to overwrite getChildren(), call this implementation and pass the
43 return $this->getInnerIterator()->hasChildren();
48 * @note the returned iterator will be of the same class as $this
52 if (empty($this->ref))
54 $this->ref = new ReflectionClass($this);
56 return $this->ref->newInstance($this->getInnerIterator()->getChildren());
/PHP-5.5/tests/lang/
H A DforeachLoopIterator.001.phpt12 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
13 return $this->pos<3;
18 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
19 return $this->myContent[$this->pos++];
24 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
25 $this->pos=0;
30 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
31 return $this->myContent[$this->pos];
36 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
37 return "meal " . $this->pos;
H A DforeachLoopIteratorAggregate.003.phpt11 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
12 return $this->pos<3;
17 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
18 return $this->myContent[$this->pos++];
23 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
24 $this->pos=0;
29 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
30 return $this->myContent[$this->pos];
35 echo "$indent--> " . __METHOD__ . " ($this->pos)\n";
36 return "meal " . $this->pos;
/PHP-5.5/ext/standard/tests/serialize/
H A Dbug31402.phpt12 $this->i = $i;
21 $this->A[1] = new TestX(1);
22 $this->A[2] = & new TestX(2);
23 $this->A[3] = & $this->A[2];
24 $this->B = $this->A[1];
H A Dbug64146.phpt14 $this->a[] = new B(1);
15 $this->a[] = new B(2);
25 $this->b = new C($c);
30 return serialize(clone $this->b);
35 $this->b = unserialize($data);
45 $this->c = $c;
/PHP-5.5/ext/json/tests/
H A Dbug61978.phpt12 $this->test = '123';
13 $this->me = $this;
20 $this->test = '123';
24 'test' => $this->test,
25 'me' => $this
/PHP-5.5/ext/pdo/tests/
H A Dbug47769.phpt14 echo "this is a protected method.\n";
17 echo "this is a private method.\n";
21 $this->isProtected();
22 $this->isPrivate();
33 this is a protected method.
34 this is a private method.
/PHP-5.5/tests/classes/
H A D__set__get_005.phpt13 if (isset($this->x[$name])) {
14 return $this->x[$name];
24 $this->x[$name] = $val;
34 if (!isset($this->x[$name])) {
35 $this->x[$name] = new Test();
37 return $this->x[$name];
42 $this->x[$name] = $val;
H A Dinheritance.phpt13 echo "a = ".$this->a."\n";
14 echo "b = ".$this->b."\n";
17 return $this->a*$this->b;
25 echo "a = ".$this->a."\n";
26 echo "b = ".$this->b."\n";
27 echo "c = ".$this->c."\n";
H A Dctor_dtor_inheritance.phpt18 $this->name = 'base';
19 print_r($this);
24 print_r($this);
32 $this->name = 'init';
33 $this->other = 'other';
34 print_r($this);
37 $this->name = 'derived';
38 print_r($this);
44 print_r($this);
H A Darray_access_010.phpt16 $this->object = $object;
17 $this->element = &$element;
21 echo __METHOD__ . "($this->element, $index)\n";
22 return array_key_exists($index, $this->element);
27 return isset($this->element[$index]) ? $this->element[$index] : NULL;
32 $this->element[$index] = $value;
37 unset($this->element[$index]);
47 $this->person = array(array('name'=>'Foo'));
57 return new ArrayReferenceProxy($this, $this->person[$index]);
62 $this->person[$index] = $value;
[all …]
/PHP-5.5/ext/reflection/tests/
H A Dexception.inc4 $this->errno = $_errno;
5 $this->errmsg = $_errmsg;
9 return $this->errno;
13 return $this->errmsg;

Completed in 44 milliseconds

12345678910>>...92