summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-11-30 13:57:20 +0000
committerMarcus Boerger <helly@php.net>2003-11-30 13:57:20 +0000
commitc3fddcab622186c9bdbca89a1af7b14df0ba6345 (patch)
tree92cb0e99af497d3b5fc18a2ab123990831b3bab2 /tests/lang
parent0091b5ca1dea4f12155c7e80cf38c61e75c08469 (diff)
downloadphp-git-c3fddcab622186c9bdbca89a1af7b14df0ba6345.tar.gz
Fix tests for E_STRICT and check for E_STRICT in run-tests.php.
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/bug21669.phpt2
-rw-r--r--tests/lang/bug21961.phpt4
-rw-r--r--tests/lang/bug22231.phpt2
-rw-r--r--tests/lang/bug22367.phpt6
-rw-r--r--tests/lang/bug22510.phpt2
-rw-r--r--tests/lang/bug23922.phpt2
-rw-r--r--tests/lang/bug24403.phpt2
-rwxr-xr-xtests/lang/bug25652.phpt2
-rw-r--r--tests/lang/bug26182.phpt2
9 files changed, 12 insertions, 12 deletions
diff --git a/tests/lang/bug21669.phpt b/tests/lang/bug21669.phpt
index f81011cf6f..643b0695ee 100644
--- a/tests/lang/bug21669.phpt
+++ b/tests/lang/bug21669.phpt
@@ -9,7 +9,7 @@ class Test {
}
class Factory {
- var $name = "Test";
+ public $name = "Test";
function create() {
$obj = new $this->name; /* Parse error */
return $obj;
diff --git a/tests/lang/bug21961.phpt b/tests/lang/bug21961.phpt
index eb2e8d2ce3..24581d663e 100644
--- a/tests/lang/bug21961.phpt
+++ b/tests/lang/bug21961.phpt
@@ -7,7 +7,7 @@ Bug #21961 (get_parent_class() segfault)
class man
{
- var $name, $bars;
+ public $name, $bars;
function man()
{
$this->name = 'Mr. X';
@@ -27,7 +27,7 @@ class man
class bar extends man
{
- var $name;
+ public $name;
function bar($w)
{
diff --git a/tests/lang/bug22231.phpt b/tests/lang/bug22231.phpt
index 91e5b2a44b..84142b01ff 100644
--- a/tests/lang/bug22231.phpt
+++ b/tests/lang/bug22231.phpt
@@ -3,7 +3,7 @@ Bug #22231 (segfault when returning a global variable by reference)
--FILE--
<?php
class foo {
- var $fubar = 'fubar';
+ public $fubar = 'fubar';
}
function &foo(){
diff --git a/tests/lang/bug22367.phpt b/tests/lang/bug22367.phpt
index acc93e1ef5..5b142b4b00 100644
--- a/tests/lang/bug22367.phpt
+++ b/tests/lang/bug22367.phpt
@@ -4,7 +4,7 @@ Bug #22367 (weird zval allocation problem)
<?php
class foo
{
- var $test = array(0, 1, 2, 3, 4);
+ public $test = array(0, 1, 2, 3, 4);
function a($arg) {
var_dump(array_key_exists($arg, $this->test));
@@ -31,8 +31,8 @@ class foo
class bar extends foo
{
- var $i = 0;
- var $idx;
+ public $i = 0;
+ public $idx;
function bar($idx) {
$this->idx = $idx;
diff --git a/tests/lang/bug22510.phpt b/tests/lang/bug22510.phpt
index 24bed43339..5c05a82f30 100644
--- a/tests/lang/bug22510.phpt
+++ b/tests/lang/bug22510.phpt
@@ -4,7 +4,7 @@ Bug #22510 (segfault among complex references)
<?php
class foo
{
- var $list = array();
+ public $list = array();
function finalize() {
print __CLASS__."::".__FUNCTION__."\n";
diff --git a/tests/lang/bug23922.phpt b/tests/lang/bug23922.phpt
index 9d383837a4..1fc6e548ff 100644
--- a/tests/lang/bug23922.phpt
+++ b/tests/lang/bug23922.phpt
@@ -4,7 +4,7 @@ Bug #23922 (scope doesn't properly propagate into internal functions)
<?php
class foo
{
- var $foo = 1;
+ public $foo = 1;
function as_string()
{ assert('$this->foo == 1'); }
diff --git a/tests/lang/bug24403.phpt b/tests/lang/bug24403.phpt
index 2acc54cf08..fe99257d3d 100644
--- a/tests/lang/bug24403.phpt
+++ b/tests/lang/bug24403.phpt
@@ -4,7 +4,7 @@ Bug #24403 (scope doesn't properly propagate into internal functions)
<?php
class a
{
- var $a = array();
+ public $a = array();
function a()
{
diff --git a/tests/lang/bug25652.phpt b/tests/lang/bug25652.phpt
index cf0cc1a265..09cfc18197 100755
--- a/tests/lang/bug25652.phpt
+++ b/tests/lang/bug25652.phpt
@@ -8,7 +8,7 @@ Bug #25652 (Calling Global functions dynamically fails from Class scope)
}
class foo {
- var $arr = array('testfunc');
+ public $arr = array('testfunc');
function bar () {
$this->arr[0]('testvalue');
}
diff --git a/tests/lang/bug26182.phpt b/tests/lang/bug26182.phpt
index 480d1469a0..7d613f812e 100644
--- a/tests/lang/bug26182.phpt
+++ b/tests/lang/bug26182.phpt
@@ -1,7 +1,7 @@
--TEST--
Bug #26182 (Object properties created redundantly)
--INI--
-error_reporting=2039
+error_reporting=4095
--FILE--
<?php