EXPECTF logic in run-tests.php is considerable, so let's avoid it.
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
string(3) "foo"
}
?>
---EXPECTF--
+--EXPECT--
This exception severity is: 1bool(true)
bool(true)
bool(true)
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
echo $a->func2(),"\n";
?>
---EXPECTF--
+--EXPECT--
var1 value
var2 value
in func1
call_user_func(array($c, 'prot'));
call_user_func(array($c, 'priv'));
?>
---EXPECTF--
+--EXPECT--
In __call() for method none()
In __call() for method prot()
In __call() for method priv()
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
int(1)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
float(2834756759.1231)
float(2834756759.1231)
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(3) "020"
string(4) "pead"
string(4) "pead"
};
var_dump($a instanceof A, $a instanceof B);
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
$closure = Closure::bind($foo, $class, $class);
var_dump($closure());
?>
---EXPECTF--
+--EXPECT--
object(class@anonymous)#1 (0) {
}
};
var_dump($class->run());
?>
---EXPECTF--
+--EXPECT--
string(10) "Running..."
var_dump($a, $b, $c, $d, $array);
?>
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
int(2)
}
?>
---EXPECTF--
+--EXPECT--
string(36) "Cannot unpack array with string keys"
string(42) "Cannot unpack Traversable with string keys"
}
}
?>
---EXPECTF--
+--EXPECT--
assert(true);
var_dump(true);
?>
---EXPECTF--
+--EXPECT--
bool(true)
var_dump(assert(false));
var_dump(assert(true));
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(2)
int(2)
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(1) "g"
string(1) "g"
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
NULL
NULL
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(5) "space"
string(5) "space"
string(5) "space"
$h =& f();
}
?>
---EXPECTF--
+--EXPECT--
string(3) "foo"
'foo'
string(3) "foo"
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
Objects returned by array_iterator::getIterator() must be traversable or implement interface Iterator
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
{closure}(NotExistingClass)
bool(false)
{closure}(NotExistingClass), done
?>
===DONE===
---EXPECTF--
+--EXPECT--
===INIT===
string(1) "A"
string(1) "C"
$object = new foo();
$object->test();
?>
---EXPECTF--
+--EXPECT--
test_func1
test_func2
test_func3
?>
===DONE===
---EXPECTF--
+--EXPECT--
Foo::__construct
Caught exception!
===DONE===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===A===
TestB::doSomething(1)
TestA::doSomething(2)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(32767)
int(32767)
int(30719)
throw new Exception ("Whiii");
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
foo
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
Warning: (Registered shutdown functions) Unable to call self::on_shutdown() - function does not exist in Unknown on line 0
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(40) "Creating default object from empty value"
Done
namespace test;
echo "ok\n";
?>
---EXPECTF--
+--EXPECT--
ok
$o->foo();
?>
---EXPECTF--
+--EXPECT--
works
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing restore_error_handler() : error bug #46196 ***
NULL
bool(true)
var_dump(ini_set("arg_separator.output", ""));
var_dump(ini_get("arg_separator.output"));
?>
---EXPECTF--
+--EXPECT--
bool(false)
string(1) "&"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
class b implements a { function f($a=1) {}}
class c extends b {function f() {}}
?>
---EXPECTF--
+--EXPECT--
string(60) "Declaration of c::f() should be compatible with b::f($a = 1)"
$b->A();
?>
===DONE===
---EXPECTF--
+--EXPECT--
B::__construct
A::__construct
B::A
$c->func('This should work!');
?>
---EXPECTF--
+--EXPECT--
string(26) "A::func: This should work!"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
$o= myHelloWorld::getInstance(array(1=>2));
?>
---EXPECTF--
+--EXPECT--
int(1)
int(2)
array(1) {
echo "DONE\n";
?>
---EXPECTF--
+--EXPECT--
DONE
}
?>
---EXPECTF--
+--EXPECT--
bool(false)
string(12) "/** test1 */"
string(12) "/** test2 */"
short_open_tag=0
--FILE--
<?php $u = "chris"; ?><p>Welcome <?= $u ?></p>
---EXPECTF--
+--EXPECT--
<p>Welcome chris</p>
}
echo "POST-CLASS-GUARD2\n";
?>
---EXPECTF--
+--EXPECT--
PRE-CLASS-GUARD
POST-CLASS-GUARD
POST-CLASS-GUARD2
}
echo "POST-CLASS-GUARD2\n";
?>
---EXPECTF--
+--EXPECT--
PRE-CLASS-GUARD
POST-CLASS-GUARD
POST-CLASS-GUARD2
?>
==DONE==
---EXPECTF--
+--EXPECT--
==DONE==
var_dump($class->getTraitAliases());
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
str_replace("foo", "bar", "foobar", $matches);
echo "okey";
?>
---EXPECTF--
+--EXPECT--
okey
var_dump(isset($test->protectedProperty));
var_dump(isset($test->protectedProperty->foo));
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
var_dump($e->getMessage());
}
?>
---EXPECTF--
+--EXPECT--
string(9) "serialize"
$y = '1';
x($y);
print_r($y);
---EXPECTF--
+--EXPECT--
string(25) "Illegal string offset 'a'"
1
ghi::def();
?>
---EXPECTF--
+--EXPECT--
ghi
ghi
\ No newline at end of file
?>
===DONE===
---EXPECTF--
+--EXPECT--
array (
1 => 'first',
2 => 'second',
}
?>
Done
---EXPECTF--
+--EXPECT--
dl Ok
Done
const bar = ["bar" => 3]["bar"];
}
echo "okey";
---EXPECTF--
+--EXPECT--
okey
foreach ($gen2 as $v) { var_dump($v); }
?>
---EXPECTF--
+--EXPECT--
int(1)
$c10 = new C10;
var_dump($c10[] += 5);
---EXPECTF--
+--EXPECT--
Inside C10::offsetGet
NULL
var_dump($e->getMessage());
}
?>
---EXPECTF--
+--EXPECT--
string(36) "Cannot use string offset as an array"
string(27) "Cannot unset string offsets"
string(41) "Only variables can be passed by reference"
var_dump($bar->call(new foo));
?>
---EXPECTF--
+--EXPECT--
string(3) "foo"
}
a(array('bla' => 'false'));
?>
---EXPECTF--
+--EXPECT--
array(1) {
["bla"]=>
string(7) "changed"
$newFoo->bing($oldFoo);
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
string(4) "bing"
$arr = array(1 => 'foo', 'b' => 'bar', 'baz');
var_dump(traverse($arr));
?>
---EXPECTF--
+--EXPECT--
string(3) "baz"
echo -200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
?>
---EXPECTF--
+--EXPECT--
INF-INF
call_user_func(array('Foo', 'aAa'));
?>
---EXPECTF--
+--EXPECT--
nonstatic
string(3) "aAa"
static
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(false)
bar::test();
?>
---EXPECTF--
+--EXPECT--
foo
baz
foo
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(1)
int(5)
Done
}
?>
---EXPECTF--
+--EXPECT--
In NS
string(11) "Foo\Bar\Moo"
Top
}
echo (new Foo)->bar;
?>
---EXPECTF--
+--EXPECT--
3
echo "Done.\n";
?>
---EXPECTF--
+--EXPECT--
11
11
12
var_dump($cb2());
?>
---EXPECTF--
+--EXPECT--
int(1)
int(11)
int(12)
\ No newline at end of file
$closure();
?>
Done.
---EXPECTF--
+--EXPECT--
1
42
42
echo "Done.\n";
---EXPECTF--
+--EXPECT--
Before binding
bool(false)
bool(false)
echo "Done.\n";
---EXPECTF--
+--EXPECT--
Done.
echo "Done.\n";
---EXPECTF--
+--EXPECT--
Before binding
bool(false)
bool(false)
}
?>
---EXPECTF--
+--EXPECT--
Bar
int
Bar
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3)} === array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3)}
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3)} !== string(0) ""
array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3)} !== int(1)
$n = "-1";
$n %= $n;
var_dump($n);
---EXPECTF--
+--EXPECT--
int(0)
Exception: Bit shift by negative number
}
?>
---EXPECTF--
+--EXPECT--
tick
tick
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
float(394758.39454545)
float(394758.39454545)
float(394758.39454545)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(7) "2.9E+37"
string(18) "290000000000000000"
string(15) "290000000000000"
print "done\n";
?>
---EXPECTF--
+--EXPECT--
- empty ---
bool(false)
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
var_dump(test::TEST);
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
int(1)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(32767)
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(32767)
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(32767)
int(32759)
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(12) "test thrown!"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(17) "Exception thrown!"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(25) "foo1(): Exception thrown!"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(24) "foo(): Exception thrown!"
}
?>
---EXPECTF--
+--EXPECT--
int(1)
int(3)
string(1) "b"
var_dump(array_reverse($array));
?>
---EXPECTF--
+--EXPECT--
array(4) {
[0]=>
string(1) "a"
var_dump($arr);
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(2) {
["a"]=>
int(1)
gc_collect_cycles();
echo "DONE\n";
?>
---EXPECTF--
+--EXPECT--
DONE
var_dump($a);
}
?>
---EXPECTF--
+--EXPECT--
int(1)
int(2)
int(3)
$gen->rewind(); // force run
?>
---EXPECTF--
+--EXPECT--
before return
before return in inner finally
outer finally run
var_dump($gen->getReturn());
?>
---EXPECTF--
+--EXPECT--
int(42)
int(24)
int(42)
Y::test();
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
string(1) "a"
new B;
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(1) "a"
echo "\nDone";
?>
---EXPECTF--
+--EXPECT--
*** Displaying various variables through the array captured by the get_defined_vars function call ***
int(1)
float(22.33)
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
Foo::function
Foo::function
CLASS);
---EXPECTF--
+--EXPECT--
string(3) "Foo"
string(3) "Foo"
string(3) "Foo"
USE, PHP_EOL;
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
declare
return
function
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
Foo::new
Foo::new
Foo::new
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
fun (fun) fun
echo PHP_EOL, "Done", PHP_EOL;
---EXPECTF--
+--EXPECT--
Done
echo "Done", PHP_EOL;
---EXPECTF--
+--EXPECT--
Done
echo "Done", PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
Done
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
Obj::empty
Obj::callable
Obj::class
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
Obj::empty
Obj::callable
Obj::class
echo "\nDone\n";
?>
---EXPECTF--
+--EXPECT--
empty
callable
class
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
empty
callable
class
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
empty
callable
trait
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
TraitA::catch
TraitA::list
TraitB::throw
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
From Foo::__construct:
self
parent
echo PHP_EOL, "Done", PHP_EOL;
---EXPECTF--
+--EXPECT--
TraitB::try
Done
echo PHP_EOL, "Done", PHP_EOL;
---EXPECTF--
+--EXPECT--
TraitA::as
Done
echo PHP_EOL, "Done", PHP_EOL;
---EXPECTF--
+--EXPECT--
TraitB::insteadof
Done
}
?>
---EXPECTF--
+--EXPECT--
foo
From foo::__callStatic:
123
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(-2147483648)
int(-2147483647)
int(-2147483638)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(-9223372036854775808)
int(-9223372036854775808)
int(-9223372036854775808)
echo "done!\n";
?>
---EXPECTF--
+--EXPECT--
done!
print "done\n";
?>
---EXPECTF--
+--EXPECT--
- isset ---
bool(true)
bool(false)
print "ok!\n";
goto b;
?>
---EXPECTF--
+--EXPECT--
ok!
ok!
ok!
var_dump($a, $b, $c);
var_dump($arr);
?>
---EXPECTF--
+--EXPECT--
int(1)
int(2)
array(2) {
}
var_dump($coords);
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
array(2) {
var_dump($a);
?>
---EXPECTF--
+--EXPECT--
object(StorageRef)#1 (1) {
["s":"StorageRef":private]=>
array(2) {
$a++; $b++;
var_dump($ref);
?>
---EXPECTF--
+--EXPECT--
int(1)
int(1)
array(2) {
] = $ary[0];
var_dump($ary, $a, $b);
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
array(2) {
var_dump($one, $two, $three);
?>
---EXPECTF--
+--EXPECT--
string(3) "one"
string(3) "two"
string(5) "three"
echo ChildClass2::testStaticFunction() . "\n";
?>
==DONE==
---EXPECTF--
+--EXPECT--
TestClassStatic
TestClassConst
TestClassFunction
echo $childClass2->testStaticFunction() . "\n";
?>
==DONE==
---EXPECTF--
+--EXPECT--
TestClassStatic
TestClassConst
TestClassFunction
echo get_class($childClass) . "\n";
?>
==DONE==
---EXPECTF--
+--EXPECT--
TestClass
ChildClass
==DONE==
echo ChildClass::getClassName() . "\n";
?>
==DONE==
---EXPECTF--
+--EXPECT--
TestClass
ChildClass
==DONE==
?>
==DONE==
---EXPECTF--
+--EXPECT--
TestA
TestB
TestC
unset($fooChild);
?>
---EXPECTF--
+--EXPECT--
Foo::__construct
FooChild::__construct
Foo::__destruct
B::myCatch();
?>
==DONE==
---EXPECTF--
+--EXPECT--
via A:
A
A
echo $o->a;
?>
==DONE==
---EXPECTF--
+--EXPECT--
TestChild
TestChild
TestChild
echo ChildClass2::testStaticVar() . "\n";
echo ChildClass2::testStaticFunction() . "\n";
?>
---EXPECTF--
+--EXPECT--
TestClassStatic
TestClassFunction
ChildClassStatic
echo ChildClass2::testStaticVar() . "\n";
echo ChildClass2::testStaticFunction() . "\n";
?>
---EXPECTF--
+--EXPECT--
TestClassStatic
TestClassFunction
ChildClassStatic
C::testNoForward();
?>
---EXPECTF--
+--EXPECT--
C
C
C
var_dump($list);
echo "Alive\n";
?>
---EXPECTF--
+--EXPECT--
int(0)
string(43) "Call to a member function compare() on null"
int(0)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(-24)
string(8) "8c90929a"
Done
print e::E . "\n";
?>
---EXPECTF--
+--EXPECT--
If you DON'T see this, something's wrong.
<?php
const C = array();
var_dump(C);
---EXPECTF--
+--EXPECT--
array(0) {
}
var_dump(BAR);
}
---EXPECTF--
+--EXPECT--
Foo\Bar\Baz\A::__construct
Foo\Bar\Baz\B::__construct
Foo\Bar\Baz\C::__construct
var_dump(BAR);
}
---EXPECTF--
+--EXPECT--
Foo\Bar\Baz\A::__construct
Foo\Bar\Baz\B::__construct
Foo\Bar\Baz\C::__construct
new B;
}
---EXPECTF--
+--EXPECT--
Foo\Bar\A::__construct
Foo\Bar\Baz\B::__construct
\ No newline at end of file
echo "\nDone\n";
---EXPECTF--
+--EXPECT--
Done
\ No newline at end of file
echo "\nDone\n";
}
?>
---EXPECTF--
+--EXPECT--
string(14) "Foo\Bar\ClassA"
string(14) "Foo\Bar\ClassB"
$returnTypea = (new ReflectionFunction('a'))->getReturnType();
var_dump($returnTypea->isBuiltin(), (string)$returnTypea);
---EXPECTF--
+--EXPECT--
bool(true)
string(6) "object"
bool(true)
$typeHinta = (new ReflectionFunction('a'))->getParameters()[0]->getType();
var_dump($typeHinta->isBuiltin(), (string)$typeHinta);
---EXPECTF--
+--EXPECT--
bool(true)
string(6) "object"
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
echo "done!\n";
?>
---EXPECTF--
+--EXPECT--
done!
?>
==DONE==
---EXPECTF--
+--EXPECT--
object(A)#1 (1) {
["foo"]=>
array(1) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
NULL
NULL
NULL
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
NULL
NULL
NULL
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
NULL
NULL
NULL
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(8) "3337>755"
string(8) "3337>755"
string(4) "wo\7fu"
$callable = $test();
var_dump($callable());
---EXPECTF--
+--EXPECT--
string(3) "bar"
var_dump($a);
?>
---EXPECTF--
+--EXPECT--
string(3) "123"
int(123)
string(3) "123"
var_dump(answer());
---EXPECTF--
+--EXPECT--
int(42)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
NULL
NULL
NULL
$o = new ReportCollision;
---EXPECTF--
+--EXPECT--
ReportCollision: New constructor executed
$o = new C;
$o->foo();
---EXPECTF--
+--EXPECT--
C::foo() works.
$b->newFunc2(); //from T2
$b->newFunc3(); //from T2
$b->func3(); //from Bar
---EXPECTF--
+--EXPECT--
From T1
From Foo
From T1
$test = new TraitsTest();
$test->hello();
?>
---EXPECTF--
+--EXPECT--
Hello
\ No newline at end of file
$test = new TraitsTest();
$test->hello();
?>
---EXPECTF--
+--EXPECT--
Hello
\ No newline at end of file
$test->hello();
?>
---EXPECTF--
+--EXPECT--
HelloHello
\ No newline at end of file
$test->b();
?>
---EXPECTF--
+--EXPECT--
AA
\ No newline at end of file
$test->b();
?>
---EXPECTF--
+--EXPECT--
AA
\ No newline at end of file
$test = new TraitsTest();
$test->hello();
?>
---EXPECTF--
+--EXPECT--
Hello
\ No newline at end of file
$o = new TheWorldIsNotEnough();
$o->sayHello(); // echos Hello Universe!
?>
---EXPECTF--
+--EXPECT--
Hello Universe!
\ No newline at end of file
var_dump($o->getText());
?>
---EXPECTF--
+--EXPECT--
string(4) "test"
string(3) "foo"
string(3) "bar"
\ No newline at end of file
$o = new MyHelloWorld();
$o->sayHello();
?>
---EXPECTF--
+--EXPECT--
Hello World!
\ No newline at end of file
$o->sayHello();
$o->sayWorld();
?>
---EXPECTF--
+--EXPECT--
Hello World!
\ No newline at end of file
$o = new TheWorldIsNotEnough();
$o->sayHello(); // echos Hello Universe!
?>
---EXPECTF--
+--EXPECT--
Hello Universe!
\ No newline at end of file
$o = new MyHelloWorld();
$o->sayHello();
?>
---EXPECTF--
+--EXPECT--
World!
\ No newline at end of file
$test = new TraitsTest();
$test->hello();
?>
---EXPECTF--
+--EXPECT--
Hello
$o->sayWorld();
$o->sayExclamationMark();
?>
---EXPECTF--
+--EXPECT--
Hello World!
\ No newline at end of file
$o = new MyHelloWorld();
$o->saySomething();
?>
---EXPECTF--
+--EXPECT--
Hello
\ No newline at end of file
$o->saySomething();
$o->sayWorld();
?>
---EXPECTF--
+--EXPECT--
Hello World
\ No newline at end of file
$t->talk();
?>
---EXPECTF--
+--EXPECT--
bAB
\ No newline at end of file
$o->sayHelloWorld();
?>
---EXPECTF--
+--EXPECT--
Hello World!
\ No newline at end of file
$o->sayWorld();
?>
---EXPECTF--
+--EXPECT--
Hello World!
\ No newline at end of file
$t->foo();
?>
---EXPECTF--
+--EXPECT--
b
\ No newline at end of file
$o->inc();
?>
---EXPECTF--
+--EXPECT--
1
2
$p->inc();
?>
---EXPECTF--
+--EXPECT--
1
2
1
var_dump(property_exists('TraitsTest', 'foo'));
var_dump(property_exists('TraitsTest2', 'foo'));
?>
---EXPECTF--
+--EXPECT--
PRE-CLASS-GUARD-TraitsTest
PRE-CLASS-GUARD-TraitsTest2
bool(true)
$t = new TraitsTest;
$t->test();
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
hello World!
}
echo "POST-CLASS-GUARD2\n";
?>
---EXPECTF--
+--EXPECT--
PRE-CLASS-GUARD
POST-CLASS-GUARD
POST-CLASS-GUARD2
}
echo "POST-CLASS-GUARD2\n";
?>
---EXPECTF--
+--EXPECT--
PRE-CLASS-GUARD
POST-CLASS-GUARD
POST-CLASS-GUARD2
var_dump($b);
?>
---EXPECTF--
+--EXPECT--
object(SubclassClassicInheritance)#1 (2) {
["hello":"SubclassClassicInheritance":private]=>
int(0)
var_dump($b);
?>
---EXPECTF--
+--EXPECT--
object(SubclassClassicInheritance)#1 (1) {
["hello"]=>
echo "\n";
foo(true);
?>
---EXPECTF--
+--EXPECT--
try
finally
end
var_dump(foo());
?>
---EXPECTF--
+--EXPECT--
try
finally
int(1)
var_dump(foo("para"));
var_dump(bar("para"));
?>
---EXPECTF--
+--EXPECT--
string(3) "try"
string(7) "finally"
string(7) "finally"
var_dump(foo("para"));
?>
---EXPECTF--
+--EXPECT--
int(3)
}
echo "okey";
?>
---EXPECTF--
+--EXPECT--
okey
var_dump(foo());
?>
---EXPECTF--
+--EXPECT--
1234int(1)
var_dump(foo());
?>
---EXPECTF--
+--EXPECT--
123456int(7)
var_dump(foo());
?>
---EXPECTF--
+--EXPECT--
1234int(4)
}
var_dump("end");
?>
---EXPECTF--
+--EXPECT--
string(3) "try"
string(7) "finally"
string(8) "finally2"
}
?>
---EXPECTF--
+--EXPECT--
string(5) "break"
string(9) "continue1"
string(9) "continue1"
var_dump(foo(new Exception()));
?>
---EXPECTF--
+--EXPECT--
string(8) "finally1"
string(8) "finally2"
string(5) "label"
var_dump(foo(true));
?>
---EXPECTF--
+--EXPECT--
string(8) "finally1"
string(7) "catched"
string(8) "finally2"
foo();
?>
---EXPECTF--
+--EXPECT--
label
okey
foo();
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
}
?>
---EXPECTF--
+--EXPECT--
*** Trying Ord With Integer
*** Caught ord() expects parameter 1 to be string, int given
*** Trying Array Map With Invalid Callback
var_dump(int_val_default_null(null));
?>
---EXPECTF--
+--EXPECT--
Testing int val
int(10)
Testing float val
var_dump(strlen("abc"));
?>
---EXPECTF--
+--EXPECT--
int(3)
\ No newline at end of file
var_dump(strlen("abc"));
?>
---EXPECTF--
+--EXPECT--
int(3)
\ No newline at end of file
var_dump(strlen("abc"));
?>
---EXPECTF--
+--EXPECT--
int(3)
\ No newline at end of file
// calls within that file should stay weak, despite being included by strict fille
?>
---EXPECTF--
+--EXPECT--
Success!
// calls within that file should stay weak, despite being included by strict file
?>
---EXPECTF--
+--EXPECT--
Success!
$data = call_user_func_array("implode",array(&$my_var, new StdClass()));
echo "Done.\n";
?>
---EXPECTF--
+--EXPECT--
Done.
echo $b;
echo "ok\n";
?>
---EXPECTF--
+--EXPECT--
ok
ok
ok
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(42)
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(1)
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(6) "030107"
string(6) "030107"
string(8) "070a1e11"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(1)
int(0)
int(0)
var_dump(0x8001 * 0xfffe);
var_dump(0x8001 * -0xffff);
?>
---EXPECTF--
+--EXPECT--
int(-2147450880)
int(2147483646)
float(-2147516415)
echo "-----------\n";
}
?>
---EXPECTF--
+--EXPECT--
int(-16)
int(-922337203685477580)
float(1.4757395258968E+19)
var_dump(0x80000001 * 0xfffffffe);
var_dump(0x80000001 * -0xffffffff);
?>
---EXPECTF--
+--EXPECT--
int(-9223372034707292160)
int(9223372036854775806)
float(-9.2233720390023E+18)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
float(-100)
float(808792757210)
float(-4.5646456464565E+27)
echo bcadd("2.2", "-7.3", "1")."\n";
echo bcadd("-4.27", "7.3");
?>
---EXPECTF--
+--EXPECT--
6.50
-5.1
3.03000
\ No newline at end of file
echo bccomp("2.32", "2.2", "2")."\n";
echo bccomp("2.29", "2.3", "2");
?>
---EXPECTF--
+--EXPECT--
0
1
-1
\ No newline at end of file
echo bccomp("-2", "2", "1")."\n";
echo bccomp("-2.29", "-2.3", "2");
?>
---EXPECTF--
+--EXPECT--
0
-1
1
\ No newline at end of file
<?php
echo bcpow("2", "-4");
?>
---EXPECTF--
+--EXPECT--
0
\ No newline at end of file
bcscale(-4);
echo bcdiv("20.56", "4");
?>
---EXPECTF--
+--EXPECT--
5
\ No newline at end of file
<?php
echo bcadd("-4.27", "7.3");
?>
---EXPECTF--
+--EXPECT--
3
\ No newline at end of file
<?php
echo bcsqrt("0");
?>
---EXPECTF--
+--EXPECT--
0
\ No newline at end of file
$var414 = bcadd(false,null,10);
die('ALIVE');
?>
---EXPECTF--
+--EXPECT--
ALIVE
$a = array(38245310, 324542846, 324542847, 9223372036854743639);
foreach ($a as $x) var_dump(jdtojewish($x));
---EXPECTF--
+--EXPECT--
string(11) "2/22/103759"
string(12) "12/13/887605"
string(5) "0/0/0"
<?php
var_dump(jdtounix(2440579)) . PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
bool(false)
\ No newline at end of file
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_alnum() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_alnum() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_alnum() : usage variations ***
character code 48 is alpha numeric
character code 49 is alpha numeric
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_alnum() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_alnum() : usage variations ***
-- Octal Values --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_alpha() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_alpha() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_alpha() : usage variations ***
character code 65 is alphabetic
character code 66 is alphabetic
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_alpha() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_alpha() : usage variations ***
-- Octal Values --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_cntrl() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_cntrl() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_cntrl() : usage variations ***
character code 0 is control character
character code 1 is control character
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_cntrl() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_cntrl() : usage variations ***
-- Octal Values --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_digit() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_digit() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_digit() : usage variations ***
character code 48 is a numeric digit
character code 49 is a numeric digit
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_digit() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_digit() : usage variations ***
-- Octal Values --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_graph() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_graph() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_graph() : usage variations ***
character code 33 is a printable character
character code 34 is a printable character
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_graph() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_graph() : usage variations ***
-- Octal Values --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_lower() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_lower() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_lower() : usage variations ***
character code 97 is a lower case character
character code 98 is a lower case character
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_lower() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_lower() : usage variations ***
-- Octal Values --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_print() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_print() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_print() : usage variations ***
character code 32 is a printable character
character code 33 is a printable character
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_print() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_print() : usage variations ***
-- Octal Values --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_punct() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_punct() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_punct() : usage variations ***
character code 33 is punctuation
character code 34 is punctuation
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_punct() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_punct() : usage variations ***
-- Octal Values --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_space() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_space() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_space() : usage variations ***
character code 9 is a space character
character code 10 is a space character
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_space() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_space() : usage variations ***
-- Octal Values --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_upper() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_upper() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_upper() : usage variations ***
character code 65 is a uppercase character
character code 66 is a uppercase character
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_upper() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_upper() : usage variations ***
-- Octal Values --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_xdigit() : basic functionality ***
bool(true)
bool(false)
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_xdigit() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_xdigit() : usage variations ***
character code 48 is a hexadecimal 'digit'
character code 49 is a hexadecimal 'digit'
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_xdigit() : usage variations ***
-- Iteration 1 --
setlocale(LC_CTYPE, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ctype_xdigit() : usage variations ***
-- Octal values --
curl_setopt($handle, CURLOPT_STDERR, $s);
echo "Done.";
---EXPECTF--
+--EXPECT--
Done.
curl_close($ch);
?>
---EXPECTF--
+--EXPECT--
bool(true)
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl sending through GET an POST ***
string(203) "array(2) {
["test"]=>
echo 'DONE!';
?>
---EXPECTF--
+--EXPECT--
DONE!
curl_close($ch);
?>
---EXPECTF--
+--EXPECT--
string(6) "DELETE"
string(3) "GET"
curl_exec($ch);
curl_close($ch);
?>
---EXPECTF--
+--EXPECT--
NULL
} while ($active);
?>
okey
---EXPECTF--
+--EXPECT--
okey
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl_exec() : basic functionality ***
string(25) "Hello World!
Hello World!"
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); ***
string(25) "Hello World!
Hello World!"
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl sending through GET an POST ***
string(208) "array(2) {
["test"]=>
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl setting referer ***
string(19) "http://www.refer.er"
===DONE===
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl with user agent ***
string(9) "cURL phpt"
===DONE===
echo "Data: $alldata";
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl_setopt($ch, CURLOPT_WRITEFUNCTION, <closure>); ***
Data: Hello World!
Hello World!===DONE===
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl with cookie ***
string(3) "bar"
===DONE===
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl with HTTP/1.0 ***
string(8) "HTTP/1.0"
===DONE===
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl with HTTP/1.1 ***
string(8) "HTTP/1.1"
===DONE===
var_dump($url == curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
===DONE===
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl_exec() : basic functionality ***
string(75) "Hello World!
Hello World!Hello World!
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl_exec() : basic functionality ***
string(75) "Hello World!
Hello World!Hello World!
curl_close($ch);
?>
===DONE===
---EXPECTF--
+--EXPECT--
Hello World!
Hello World!bool(true)
===DONE===
curl_close($ch);
?>
===DONE===
---EXPECTF--
+--EXPECT--
Hello World!
Hello World!int(200)
===DONE===
curl_close($ch);
?>
===DONE===
---EXPECTF--
+--EXPECT--
string(24) "text/plain;charset=utf-8"
===DONE===
var_dump(curl_getinfo($ch) === curl_getinfo($ch2));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl_copy_handle(): basic ***
bool(true)
===DONE===
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl copy handle with simple GET ***
string(106) "array(2) {
["test"]=>
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl copy handle with simple POST ***
string(163) "array(1) {
["test"]=>
var_dump( $curl_content_copy );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Test curl_copy_handle() after exec() ***
string(106) "array(2) {
["test"]=>
var_dump( $curl_content_copy );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Test curl_copy_handle() after exec() with POST ***
string(163) "array(1) {
["test"]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl copy handle with User Agent ***
string(9) "cURL phpt"
string(9) "cURL phpt"
var_dump( $curl_content );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl copy handle with simple POST using array as arguments ***
string(163) "array(1) {
["test"]=>
echo curl_exec($ch2);
?>
---EXPECTF--
+--EXPECT--
Hello World!
Hello World!
Hello World!
var_dump(curl_getinfo($ch) === curl_getinfo($ch2));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl_copy_handle(): basic ***
bool(false)
===DONE===
var_dump(curl_getinfo($ch) === curl_getinfo($ch2));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing curl_copy_handle(): add options after copy ***
bool(true)
bool(false)
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
===DONE===
echo $errno . PHP_EOL;
echo curl_multi_strerror($errno) . PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
0
No error
6
echo $results2;
?>
---EXPECTF--
+--EXPECT--
array(2) {
["test"]=>
string(7) "getpost"
curl_multi_close($cmh);
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
===DONE===
var_dump(strtolower(curl_multi_strerror(CURLM_BAD_HANDLE)));
?>
---EXPECTF--
+--EXPECT--
string(8) "no error"
string(20) "invalid multi handle"
echo $errno . PHP_EOL;
echo curl_share_strerror($errno) . PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
0
No error
1
var_dump(strtolower(curl_strerror(-1)));
?>
---EXPECTF--
+--EXPECT--
string(8) "no error"
string(20) "unsupported protocol"
string(13) "unknown error"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(4) "31st"
string(3) "1st"
string(3) "2nd"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(1) "2"
string(3) "177"
string(1) "6"
var_dump($timezone_abbreviations["utc"]);
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(5) {
[0]=>
array(3) {
var_dump($tzold->getName());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(3) "UTC"
string(3) "UTC"
string(10) "US/Eastern"
var_dump($period->getDateInterval()->format('%R%y-%m-%d-%h-%i-%s'));
?>
---EXPECTF--
+--EXPECT--
string(19) "2000-01-01 00:00:00"
string(13) "Europe/Berlin"
string(19) "2000-01-31 00:00:00"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing clone of objects derived from DateTimeZone class with __clone magic method***
-- DateTimeExt1 __clone magic method called --
string(16) "America/New_York"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing DateTimeZone() : error conditions ***
-- Testing new DateTimeZone() with more than expected no. of arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing DateTime::__construct() : usage variation - unexpected values to first argument $timezone***
-- int 0 --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing basic DateTimeZone inheritance() ***
-- Create an instance of DateTimeZoneExt --
?>
===DONE===
---EXPECTF--
+--EXPECT--
object(DateTimeZone)#1 (2) {
["timezone_type"]=>
int(3)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing clone on DateTime objects ***
Original: 22:41:50
Clone: 14:25:41
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing clone of objects derived from DateTime class with __clone magic method***
-- DateTimeExt1 __clone magic method called --
string(8) "02.03.09"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_create() : error conditions ***
-- Testing new DateTime() with more than expected no. of arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing basic DateTime inheritance() ***
-- Create an instance of DateTimeExt --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing new DateTime() : with user space __construct magic method ***
May 1, 1967, 10:30:41 pm
===DONE===
\ No newline at end of file
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing new DateTime() : with user format() method ***
May 1, 1967, 10:30:41 pm
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing clone on DateTime objects ***
Format method: Thu., Nov. 29, 2012 5:00PM
createFromFormat method: Thu., Nov. 29, 2012 5:00PM
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing DateTime::getOffset() : basic functionality ***
Winter offset: 0 hours
Summer offset: 1 hours
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing DateTime::getTimezone() : basic functionality ***
string(13) "Europe/London"
string(16) "America/New_York"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing DateTime::modify() : basic functionality ***
After modification 1: Sun, 01 Feb 2009
After modification 2: Tue, 10 Feb 2009 18:28:43
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing DateTime::setDate() : basic functionality ***
Fri, 30 Jan 2009 19:34:10 +0000
Fri, 01 Feb 2008 19:34:10 +0000
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing DateTime::setISODate() : basic functionality ***
Week 40 of 2009 is in "September"
Week 30 day 3 of 2009 is "Wed Jul 22"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing DateTime::setTime() : basic functionality ***
Initial date: Sat, 31 Jan 2009 15:14:10 +0000
After modification1 Sat, 31 Jan 2009 17:20:00 +0000
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing DateTime::setTimezone() : basic functionality ***
Default timezone: Europe/London
New timezone: America/Los_Angeles
print "wanted=Monday 00:30:00\n\n";
?>
---EXPECTF--
+--EXPECT--
TZ=Africa/Bujumbura - *Note*: Unexpected, as does not appear to
have a DST or timezone transition.
tStamp=Thursday 1970-01-01 17:17:17 CAT 0
print strtotime('2008-05-23 00:00:00');
?>
---EXPECTF--
+--EXPECT--
1211472000
1211472000
var_dump('time() difference greater or equal 1 second');
}
?>
---EXPECTF--
+--EXPECT--
string(36) "microtime() difference less 1 second"
string(31) "time() difference less 1 second"
\ No newline at end of file
print_r($x);
$y = unserialize(serialize($x));
print_r($y);
---EXPECTF--
+--EXPECT--
DateInterval Object
(
[y] => 3
var_dump('this should be the only output');
?>
---EXPECTF--
+--EXPECT--
string(30) "this should be the only output"
$a_date = date_parse_from_format('yz', $trans_date);
var_dump($a_date);
?>
---EXPECTF--
+--EXPECT--
array(12) {
["year"]=>
int(2010)
echo $a->format(DateTime::COOKIE);
echo "\n";
?>
---EXPECTF--
+--EXPECT--
Thursday, 01-Jan-2009 00:00:00 WET
Thursday, 01-Jan-2009 00:00:00 WET
$dt->setTime(20, 30, 40);
var_dump($dt->format('o-\WW-N | Y-m-d | H:i:s | U'));
?>
---EXPECTF--
+--EXPECT--
string(47) "2005-W52-7 | 2006-01-01 | 00:00:00 | 1136073600"
string(47) "2005-W52-1 | 2005-12-26 | 00:00:00 | 1135555200"
string(47) "2007-W41-3 | 2007-10-10 | 00:00:00 | 1191974400"
$date = DateTime::createFromFormat(DateTime::COOKIE, "Mon, 21-Jan-2041 15:24:52 GMT");
print_r($date);
?>
---EXPECTF--
+--EXPECT--
DateTime Object
(
[date] => 2041-01-21 15:24:52.000000
}
?>
---EXPECTF--
+--EXPECT--
string(51) "DatePeriod::__construct(): Unknown or bad format ()"
echo "DONE\n";
?>
---EXPECTF--
+--EXPECT--
DONE
echo implode(' ', $line), "\n";
}
?>
---EXPECTF--
+--EXPECT--
### 2012-03-29 Thu 2012-03-30 Fri 2012-03-31 Sat 2012-04-01 Sun 2012-04-02 Mon 2012-04-03 Tue 2012-04-04 Wed 2012-04-05 Thu
-11 2012-03-14 Wed 2012-03-15 Thu 2012-03-16 Fri 2012-03-16 Fri 2012-03-16 Fri 2012-03-19 Mon 2012-03-20 Tue 2012-03-21 Wed
var_dump(new Foo($date));
?>
Done
---EXPECTF--
+--EXPECT--
First try
Second try
object(Foo)#1 (3) {
var_dump(date(\DateTime::RFC7231, $date));
?>
---EXPECTF--
+--EXPECT--
string(29) "Sat, 30 Apr 2016 17:52:13 GMT"
var_dump(get_object_vars($diff)['f']);
var_dump($diff->f === get_object_vars($diff)['f']);
?>
---EXPECTF--
+--EXPECT--
float(0.123456)
float(0.123456)
bool(true)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_add() : basic functionality ***
string(19) "2008-01-01 12:25:00"
string(19) "2011-07-06 00:55:05"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_date_set() : basic functionality ***
Fri, 30 Jan 2009 19:34:10 +0000
Fri, 01 Feb 2008 19:34:10 +0000
from the multiple names like Europe/Berlin or Europe/Paris . For this reason the test is
parametrized so there is no hardcoded timezone data.*/
?>
---EXPECTF--
+--EXPECT--
UTC
UTC
putenv('TZ=');
echo date_default_timezone_get(), "\n";
?>
---EXPECTF--
+--EXPECT--
UTC
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_format() : basic functionality ***
string(23) "July 14, 2005, 10:30 pm"
string(8) "07.14.05"
var_dump($i->y);
var_dump($i->d);
?>
---EXPECTF--
+--EXPECT--
int(1)
int(14)
int(3)
echo date_interval_format($interval, '%d days');
?>
---EXPECTF--
+--EXPECT--
4 days
32 days
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_isodate_set() : basic functionality ***
Week 40 of 2009 is in "September"
Week 30 day 3 of 2009 is "Wed Jul 22"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_modify() : basic functionality ***
After modification 1: Sun, 01 Feb 2009
After modification 2: Tue, 10 Feb 2009 18:28:43
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_offset_get() : basic functionality ***
Winter offset: 0 hours
Summer offset: 1 hours
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_sub() : basic functionality ***
string(19) "2008-01-01 12:25:00"
string(19) "2004-06-26 23:54:55"
var_dump($sun_info);
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(9) {
["sunrise"]=>
int(1165897761)
}
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
2007-04-13 06:13:31 CEST sunrise
2007-04-13 20:30:51 CEST sunset
2007-04-13 13:22:11 CEST transit
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
sunrise: 21:00:00
sunset: 21:00:00
transit: 10:03:48
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_sunrise() : usage variation ***
string(5) "06:42"
string(5) "06:41"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_sunrise() : usage variation ***
--12 Aug 2008--
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_sunset() : usage variation ***
--Pacific/Samoa--
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_sunset() : usage variation ***
--12 Aug 2008--
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_time_set() : basic functionality ***
Initial date: Sat, 31 Jan 2009 15:14:10 +0000
After modification1 Sat, 31 Jan 2009 17:20:00 +0000
var_dump(date_format($dtms021, 'B => (U) => T Y-M-d H:i:s'));
?>
---EXPECTF--
+--EXPECT--
string(47) "021 => (1234567890) => UTC 2009-Feb-13 23:31:30"
\ No newline at end of file
var_dump(date_timestamp_set($dtms021, null));
?>
---EXPECTF--
+--EXPECT--
object(DateTime)#1 (3) {
["date"]=>
string(26) "1970-01-01 00:00:00.000000"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_timezone_get() : basic functionality ***
string(13) "Europe/London"
string(16) "America/New_York"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing date_timezone_set() : basic functionality ***
Default timezone: Europe/London
New timezone: America/Los_Angeles
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing getdate() : usage variation ***
--octal 05--
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing getdate() : usage variation ***
--hexadcimal 0x5--
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing getdate() : usage variation ***
--01 Jan 1970--
};
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing getdate() : usage variation ***
--Pacific/Samoa--
};
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing getdate() : usage variation ***
--String 0--
var_dump( gmmktime($hour, $min, $sec, $mon, $day, $year) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing gmmktime() : usage variation ***
-- Testing gmmktime() function with supplying octal values to arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing gmstrftime() : usage variation ***
--Newline character--
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing gmstrftime() : usage variation ***
--A literal % character--
var_dump( idate($format, $timestamp) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing idate() : usage variation ***
-- Testing idate() function for 2 digit year having no zero as starting number --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing localtime() : usage variation ***
--Octal 0--
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing localtime() : usage variation ***
--Hexa-decimal 0--
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing strftime() : usage variation ***
--Newline character--
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing strftime() : usage variation ***
-- Testing strftime() function with a literal % character to format --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing timezone_abbreviations_list() : basic functionality ***
string(5) "array"
int(142)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing timezone_identifiers_list() : basic functionality ***
Check return tpe is ARRAY
bool(true)
var_dump( timezone_name_from_abbr("", 62400) ); // offset = 24 hrs
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing timezone_name_from_abbr() : basic functionality ***
-- Tests with special cases first - no lookup needed --
string(3) "UTC"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing timezone_offset_get() : usage variation - unexpected values to first argument $object***
-- int 0 --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing timezone_offset_get() : usage variation - unexpected values to second argument $datetime***
-- int 0 --
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
database file created
This is a test insert
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
database file created
This is a test insert
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
int(14)
database file created
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
database file created
This is a test insert
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
database file created
This is a test insert
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
int(14)
database file created
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
bool(true)
bool(true)
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
database file created
database file opened
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
database file created
bool(true)
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
database file created
bool(true)
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
YY
bool(true)
<?php
require(dirname(__FILE__) .'/clean.inc');
?>
---EXPECTF--
+--EXPECT--
database handler: db4
YY
bool(true)
echo $e->getMessage(), "\n";
}
?>
---EXPECTF--
+--EXPECT--
DOMAttr::__construct() expects at least 1 parameter, 0 given
print $attr->value."\n";
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
$attr->value = 1;
print $attr->value;
?>
---EXPECTF--
+--EXPECT--
1
echo $dom->saveXML();
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0"?>
<!--test-comment-more-data-->
\ No newline at end of file
echo $e->getMessage(), "\n";
}
?>
---EXPECTF--
+--EXPECT--
DOMComment::__construct() expects at most 1 parameter, 2 given
echo $dom->saveXML();
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0"?>
<!--test-inserted-comment-->
}
?>
---EXPECTF--
+--EXPECT--
Throws DOMException for -ve offset
}
?>
---EXPECTF--
+--EXPECT--
Throws DOMException for offset too large
\ No newline at end of file
echo $dom->saveXML();
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0"?>
<!--testreplacedcomment-->
<?xml version="1.0"?>
}
?>
---EXPECTF--
+--EXPECT--
Throws DOMException for -ve offest
}
?>
---EXPECTF--
+--EXPECT--
Throws DOMException for offest too large
\ No newline at end of file
echo $e->getMessage(), "\n";
}
?>
---EXPECTF--
+--EXPECT--
DOMDocumentFragment::__construct() expects exactly 0 parameters, 1 given
}
?>
---EXPECTF--
+--EXPECT--
PASS
echo get_class($attr);
?>
---EXPECTF--
+--EXPECT--
DOMAttr
$dom->appendChild($ref);
echo $dom->saveXML();
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0"?>
$doc->loadHTML("<html><body><p>Test<br></p></body></html>");
echo $doc->saveHTML();
?>
---EXPECTF--
+--EXPECT--
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body><p>Test<br></p></body></html>
var_dump($result);
?>
---EXPECTF--
+--EXPECT--
bool(true)
$result = $doc->relaxNGValidate($rng);
var_dump($result);
?>
---EXPECTF--
+--EXPECT--
bool(true)
echo file_get_contents($filename);
unlink($filename);
?>
---EXPECTF--
+--EXPECT--
int(126)
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>This is the title</title></head></html>
echo file_get_contents($filename);
unlink($filename);
?>
---EXPECTF--
+--EXPECT--
int(129)
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
$text = $title->appendChild($text);
echo $doc->saveHTML();
?>
---EXPECTF--
+--EXPECT--
<html><head><title>This is the title</title></head></html>
echo $doc->saveHTML(NULL), "\n";
echo $doc->saveHTML($title), "\n";
?>
---EXPECTF--
+--EXPECT--
<html><head><title>This is the title</title></head></html>
<title>This is the title</title>
$e = $e->item(0);
echo $d->saveXml($e),"\n";
echo $d->saveHtml($e),"\n";
---EXPECTF--
+--EXPECT--
<p>Hi.<br/>there</p>
<p>Hi.<br>there</p>
$temp_filename = dirname(__FILE__)."/DomDocument_save_basic.tmp";
unlink($temp_filename);
?>
---EXPECTF--
+--EXPECT--
Wrote: 72 bytes
unlink($filename);
---EXPECTF--
+--EXPECT--
int(151)
bool(true)
\ No newline at end of file
$dom->loadXML($xml);
var_dump($dom->validate());
?>
---EXPECTF--
+--EXPECT--
bool(true)
$dom->load(dirname(__FILE__).'/dom.xml');
var_dump($dom->validate());
?>
---EXPECTF--
+--EXPECT--
bool(true)
?>
---EXPECTF--
+--EXPECT--
Verify that we have a DOMElement object:
DOMElement
$doc = $imp->createDocument(null, 'html', $doctype);
echo $doc->saveHTML();
?>
---EXPECTF--
+--EXPECT--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html></html>
$doc = $x->createDocument(null, 'html');
echo $doc->saveHTML();
?>
---EXPECTF--
+--EXPECT--
<html></html>
var_dump($imp->hasFeature('Core', '1.0'));
var_dump($imp->hasFeature('XML', '2.0'));
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
var_dump(count($root->attributes));
?>
---EXPECTF--
+--EXPECT--
int(5)
int(5)
int(5)
$output = dirname(__FILE__).'/DOMNode_C14NFile_basic.tmp';
unlink($output);
?>
---EXPECTF--
+--EXPECT--
int(34)
string(34) "<title>The Grapes of Wrath</title>"
$node = $doc->getElementsByTagName('title')->item(0);
var_dump($node->C14N());
?>
---EXPECTF--
+--EXPECT--
string(34) "<title>The Grapes of Wrath</title>"
dumpcourse($children->item($index));
}
---EXPECTF--
+--EXPECT--
Start cloneNode test
node 0
Course: new title3:DOMElement
var_dump($node->getLineNo());
}
?>
---EXPECTF--
+--EXPECT--
int(4)
int(8)
var_dump($node->getNodePath());
}
?>
---EXPECTF--
+--EXPECT--
string(20) "/books/book[1]/title"
string(20) "/books/book[2]/title"
var_dump($dom->documentElement->hasChildNodes());
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0"?>
<root/>
Document has child nodes
var_dump($text->hasChildNodes());
?>
---EXPECTF--
+--EXPECT--
Root has child nodes: bool(true)
Title has child nodes: bool(true)
Text has child nodes: bool(false)
\ No newline at end of file
echo $dom->saveXML();
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0"?>
<root/>
Add new node B
}
?>
---EXPECTF--
+--EXPECT--
Wrong Document Error
var_dump($title->childNodes->length);
?>
---EXPECTF--
+--EXPECT--
Number of child nodes of title = int(1)
Number of child nodes of title after adding second title = int(2)
Number of child nodes of title after normalizing author = int(2)
dumpcourse($current);
}
---EXPECTF--
+--EXPECT--
original has 5 nodes
node 4
Course: no title:DOMText
var_dump(count($root->childNodes));
?>
---EXPECTF--
+--EXPECT--
int(7)
int(7)
int(7)
var_dump($z->p_array);
var_dump($z->p_variable);
?>
---EXPECTF--
+--EXPECT--
array(4) {
[0]=>
string(5) "bonus"
var_dump(empty($doc->nodeType), empty($doc->firstChild->nodeType))
?>
===DONE===
---EXPECTF--
+--EXPECT--
DOMNodeList
int(0)
bool(true)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
DOMDocumentType
<?xml version="1.0" encoding="utf-8"?>
<set><foo>footext</foo><bar>bartext</bar></set>
test namespace prefix is also included */
echo $doc->C14N(TRUE, FALSE, NULL, array('test'));
?>
---EXPECTF--
+--EXPECT--
<contain xmlns="http://www.example.com/ns/foo" xmlns:fubar="http://www.example.com/ns/fubar" xmlns:test="urn::test">
<bar><test1></test1></bar>
var_dump($current->textContent);
}
---EXPECTF--
+--EXPECT--
bool(true)
--- child 0 ---
DOMText
var_dump($current->textContent);
}
---EXPECTF--
+--EXPECT--
bool(true)
--- child 0 ---
DOMComment
?>
Done
---EXPECTF--
+--EXPECT--
Test
bool(true)
bool(true)
var_dump($info['MakerNote']);
}
?>
---EXPECTF--
+--EXPECT--
nokia.jpg: string(5) "Nikon"
samsung.jpg: NULL
panasonic.jpg: string(9) "Panasonic"
echo 'int(' . $len . ')', PHP_EOL;
}
?>
---EXPECTF--
+--EXPECT--
nokia.jpg: int(5899)
samsung.jpg: int(5778)
panasonic.jpg: int(651)
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
---EXPECTF--
+--EXPECT--
finfo::finfo() expects at most 2 parameters, 3 given
var_dump($f->file(dirname(__FILE__) . DIRECTORY_SEPARATOR . '68398.zip'));
?>
+++DONE+++
---EXPECTF--
+--EXPECT--
string(31) "application/zip; charset=binary"
+++DONE+++
$fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug69320.txt";
unlink($fname);
?>
---EXPECTF--
+--EXPECT--
string(10) "text/plain"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing finfo_buffer() : basic functionality ***
string(36) "ASCII text, with no line terminators"
string(3) "ELF"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing finfo_buffer() : basic functionality ***
string(36) "ASCII text, with no line terminators"
string(3) "ELF"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing finfo_buffer() : variation functionality with oo interface ***
string(36) "ASCII text, with no line terminators"
string(3) "ELF"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing finfo_buffer() : variation functionality with oo interface ***
string(36) "ASCII text, with no line terminators"
string(3) "ELF"
finfo_file($fp, $png)
);
?>
---EXPECTF--
+--EXPECT--
string(15) "application/zip"
string(9) "directory"
string(9) "image/png"
echo "done!\n";
?>
---EXPECTF--
+--EXPECT--
done!
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing finfo extension : loading info phpinfo() ***
int(1)
===DONE===
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(5) "a@b.c"
string(30) "a[!@#$%^&*@a@#$%^&*.com@#$%^&*"
string(21) "whitespaceheresommore"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(40) "Let me see you Stripped down to the bone"
string(11) "!@#$%^&*()>"
string(0) ""
}
echo "Ok.";
?>
---EXPECTF--
+--EXPECT--
Ok.
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(2) {
["test1"]=>
int(1)
print "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
var_dump(filter_var('1fff::a88:85a3::172.31.128.1', FILTER_VALIDATE_IP,FILTER_FLAG_IPV6));
?>
---EXPECTF--
+--EXPECT--
bool(false)
string(39) "3ffe:6a88:85a3:08d3:1319:8a2e:0370:7344"
bool(false)
<?php
var_dump(filter_var(new stdClass, FILTER_VALIDATE_EMAIL));
?>
---EXPECTF--
+--EXPECT--
bool(false)
var_dump(filter_var($email_address, FILTER_VALIDATE_EMAIL));
?>
---EXPECTF--
+--EXPECT--
string(21) "test=mail@example.com"
string(21) "test-mail@example.com"
string(21) "test+mail@example.com"
FILTER_NULL_ON_FAILURE
));
---EXPECTF--
+--EXPECT--
NULL
--XFAIL--
Requires php_zval_filter to not use convert_to_string for all filters.
---EXPECTF--
+--EXPECT--
NULL
}
echo "\n";
?>
---EXPECTF--
+--EXPECT--
float(0.23)
float(-42)
float(42)
$out = filter_var($data, FILTER_VALIDATE_FLOAT, FILTER_REQUIRE_ARRAY);
var_dump($out);
?>
---EXPECTF--
+--EXPECT--
array(5) {
[0]=>
bool(false)
var_dump($array);
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
&array(1) {
$fooBarPath = __DIR__ . '/ftp_append_foobar';
unlink($fooBarPath);
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
var_dump($time);
?>
---EXPECTF--
+--EXPECT--
bool(true)
June 15 1998 10:00:45 000000
June 15 1998 10:00:45 000000
imagedestroy($src); imagedestroy($dst_tc);
?>
---EXPECTF--
+--EXPECT--
46FF0000
$c = imagecolorat($img, 0,0);
printf("%X", $c);
?>
---EXPECTF--
+--EXPECT--
32FF0000
$c = imagecolorat($rotate,5,5);
printf("%X\n", $c);
?>
---EXPECTF--
+--EXPECT--
32FF0000
imagefill($im,0,0,$bgcolor);
print_r(imagecolorat($im, 1,0));
?>
---EXPECTF--
+--EXPECT--
16776960
imagedestroy($im);
?>
---EXPECTF--
+--EXPECT--
DONE
\ No newline at end of file
print "OK";
?>
---EXPECTF--
+--EXPECT--
OK
<?php
var_dump(function_exists('imagecolorclosesthwb'));
?>
---EXPECTF--
+--EXPECT--
bool(true)
?>
--CLEAN--
<?php @unlink(dirname(__FILE__) . '/bug48732私はガラスを食べられます.png'); ?>
---EXPECTF--
+--EXPECT--
Left Bottom: (0, 46)
?>
--CLEAN--
<?php @unlink(dirname(__FILE__) . '/bug48732.png'); ?>
---EXPECTF--
+--EXPECT--
Left Bottom: (0, 46)
}
echo 'OK';
?>
---EXPECTF--
+--EXPECT--
OK
\ No newline at end of file
}
echo "OK\n";
?>
---EXPECTF--
+--EXPECT--
OK
echo "OK\n";
?>
---EXPECTF--
+--EXPECT--
OK
echo "OK\n";
?>
---EXPECTF--
+--EXPECT--
OK
$img = imagerotate(imagecreate(10,10),45,0x7ffffff9);
var_dump($img);
?>
---EXPECTF--
+--EXPECT--
resource(5) of type (gd)
\ No newline at end of file
imageaffinematrixget(4,$vals[0]);
var_dump($vals[0]);
?>
---EXPECTF--
+--EXPECT--
string(200) "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
\ No newline at end of file
imagedestroy($im);
?>
---EXPECTF--
+--EXPECT--
FF00FF
64FF00FF
0
?>
---EXPECTF--
+--EXPECT--
FF00FF
Array
(
echo "P/TC: ok\n";
}
?>
---EXPECTF--
+--EXPECT--
TC/TC: ok
TC/P: ok
P/P: ok
if (!check_doublesize($dst_tc)) exit("3 failed\n");
echo "P->P: ok\n";
?>
---EXPECTF--
+--EXPECT--
TC->TC: ok
P->TC: ok
P->P: ok
?>
---EXPECTF--
+--EXPECT--
Horizontal: ok
Vertical: ok
Diagonal: ok
var_dump(imageantialias($image, 'wrong param')); // 'wrogn param' is converted to true
?>
---EXPECTF--
+--EXPECT--
bool(true)
var_dump( imagecolorallocate($im, 255, 255, 255) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing imagecolorallocate() : basic functionality ***
int(16711680)
int(65280)
};
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing imagecolorallocate() : usage variations ***
--Octal 000--
};
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing imagecolorallocate() : usage variations ***
--Decimal 256--
$background_color = imagecolorallocate($imb, 0, 0, 100);
var_dump(imagecolormatch($ima, $imb));
?>
---EXPECTF--
+--EXPECT--
bool(true)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing imagecolorstotal() : basic functionality ***
Total colors in image: 128
===DONE===
\ No newline at end of file
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing imagecolorstotal() : basic functionality ***
int(0)
int(1)
var_dump(imagefilter($image, IMG_FILTER_COLORIZE, 800, 255, 255)); // Wrong value is truncated to 255
?>
---EXPECTF--
+--EXPECT--
bool(true)
imagedestroy($im);
?>
---EXPECTF--
+--EXPECT--
The images are equal.
}
echo "ok\n";
?>
---EXPECTF--
+--EXPECT--
ok
?>
==DONE==
---EXPECTF--
+--EXPECT--
LC_ALL=de_DE
hello=hallo
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(false)
string(5) "UTF-8"
Done
var_dump(gettext('Basic test'));
?>
---EXPECTF--
+--EXPECT--
string(10) "Basic test"
string(12) "A basic test"
--CREDITS--
<?php
chdir(dirname(__FILE__));
var_dump(bindtextdomain('example.org', 'foobar'));
---EXPECTF--
+--EXPECT--
bool(false)
--CREDITS--
Till Klampaeckel, till@php.net
var_dump(dcgettext('dngettextTest', 'item', LC_CTYPE));
var_dump(dcgettext('dngettextTest', 'item', LC_MESSAGES));
---EXPECTF--
+--EXPECT--
string(8) "cProdukt"
string(7) "Produkt"
--CREDITS--
}
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
7%3=1
7%3=1
2%7=2
var_dump($a, $b); // $b should be unaffected
?>
---EXPECTF--
+--EXPECT--
object(GMP)#1 (1) {
["num"]=>
string(1) "2"
var_dump(hash('haval224,5', '1234567890123456789012345678901234567890123456789012345678901234'));
var_dump(hash('haval256,5', '1234567890123456789012345678901234567890123456789012345678901234'));
?>
---EXPECTF--
+--EXPECT--
string(32) "f3f0d23819b87228b4b70ee350afaa9d"
string(40) "aded6485e137f11d7292212ba3fa961714df0564"
string(48) "e53da2b16269fe732e9a898a96707a9f28404d7333b02286"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(3) "md2"
string(32) "d5ac4ffd08f6a57b9bd402b8068392ff"
string(32) "d5ac4ffd08f6a57b9bd402b8068392ff"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(3) "md2"
string(32) "d5ac4ffd08f6a57b9bd402b8068392ff"
string(32) "d5ac4ffd08f6a57b9bd402b8068392ff"
unlink( $filename );
?>
---EXPECTF--
+--EXPECT--
*** Testing hash_file() : basic functionality ***
string(32) "5c6ffbdd40d9556b73a21e63c3e0e904"
string(40) "c0854fb9fb03c41cce3802cb0d220529e6eef94e"
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing hash_file() : basic functionality ***
adler32: ff87222e
crc32: 61664d33
echo 'gost: ', bin2hex(hash_hkdf('gost', $ikm)), "\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing hash_hkdf(): basic functionality ***
md2: 87779851d2377dab25da16fd7aadfdf5
md4: 422c6bd8dd2a6baae8abadef618c3ede
)), "\n";
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing hash_hkdf(): RFC 5869 test vectors ***
Test case 1 (SHA-256): 3cb25f25faacd57a90434f64d0362f2a2d2d0a90cf1a5a4c5db02d56ecc4c5bf34007208d5b887185865
Test case 2 (SHA-256 with longer inputs/outputs): b11e398dc80327a1c8e7f78c596a49344f012eda2d4efad8a050cc4c19afa97c59045a99cac7827271cb41c65e590e09da3275600c2f09b8367793a9aca3db71cc30c58179ec3e87c14c01d5c1f3434f1d87
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing hash_hmac() : basic functionality ***
gost: a4a3c80bdf3f8665bf07376a34dc9c1b11af7c813f4928f62e39f0c0dc564dad
haval128,3: 4d1318607f0406bd1b7bd50907772672
} catch (Error $e) {
echo "Exception: {$e->getMessage()}\n";
}
---EXPECTF--
+--EXPECT--
Exception: Call to private HashContext::__construct() from invalid context
} catch (Exception $e) {
echo "Exception: {$e->getMessage()}\n";
}
---EXPECTF--
+--EXPECT--
Exception: Serialization of 'HashContext' is not allowed
\ No newline at end of file
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing default_charset handling ***
--- Get php.ini values ---
string(5) "UTF-8"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing iconv_get_encoding()/iconv_set_encoding() : basic functionality ***
--- Default get_encoding ---
array(3) {
var_dump(bin2hex(fread($fp, 1)) != "0a");
fclose($fp);
?>
---EXPECTF--
+--EXPECT--
string(20) "1b244224332473244b24"
string(10) "41244f1b28"
string(2) "42"
var_dump(iconv_strlen($string_mb, 'UTF-8'));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing iconv_strlen() : basic functionality***
-- ASCII String --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing iconv_strpos() : basic functionality***
-- ASCII string 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing iconv_strrpos() : basic ***
-- ASCII string 1 --
}
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test for Array
Test for String
Done
var_dump($bi->getText());
$bi->setText('foo bar');
var_dump($bi->getText());
---EXPECTF--
+--EXPECT--
NULL
string(7) "foo bar"
var_dump($bi->current());
var_dump($bi->last());
var_dump($bi->current());
---EXPECTF--
+--EXPECT--
int(0)
int(13)
int(13)
}
?>
---EXPECTF--
+--EXPECT--
bool(false)
string(65) "numfmt_set_symbol: invalid symbol value: U_ILLEGAL_ARGUMENT_ERROR"
bool(false)
include_once( 'ut_common.inc' );
ut_run();
?>
---EXPECTF--
+--EXPECT--
false
'locale_get_display_name : name too long: U_ILLEGAL_ARGUMENT_ERROR'
?>
==DONE==
---EXPECTF--
+--EXPECT--
tháng 04, 2015
2015년 4월
==DONE==
?>
==DONE==
---EXPECTF--
+--EXPECT--
04/04/2015
15. 4. 4.
==DONE==
include_once( 'ut_common.inc' );
ut_run();
?>
---EXPECTF--
+--EXPECT--
false
'locale_accept_from_http: locale string too long: U_ILLEGAL_ARGUMENT_ERROR'
'en'
\ No newline at end of file
'yyyy-MM-dd HH:mm:ss.SSSSSS'
)->format(new \DateTime('2017-01-01 01:02:03.123456', new \DateTimeZone('UTC'))));
?>
---EXPECTF--
+--EXPECT--
string(26) "2017-01-01T01:02:03.123456"
string(26) "2017-01-01 01:02:03.123000"
string(26) "2017-01-01 01:02:03.123000"
echo $res_str;
?>
---EXPECTF--
+--EXPECT--
Result of formatting timestamp=0 is :
31-12-69
Result of formatting timestamp=0 is :
echo $res_str;
?>
---EXPECTF--
+--EXPECT--
Result of formatting timestamp=0 is :
31-12-70
Result of formatting timestamp=0 is :
$df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Amsterdam', 0);
echo $df->format($ts), "\n";
---EXPECTF--
+--EXPECT--
sábado, 31 de diciembre de 2011, 23:00:00 (hora estándar de las Azores)
domingo, 1 de enero de 2012, 1:00:00 (hora estándar de Europa central)
domingo, 1 de enero de 2012, 0:00:00 (hora estándar de Europa occidental)
echo $res_str;
?>
---EXPECTF--
+--EXPECT--
Formatted number: 12345.123456
Formatted number: 12345.1
Formatted(clone) number: 12345.123456
var_dump($e->getMessage());
}
---EXPECTF--
+--EXPECT--
string(42) "Cannot clone unconstructed NumberFormatter"
ut_run();
?>
---EXPECTF--
+--EXPECT--
---------------------
uk-ua_CALIFORNIA@currency=;currency=GRN:
language : 'uk' , region : 'UA' , variant0 : 'CALIFORNIA' ,
echo $res_str;
?>
---EXPECTF--
+--EXPECT--
Formatting result: 123 monkeys on 456 trees
Formatting result: 123 trees hosting 456 monkeys
Formatting clone result: 123 monkeys on 456 trees
$mf = new MessageFormatter('en_US', $fmt);
var_dump($mf->format(array(7)));
---EXPECTF--
+--EXPECT--
string(5) "7 {1}"
include_once( 'ut_common.inc' );
ut_run();
?>
---EXPECTF--
+--EXPECT--
ResourceBundle Object
(
)
$b = new ResourceBundle('supplementalData', 'ICUDATA', false);
var_dump($b->get('cldrVersion') !== NULL);
?>
---EXPECTF--
+--EXPECT--
string(11) "Deutschland"
bool(true)
bool(true)
echo "$onekey => $oneval\n";
}
?>
---EXPECTF--
+--EXPECT--
Here comes testarray:
ResourceBundle Object
(
var_dump($r instanceof Traversable);
var_dump(iterator_to_array($r->get('testarray')));
?>
---EXPECTF--
+--EXPECT--
bool(true)
array(3) {
[0]=>
var_dump($x->isSuspicious("NAPKIN PEZ"));
var_dump($x->isSuspicious("napkin pez"));
?>
---EXPECTF--
+--EXPECT--
paypal with Cyrillic spoof characters
bool(true)
certain all-uppercase Latin sequences can be spoof of Greek
var_dump($x->areConfusable("hello, world", "hello, world"));
var_dump($x->areConfusable("hello, world", "he11o, wor1d"));
?>
---EXPECTF--
+--EXPECT--
Checking if words are confusable
bool(false)
bool(true)
$x->setAllowedLocales('en_US, ko_KR');
var_dump($x->isSuspicious($korean));
?>
---EXPECTF--
+--EXPECT--
Is suspcious, en_US
bool(true)
Is suspcious, ko_KR
var_dump($x->areConfusable("HELLO", "H\xD0\x95LLO"));
var_dump($x->areConfusable("hello", "h\xD0\xB5llo"));
?>
---EXPECTF--
+--EXPECT--
Check with default settings
bool(true)
bool(true)
var_dump($x->areConfusable("HELLO", "H\xD0\x95LLO"));
var_dump($x->areConfusable("hello", "h\xD0\xB5llo"));
?>
---EXPECTF--
+--EXPECT--
Check with default settings
bool(true)
bool(true)
var_dump($x->isSuspicious("NAPKIN PEZ"));
var_dump($x->isSuspicious("napkin pez"));
?>
---EXPECTF--
+--EXPECT--
paypal with Cyrillic spoof characters
bool(true)
bool(true)
}
}
---EXPECTF--
+--EXPECT--
string(23) "This is an ascii string"
string(12) "Snowman: (?)"
Error: transcode() returned error 1: U_ILLEGAL_ARGUMENT_ERROR: U_ILLEGAL_ARGUMENT_ERROR
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(2) """"
string(4) "null"
string(4) "true"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(0) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
float(2,1)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(5) ""abc""
bool(false)
string(4) "null"
var_dump(json_encode("ab\xE0"));
var_dump(json_encode("ab\xE0", JSON_UNESCAPED_UNICODE));
?>
---EXPECTF--
+--EXPECT--
string(156) ""latin 1234 -\/ russian \u043c\u0430\u043c\u0430 \u043c\u044b\u043b\u0430 \u0440\u0430\u043c\u0443 specialchars \u0002 \b \n U+1D11E >\ud834\udd1e<""
string(100) ""latin 1234 -\/ russian мама мыла раму specialchars \u0002 \b \n U+1D11E >𝄞<""
bool(false)
var_dump(json_last_error(), json_last_error_msg());
?>
---EXPECTF--
+--EXPECT--
int(5)
string(56) "Malformed UTF-8 characters, possibly incorrectly encoded"
int(5)
var_dump(json_last_error(), json_last_error_msg());
?>
---EXPECTF--
+--EXPECT--
bool(false)
int(5)
string(56) "Malformed UTF-8 characters, possibly incorrectly encoded"
var_dump(json_encode($obj2, JSON_PARTIAL_OUTPUT_ON_ERROR));
?>
---EXPECTF--
+--EXPECT--
string(24) "{"test":"123","me":null}"
==
string(24) "{"test":"123","me":null}"
var_dump(json_last_error() === JSON_ERROR_UTF16);
var_dump(json_last_error_msg());
?>
---EXPECTF--
+--EXPECT--
NULL
bool(true)
string(50) "Single unpaired UTF-16 surrogate in unicode escape"
echo 'ERROR' . PHP_EOL;
break;
}
---EXPECTF--
+--EXPECT--
OK
ERROR
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
NULL
bool(true)
NULL
?>
===DONE===
---EXPECTF--
+--EXPECT--
string(6) "{"":1}"
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
string(0) ""
} catch (\Exception $e) {
echo $e->getMessage();
}
---EXPECTF--
+--EXPECT--
This error is expected
var_dump(json_encode($nan, JSON_PARTIAL_OUTPUT_ON_ERROR));
var_dump(json_last_error(), json_last_error_msg());
?>
---EXPECTF--
+--EXPECT--
float(INF)
bool(false)
int(7)
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing json_encode() : basic functionality ***
-- Iteration 1 --
string(1) "0"
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing json_encode() : basic functionality with UTF-8 input***
string(103) ""\u65e5\u672c\u8a9e\u30c6\u30ad\u30b9\u30c8\u3067\u3059\u300201234\uff15\uff16\uff17\uff18\uff19\u3002""
===Done===
unlink($conf);
?>
===DONE===
---EXPECTF--
+--EXPECT--
string(16) "example.com:3141"
===DONE===
ldap_delete($link, "cn=tmp,$base");
remove_dummy_data($link, $base);
?>
---EXPECTF--
+--EXPECT--
int(1234)
===DONE===
$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
remove_dummy_data($link, $base);
?>
---EXPECTF--
+--EXPECT--
array(5) {
["objectClass"]=>
array(3) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(true)
Done
var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
?>
---EXPECTF--
+--EXPECT--
string(1) "&"
string(3) "&&&"
string(2) "&#"
var_dump(mb_strripos($string, '</body>'));
?>
---EXPECTF--
+--EXPECT--
Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0
int(27)
int(27)
// not OK
test("\xE2\xB0\xB0"); // U+2C30 GLAGOLITIC SMALL LETTER AZU (added in 4.1.0, March 2005)
test("\xD4\xA5"); // U+0525 CYRILLIC SMALL LETTER PE WITH DESCENDER (added in 5.2.0, October 2009)
---EXPECTF--
+--EXPECT--
f0 90 90 90
e2 b0 80
d4 a4
);
?>
==DONE==
---EXPECTF--
+--EXPECT--
string(3) "bar"
string(3) "bar"
string(0) ""
<?php
var_dump(mb_eregi("a", "\xf5"));
?>
---EXPECTF--
+--EXPECT--
bool(false)
}
}
echo 'OK';
---EXPECTF--
+--EXPECT--
ERROR(55296)
ERROR(55297)
ERROR(55298)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_convert_encoding() : array functionality ***
-- Convert to JIS --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_convert_encoding() : basic functionality ***
-- Convert to JIS --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_encode_mimeheader() : basic ***
Language: English
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_encode_mimeheader() : basic2 ***
Language: SJIS
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_encode_mimeheader() : basic2 ***
Language: SJIS
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_encode_mimeheader() : usage variations ***
-- Iteration 1 --
$convmap = array(0xFF, 0x2FFFF, 0, 0xFFFF);
echo mb_encode_numericentity('aŒbœcŠdše€fg', $convmap, "UTF-8")."\n";
?>
---EXPECTF--
+--EXPECT--
¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ
ƒΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψωϑϒϖ•…′″‾⁄℘ℑℜ™ℵ←↑→↓↔↵⇐⇑⇒⇓⇔∀∂∃∅∇∈∉∋∏∑−∗√∝∞∠∧∨∩∪∫∴∼≅≈≠≡≤≥⊂⊃⊄⊆⊇⊕⊗⊥⋅⌈⌉⌊⌋〈〉◊♠♣♥♦
aŒbœcŠdše€fg
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_ereg_match() : basic functionality ***
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_ereg() : usage variations ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_ereg() : usage variations ***
-- Iteration 1 --
}
}
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_ereg() : usage variations ***
ASCII String without $regs arg: int(1)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_internal_encoding() : basic functionality ***
string(0) ""
string(10) "ISO-8859-1"
}
?>
---EXPECTF--
+--EXPECT--
bool(true)
ok
ok
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_stripos() : basic functionality***
-- ASCII Strings, needle should be found --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_stripos() : basic functionality***
-- ASCII Strings --
echo "\nDone";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strlen() : basic functionality***
-- ASCII String --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strlen() : usage variations ***
-- Iteration 1: UCS-4 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strripos() : basic functionality***
-- ASCII Strings, needle should be found --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strripos() : basic functionality***
-- ASCII Strings --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strrpos() : basic ***
-- ASCII string 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strrpos() : usage variations ***
-- Double Quoted String --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strtolower() : basic functionality***
-- ASCII String --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strtolower() : usage variations ***
-- Mixed string (mulitbyte and ASCII characters) --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strtolower() : usage variations ***
-- Basic Latin --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strtoupper() : usage variations ***
-- Mixed string (mulitbyte and ASCII characters) --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_strtoupper() : usage variations ***
-- Basic Latin --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_substr() : basic functionality ***
-- ASCII string 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_substr_count() : basic functionality ***
-- ASCII String --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_substr_count() : usage variations ***
-- ASCII String --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing mb_substr() : usage variations ***
-- Iteration 1: UCS-4 --
var_dump( !!preg_match("/^[^><]+$/",$a) );
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
var_dump(preg_replace("/.*/", "b", "a"));
var_dump(mb_ereg_replace(".*", "b", "a"));
?>
---EXPECTF--
+--EXPECT--
string(2) "bb"
string(2) "bb"
var_dump(mb_ereg_replace("C*$", "Z", "ABC"));
var_dump(preg_replace("/C*$/", "Z", "ABC"));
?>
---EXPECTF--
+--EXPECT--
string(4) "ABZZ"
string(4) "ABZZ"
string(4) "ABZZ"
<?php
var_dump(bin2hex("テスト"));
?>
---EXPECTF--
+--EXPECT--
string(12) "836583588367"
declare(encoding="UTF-8");
var_dump(bin2hex("テスト"));
?>
---EXPECTF--
+--EXPECT--
string(12) "836583588367"
declare(encoding="ISO-8859-1");
echo "ok\n";
?>
---EXPECTF--
+--EXPECT--
ok
echo "ok\n";
}
?>
---EXPECTF--
+--EXPECT--
ok
ok
}
echo "ok\n";
?>
---EXPECTF--
+--EXPECT--
ok
ok
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(11) {
[0]=>
int(1)
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(7) {
[0]=>
string(10) "2002-01-02"
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(10) "1234567890"
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(10) "1234567890"
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(8) {
[0]=>
int(5)
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(8) {
[0]=>
int(19)
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(8) {
[0]=>
int(120)
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
ok
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
Num_of_rows=1
array(2) {
[0]=>
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(1) "1"
mysqli_close($link);
print "done!";
?>
---EXPECTF--
+--EXPECT--
string(6) "foobar"
done!
\ No newline at end of file
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(11) {
[0]=>
int(1)
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(10) "1234567890"
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(10) "Hello Worl"
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
string(38) "Records: 3 Duplicates: 0 Warnings: 0"
done!
\ No newline at end of file
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
string(15) "Rasmus is No. 1"
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(11) {
[0]=>
int(1)
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(4) {
[0]=>
int(1)
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
string(6) "foobar"
done!
\ No newline at end of file
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
foo-bar
string-string
rab-oof
var_dump($row);
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
string(3) "foo"
var_dump($foo);
?>
---EXPECTF--
+--EXPECT--
string(3) "foo"
\ No newline at end of file
$s = mysqli_get_client_info();
echo gettype($s);
?>
---EXPECTF--
+--EXPECT--
string
\ No newline at end of file
$mysql->close();
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
[1]=>
string(1) "1"
var_dump($result->fetch_row());
?>
---EXPECTF--
+--EXPECT--
bool(true)
array(1) {
[0]=>
}
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
$mysql->close();
?>
---EXPECTF--
+--EXPECT--
1064
$mysql->close();
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
3000000897
3800001532
3900002281
}
echo "Done";
?>
---EXPECTF--
+--EXPECT--
Done
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
FLOAT
FORMAT(col1, 0)
FLOAT
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
Using CAST('somestring' AS CHAR)...
string(3) "one"
string(5) "three"
$mysqli->init();
echo "done";
?>
---EXPECTF--
+--EXPECT--
done
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
string(2) "42"
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
array(2) {
["id"]=>
string(2) "97"
}
echo "done\n";
?>
---EXPECTF--
+--EXPECT--
ok 1
ok 2
done
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
closed once
closed twice
closed for third time
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(20) "character_set_client"
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
tsint:
array(1) {
["a"]=>
print "done!";
?>
---EXPECTF--
+--EXPECT--
Warning: :
Warning: 1050: Table 't54221' already exists
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
bool(true)
done!
echo "done\n";
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(10) "Ssl_cipher"
$stmt->bind_result($testArg);
echo "Okey";
?>
---EXPECTF--
+--EXPECT--
Okey
$link->close();
?>
done
---EXPECTF--
+--EXPECT--
Using 'i':
insert id:1311200011005001566=>1311200011005001566
fetch id:1311200011005001566
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
1: 9.9999: 9.9999
unlink('bug53503.data');
?>
---EXPECTF--
+--EXPECT--
done
[006] [2000] open_basedir restriction in effect. Unable to open file
done
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
OK
\ No newline at end of file
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
Finished 1
Finished 2
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
while($db= mysqli_fetch_object($res,'cc',$t)){}
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
mysqli_close($link);
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
===DONE===
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
mysqli_close($link);
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
mysqli_close($link);
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
inspectClass($class);
print "done!\n";
?>
---EXPECTF--
+--EXPECT--
Inspecting class 'mysqli'
isInternal: yes
isUserDefined: no
inspectClass($class);
print "done!";
?>
---EXPECTF--
+--EXPECT--
Inspecting class 'mysqli_result'
isInternal: yes
isUserDefined: no
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
["testing"]=>
string(19) "mysqli.default_port"
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
["it_works"]=>
string(2) "ok"
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
string(32) "t:O,/tmp/mysqli_debug_phpt.trace"
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
[002]
array(2) {
["id"]=>
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(1) {
["message"]=>
string(20) "dumped by the parent"
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
mysqli_close($link);
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
DONE
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
["SLEEP(6)"]=>
string(1) "0"
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
["SLEEP(2)"]=>
string(1) "0"
mysqli_close($link2);
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
mysqli_close($link);
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
$link->query('DROP USER shatest');
$link->query('DROP USER shatest@localhost');
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
$file = sprintf("%s%s%s_%s", sys_get_temp_dir(), DIRECTORY_SEPARATOR, "test_sha256_" , @date("Ymd"));
@unlink($file);
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
["it_works"]=>
string(2) "ok"
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
Regular connection 1 - 'works..'
Regular connection 2 - 'works...'
Persistent connection 1 - 'works...'
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
["it_works"]=>
string(2) "ok"
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
bool(false)
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
a) [1065] Query was empty
b) [1065] Query was empty
c) [1065] Query was empty
print "done!";
?>
---EXPECTF--
+--EXPECT--
Using CAST('somestring' AS CHAR)...
string(3) "one"
string(5) "three"
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
array(2) {
["id"]=>
string(1) "1"
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
["label"]=>
string(1) "\"
mysqli_close($link);
print "done!";
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
[012 + 2] array (
'_one' => '1',
)
mysqli_close($link2);
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
*/
print "done!\n";
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
Testing 273 columns with 240 rows...
... table created
... statement with 65520 parameters prepared
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
Regular, procedural, using variables
int(1)
string(1) "a"
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
int(1)
executing
bool(true)
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
---- Row 1
mysqli_close($link);
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
?>
--XFAIL--
Unsupported and undefined, under development
---EXPECTF--
+--EXPECT--
[010] More results: yes
[011] Next result: yes
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
OK: 1
OK: 2
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
2 2
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
printf("[001] [%d] %s\n", $link->error, $link->errno);
}
?>
---EXPECTF--
+--EXPECT--
string(4) "pre:"
NULL
NULL
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
<?php
require_once("clean_table.inc");
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(5) {
[0]=>
string(0) ""
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(5) {
[0]=>
int(5)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===DONE===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===DONE===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===DONE===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
bool(true)
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test 1.1 In Length: default. In Type: default. Out Length: default. Out Type: default
Executing:
Oci_execute error ORA-6502
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test 1.1 In Length: default. In Type: default. Out Length: default. Out Type: default
Executing:
Oci_execute error ORA-6502
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test 1.1 In Length: default. In Type: default. Out Length: default. Out Type: default
Executing:
Oci_execute error ORA-6502
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test 1.1 In Length: default. In Type: default. Out Length: default. Out Type: default
Executing:
Oci_execute error ORA-6502
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
bool(true)
Test 2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
TEST86 insert all ORATYPE values
TEST87 SELECT all values using DEFINEs
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
array(1) {
[0]=>
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 0 - base table creation without binds
array(5) {
["ID"]=>
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
TEST241 bind SQLT_CHR
array(1) {
["VARCHAR2_T10"]=>
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1 - PL/SQL IN and OUT variables
string(22) "Cat got your keyboard?"
string(22) "CAT GOT YOUR KEYBOARD?"
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
TEST141 wrong bind type SQLT_INT
array(1) {
["VARCHAR2_T10"]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(1)
int(2)
int(3)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(5) {
[0]=>
string(1) "A"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
NULL
int(0)
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(5) {
[0]=>
string(3) "one"
oci8_test_sql_execute($c, $stmtarray);
?>
---EXPECTF--
+--EXPECT--
Test 1
Done
oci8_test_sql_execute($c, $stmtarray);
?>
---EXPECTF--
+--EXPECT--
Test 2
Done
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
string(26) "This should be the output."
Test 2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
ORA-20000: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaBcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccDeeeeeeeeeeee
Test 2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
ORA-57000: TT8507: ORA-20000: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Test 2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
array(1) {
["COL1"]=>
array(2) {
echo 'beg of stream4a is ', $start4a, PHP_EOL;
echo 'end of stream4a is ', $ending4a, PHP_EOL;
---EXPECTF--
+--EXPECT--
Test 1: j
size of string1 is 1000006 bytes, 1000006 chars.
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
array(1) {
["RAW_QUERY"]=>
string(3) "Foo"
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
array(5) {
[0]=>
int(-2)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
int(0)
array(5) {
clean_up($c);
echo "Done";
?>
---EXPECTF--
+--EXPECT--
**Test - Set and get values for the attributes with scope end ************
Testing with oci_connect()
Value of CLIENT_INFO has been set successfully
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test 1 - oci_connect
array(1) {
["C1"]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test 1 - oci_pconnect
array(1) {
["C1"]=>
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
array(1) {
["DUMMY"]=>
<?php exit(0); ?>
--XFAIL--
Fails due to Oracle Bug 16695981
---EXPECTF--
+--EXPECT--
Test 1
array(1) {
["DUMMY"]=>
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
array(1) {
[0]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test 1 - must do define before execute
bool(true)
NULL
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(4) "some"
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Setting a new connection class now
The New oci8.connection_class is New cc
Done
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1 - OCI_ASSOC
array(3) {
["C1"]=>
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
bool(false)
24960
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(1) "1"
string(1) "1"
string(1) "1"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(3)
array(2) {
["ID"]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(3)
array(2) {
["ID"]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
None
int(4)
array(2) {
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
int(0)
array(2) {
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
int(3)
array(2) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(2)
array(2) {
[0]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(1) "1"
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
Test 2
array(1) {
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1 a 1 a 1 a 1 a 1 a
1 a 1 a 1 a 1 a 2 f
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1
2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1
bool(true)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
X
1 abcde
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
array(2) {
[0]=>
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1 - can't get IRS fields from parent
num fields : 0
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1 abcde
2 fghij
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1 abcde
2 fghij
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1 abcde
2 fghij
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
3
4
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
array(1) {
[1]=>
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1
3
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1
2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1 abcde
2 fghij
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
array(3) {
[0]=>
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1
2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
bool(false)
===DONE===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1 - No commit in procedure, OCI_COMMIT_ON_SUCCESS mode
111
array(1) {
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
1 aaaaa a
2 bbbbb b
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1 - prefetch 0
bool(true)
array(2) {
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1 - check initialization
oci8.privileged_connect = 1
oci8.max_persistent = 111
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
string(4) "data"
string(9) "long data"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test 1. Check how many rows in the table
array(1) {
["NUMROWS"]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test 1: A CLOB with an even number of bytes
int(1050000)
Test 2: A CLOB with an odd number of bytes
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
1. 3
2. 6
3. 9
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1
f1 ended
Test 2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Test 1 - truncate on insert
int(72)
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Temporary CLOB: NULL
Temporary CLOB: ''
Temporary CLOB: text
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
string(4) "test"
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
string(4) "test"
bool(true)
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
array(1) {
["CLOB"]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(6) "SELECT"
string(6) "DELETE"
string(6) "INSERT"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
odbc_exec($conn, 'DROP DATABASE odbcTEST');
?>
---EXPECTF--
+--EXPECT--
bool(true)
string(1) "1"
array(1) {
<?php
var_dump("Script should fail");
?>
---EXPECTF--
+--EXPECT--
var_dump(a("list_string", ["xxx"]));
?>
---EXPECTF--
+--EXPECT--
array(1) {
["allowed_values"]=>
array(1) {
}
var_dump(test("xxx"));
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(1) {
test();
?>
---EXPECTF--
+--EXPECT--
int(42)
echo "Ok\n";
}
?>
---EXPECTF--
+--EXPECT--
Ok
Ok
?>
---EXPECTF--
+--EXPECT--
Ok
echo "\n";
}
?>
---EXPECTF--
+--EXPECT--
163040343498260435477161879008842183802
15
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
include 'ServerClientTestCase.inc';
ServerClientTestCase::getInstance()->run($clientCode, $serverCode);
---EXPECTF--
+--EXPECT--
Running bug48182
Sending bug48182
Sending data over to SSL server in async mode with contents like Hello World
$r = openssl_x509_parse($cert,$use_short_names=false);
var_dump($r['subject']['commonName']);
?>
---EXPECTF--
+--EXPECT--
array(6) {
[0]=>
string(9) "www.rd.io"
include 'ServerClientTestCase.inc';
ServerClientTestCase::getInstance()->run($clientCode, $serverCode);
---EXPECTF--
+--EXPECT--
string(12) "Hello World!"
$key = openssl_pkey_get_private($pkey);
$res = openssl_sign($data ='alpha', $sign, $key, 'SHA1');
var_dump($res);
---EXPECTF--
+--EXPECT--
bool(true)
var_dump($r['signatureTypeSN']);
var_dump($r['signatureTypeLN']);
var_dump($r['signatureTypeNID']);
---EXPECTF--
+--EXPECT--
string(8) "RSA-SHA1"
string(21) "sha1WithRSAEncryption"
int(65)
var_dump(openssl_error_string());
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
===DONE===
test($p12, 'qwerty');
?>
===DONE===
---EXPECTF--
+--EXPECT--
int(2)
===DONE===
$ciphertext = openssl_encrypt($plaintext, 'aes-256-gcm', $key, \OPENSSL_RAW_DATA, $iv, $tag, $aad);
var_dump($ciphertext);
?>
---EXPECTF--
+--EXPECT--
string(0) ""
include 'ServerClientTestCase.inc';
ServerClientTestCase::getInstance()->run($clientCode, $serverCode);
?>
---EXPECTF--
+--EXPECT--
Written 1048575 bytes
DONE
var_dump($parsed_cert['validFrom_time_t']);
var_dump($parsed_cert['validTo_time_t']);
?>
---EXPECTF--
+--EXPECT--
int(1389052800)
int(1459494000)
var_dump(strlen($data));
var_dump(openssl_seal($data, $sealed_data, $env_keys, $key, 'AES256', $iv));
?>
---EXPECTF--
+--EXPECT--
int(64)
int(80)
?>
==DONE==
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
int(39)
?>
==DONE==
---EXPECTF--
+--EXPECT--
bool(true)
==DONE==
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
int(40)
$info = openssl_x509_parse($cert);
var_export($info['extensions']);
---EXPECTF--
+--EXPECT--
array (
'basicConstraints' => 'CA:FALSE',
'subjectKeyIdentifier' => '88:5A:55:C0:52:FF:61:CD:52:A3:35:0F:EA:5A:9C:24:38:22:F7:5C',
var_dump(openssl_csr_get_subject($csr_file));
var_dump(openssl_csr_get_subject($csr, false));
?>
---EXPECTF--
+--EXPECT--
array(6) {
["C"]=>
string(2) "NL"
var_dump(bin2hex(openssl_pbkdf2("pass\0word", "sa\0lt", 16, 4096)));
?>
---EXPECTF--
+--EXPECT--
string(40) "0c60c80f961f0e71f3a9b524af6012062fe037a6"
string(40) "ea6c014dc72d6f8ccd1ed92ace1d41f0d8de8957"
string(40) "4b007901b765489abead49d926f721d065a429c1"
var_dump(openssl_pkcs12_read($p12, $certs, $pass));
var_dump($certs);
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(57) "Object of class stdClass could not be converted to string"
string(66) "openssl_pkcs7_decrypt(): unable to coerce parameter 3 to x509 cert"
bool(false)
include 'ServerClientTestCase.inc';
ServerClientTestCase::getInstance()->run($clientCode, $serverCode);
---EXPECTF--
+--EXPECT--
string(5) "TLSv1"
string(7) "TLSv1.1"
string(7) "TLSv1.2"
include 'ServerClientTestCase.inc';
ServerClientTestCase::getInstance()->run($clientCode, $serverCode);
---EXPECTF--
+--EXPECT--
Hello World!
}
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
signo == SIGTERM
echo "Done!\n";
?>
---EXPECTF--
+--EXPECT--
Start!
Signal handler called!
Done!
echo "failed\n";
}
?>
---EXPECTF--
+--EXPECT--
working
echo "Done!\n";
?>
---EXPECTF--
+--EXPECT--
Start!
Signal handler called!
Done!
echo "ok\n";
?>
---EXPECTF--
+--EXPECT--
int(0)
string(10) "pcntl_test"
int(0)
echo "Done!\n";
?>
---EXPECTF--
+--EXPECT--
Start!
Signal handler called!
Done!
var_dump(preg_split('/PHP_(?:NAMED_)?(?:FUNCTION|METHOD)\s*\((\w+(?:,\s*\w+)?)\)/S', "PHP_FUNCTION(s, preg_match)\n{\nlalala", -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_OFFSET_CAPTURE));
?>
---EXPECTF--
+--EXPECT--
int(2)
array(2) {
[0]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(58) "[CODE]<td align="$stylevar[right]">[/CODE]"
NULL
string(58) "[CODE]<td align="$stylevar[right]">[/CODE]"
var_dump($match);
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(2) {
preg_match_all("/(\d)+/", "foo123456bar", $matches);
echo "okey";
?>
---EXPECTF--
+--EXPECT--
okey
echo preg_match('/a{1,3}b/U', 'ab');
?>
---EXPECTF--
+--EXPECT--
1
var_dump(preg_last_error() === \PREG_INTERNAL_ERROR);
?>
---EXPECTF--
+--EXPECT--
int(0)
bool(false)
}, '_a__b__c__d_'));
?>
---EXPECTF--
+--EXPECT--
int(1)
array(5) {
[0]=>
?>
==DONE==
---EXPECTF--
+--EXPECT--
int(1)
int(1)
==DONE==
var_dump(preg_match_all('/world/', $string));
var_dump(preg_match_all('/[0-9]/', $string));
?>
---EXPECTF--
+--EXPECT--
int(1)
array(1) {
[0]=>
var_dump(preg_match_all('/(This is a ){2}(.*)\stest/', $string, $match5)); //tries to find "This is aThis is a [...] test" (0 matches)
var_dump($match5);
?>
---EXPECTF--
+--EXPECT--
int(1)
array(1) {
[0]=>
var_dump($match5);
?>
---EXPECTF--
+--EXPECT--
int(1)
array(1) {
var_dump($matches);
?>
===Done===
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(2) "My"
var_dump($match5);
?>
---EXPECTF--
+--EXPECT--
int(1)
array(1) {
var_dump(preg_replace('/(ab)(c)(d)(e)(f)(g)(h)(i)(j)(k)/', 'a${1}2$103', 'zabcdefghijkl'));
?>
---EXPECTF--
+--EXPECT--
string(1) "x"
string(4) "abcd"
string(8) "zaab2k3l"
var_dump($count);
?>
---EXPECTF--
+--EXPECT--
string(2) "ok"
string(2) "ok"
string(2) "ok"
print "$new_subject3 \n";
print $count;
?>
---EXPECTF--
+--EXPECT--
there are seven words in this sentence.
one two three 4 is now written in words
there are no numbers in this string
var_dump(preg_replace('<(^[a-z]\w+)@(\w+)\.(\w+)\.([a-z]{2,}$)>',
'\\1 at \\2 dot \\3 dot \\4', 'josmessa@uk.ibm.com')); //finds the e-mail address and replaces the @ and . with "at" and "dot" (uses backreferences) ('josmessa at uk dot ibm dot com')
?>
---EXPECTF--
+--EXPECT--
string(54) "123456789 - Hello, world - This is a string."
string(54) "123456789 - Hello, world - This is a string."
string(54) "444444789 - Hello, world - This is a string."
$new_string = preg_replace(array('/\b\w{1}s/', '/(\d{1})-(\d{1})/', '/[\(!\)]/'), array('test', '$1 to $2', '*'), $string);
print $new_string;
?>
---EXPECTF--
+--EXPECT--
This test a string. It contains numbers *0 to 9* test well test parentheses and some other things*
var_dump($db->query("SELECT * FROM test")->fetchAll(PDO::FETCH_ASSOC));
?>
===DONE===
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
array(3) {
?>
===DONE===
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
string(3) "XYZ"
$db->exec("DROP TABLE test");
?>
===DONE===
---EXPECTF--
+--EXPECT--
Calling object method 'foo'
Calling object method 'bar'
Calling object method 'lucky'
(new Database_SQL)->foo();
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
if(!($res = $stmt->execute())) var_dump($stmt->errorInfo());
var_dump($stmt->fetchAll(PDO::FETCH_ASSOC));
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(1) {
var_dump($flags);
?>
---EXPECTF--
+--EXPECT--
array(3) {
[1005]=>
bool(true)
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
string(0) ""
done!
$db = MySQLPDOTest::factory();
$db->exec("DROP PROCEDURE IF EXISTS p");
?>
---EXPECTF--
+--EXPECT--
Emulated Prepared Statements...
array(1) {
[0]=>
$stmt->execute(array($value));
var_dump($db->query('SELECT * from test')->fetchAll(PDO::FETCH_ASSOC));
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
array(1) {
var_dump($stmt->errorInfo());
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(1) {
print "done!";
?>
---EXPECTF--
+--EXPECT--
Native Prepared Statements
bool(false)
bool(false)
@$db->exec('DROP DATABASE IF EXISTS `crazy;dbname`');
?>
---EXPECTF--
+--EXPECT--
done!
if(!is_array($query->getColumnMeta(0))) die('FAIL!');
echo 'done!';
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(2) {
[1]=>
int(1)
echo "\ndone!\n";
?>
---EXPECTF--
+--EXPECT--
NULL-Byte before first placeholder:
Length of item 0: 3, Value of item 1: c
print "ok";
?>
---EXPECTF--
+--EXPECT--
ok
$db->exec('DROP TABLE IF EXISTS test');
print "done!";
?>
---EXPECTF--
+--EXPECT--
Emulated...
array(1) {
[0]=>
?>
--XFAIL--
Works with mysqlnd. It is not supported by libmysql. For libmysql is good enough to see no crash.
---EXPECTF--
+--EXPECT--
Emulated...
array(1) {
[0]=>
print "done!";
?>
---EXPECTF--
+--EXPECT--
pdo.dsn.mysql cannot be accessed through ini_get_all()/ini_get()
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
[001] Expecting default value for 'PDO::MYSQL_ATTR_INIT_COMMAND' of ''/string, getAttribute() reports setting ''/boolean
[026] Execting '1'/boolean got ''/boolean' for options 'PDO::MYSQL_ATTR_READ_DEFAULT_FILE'
done!
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
string(15) "PDO::CASE_LOWER"
array(2) {
[0]=>
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
string(5) "mysql"
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(1) {
$db->exec(sprintf('DROP TABLE IF EXISTS %s', $table));
print "done!";
?>
---EXPECTF--
+--EXPECT--
string(5) "00000"
array(2) {
[0]=>
printf("[007] SHOW STATUS and server info have reported a different uptime, please check. Server info: '%s', SHOW STATUS: '%s'\n", $info, $uptime);
print "done!";
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
array(2) {
["id"]=>
string(1) "1"
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
array(2) {
["id"]=>
string(2) "20"
echo "failed!\n";
}
?>
---EXPECTF--
+--EXPECT--
done!
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
Emulated Prepared Statements...
[015] Driver-specific error code not set
[015] Driver-specific error message.not set
@$db->exec('DROP DATABASE IF EXISTS pdo_exec_ddl');
@$db->exec('DROP DATABASE IF EXISTS pdo_exec_ddl2');
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
done!
print "done!";
?>
---EXPECTF--
+--EXPECT--
[002] Suspicious FETCH_BOTH result, dumping
array(2) {
[0]=>
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
done!
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
done!
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
Native PS...
Testing with PDO::MYSQL_ATTR_MULTI_STATEMENTS set to false
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
--XFAIL--
PDO's PS parser has some problems with invalid SQL and crashes from time to time
(check with valgrind...)
---EXPECTF--
+--EXPECT--
array(1) {
["one"]=>
string(1) "1"
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(2) {
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
array(0) {
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(1) {
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
[003] Execute has failed, 'HY093' array (
0 => 'HY093',
1 => NULL,
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(2) {
$db->exec('DROP TABLE IF EXISTS test');
$db->exec('DROP TABLE IF EXISTS test2');
?>
---EXPECTF--
+--EXPECT--
int(1)
int(0)
int(1)
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
id = 1 (integer) / label = 'a' (string)
id = 2 (integer) / label = 'b' (string)
id = 3 (integer) / label = 'c' (string)
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
Emulated PS...
Buffered...
in = 0 -> id = 1 (integer) / label = 'a' (string)
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
Testing native PS...
Binding variable...
in = 0 -> id = 1 (integer) / label = 'a' (string)
$db->exec('DROP TABLE IF EXISTS test');
@unlink(MySQLPDOTest::getTempDir() . DIRECTORY_SEPARATOR . 'pdoblob.tst');
?>
---EXPECTF--
+--EXPECT--
Emulated PS...
Native PS...
done!
\ No newline at end of file
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
in = 0 -> id = 1 (integer) / label = 'a' (string)
in = 0 -> id = 2 (integer) / label = 'b' (string)
in = 0 -> id = 1 (integer) / label = 'a' (string)
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
Testing emulated PS...
int(3)
int(2)
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
$db->exec('DROP TABLE IF EXISTS test');
print "done!";
?>
---EXPECTF--
+--EXPECT--
Testing native PS...
done!
require dirname(__FILE__) . '/mysql_pdo_test.inc';
MySQLPDOTest::dropTestTable();
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
print "done!";
?>
---EXPECTF--
+--EXPECT--
done!
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
done!
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
done!
\ No newline at end of file
$db->exec('DROP TABLE IF EXISTS test');
$db->exec('DROP TABLE IF EXISTS test2');
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(7) "testing"
$db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test');
?>
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
array(1) {
$stmt->execute();
$row = $stmt->fetch();
var_dump(strlen($row[0]) > 0);
---EXPECTF--
+--EXPECT--
bool(true)
$db->exec("DROP TABLE test_one_blob");
?>
---EXPECTF--
+--EXPECT--
array(2) {
["blob1"]=>
string(3) "foo"
var_dump($stmt->fetchAll(PDO::FETCH_ASSOC));
$db->exec("DROP TABLE test");
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
array(1) {
print "done\n";
?>
---EXPECTF--
+--EXPECT--
First Query
string(11) "row 1 col 1"
string(11) "row 1 col 2"
--XFAIL--
Fails due to Bug 60994
---EXPECTF--
+--EXPECT--
Test 1: j
size of string1 is 1000006 bytes, 1000006 chars.
}
$db = null;
---EXPECTF--
+--EXPECT--
array(2) {
["DUMMY"]=>
string(1) "X"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
PDO::ATTR_AUTOCOMMIT: bool(false)
Insert data
Second connection should be able to see committed data
}
?>
---EXPECTF--
+--EXPECT--
Test 1
*abcjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj**jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj**jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj**jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjxyz*
@$db->exec("drop table poq_tab");
?>
---EXPECTF--
+--EXPECT--
Unquoted : NULL
Quoted : string(2) "''"
array(1) {
}
?>
---EXPECTF--
+--EXPECT--
Test 1
Read b$
Read cd$
$db->exec("drop table pdo_oci_stream_2");
?>
---EXPECTF--
+--EXPECT--
Fetch operation done!
}
?>
---EXPECTF--
+--EXPECT--
Success! All the temporary LOB in previously closed statements are properly cleaned.
?>
---EXPECTF--
+--EXPECT--
string(4) "val4"
string(4) "val5"
array(10) {
$dbh->query('DROP TABLE nodes');
?>
---EXPECTF--
+--EXPECT--
1 - 1 - 1 - 1 - 1 - 1 - 6 - 6
2 - 2 - 1 - 1 - 2 - 2 - 3 - 3
3 - 3 - 1 - 1 - 4 - 4 - 5 - 5
$db->query('DROP TABLE test_one_blob');
?>
---EXPECTF--
+--EXPECT--
array(2) {
["blob1"]=>
string(3) "foo"
}
}
---EXPECTF--
+--EXPECT--
Test 1
42P18
Test 2
var_dump($res);
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(0)
Done
}
echo $expect;
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
bool(true)
$pdo->rollBack();
echo "done\n"
?>
---EXPECTF--
+--EXPECT--
done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
hello world
hello world
Done
var_dump($e->getCode());
}
?>
---EXPECTF--
+--EXPECT--
int(14)
setUp();
echo "done";
?>
---EXPECTF--
+--EXPECT--
done
var_dump($e->getMessage());
}
?>
---EXPECTF--
+--EXPECT--
string(4) "Blah"
?>
+++DONE+++
---EXPECTF--
+--EXPECT--
string(0) ""
+++DONE+++
var_dump(!empty($meta1['table']) && $meta1['table'] == 'test');
var_dump(!empty($meta2['table']) && $meta2['table'] == 'test');
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
$db->query('DROP TABLE foobar');
?>
---EXPECTF--
+--EXPECT--
1
2
10
$db->query('DROP TABLE foobar');
?>
---EXPECTF--
+--EXPECT--
array(2) {
["testing(name)"]=>
string(3) "php"
$db->query('DROP TABLE foobar');
?>
---EXPECTF--
+--EXPECT--
int(0)
?>
===DONE===
---EXPECTF--
+--EXPECT--
Array
(
[id] => 0
echo "Done".PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
3,5
Done
echo PHP_EOL."Done".PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
array(2) {
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
__HALT_COMPILER(); must be declared in a phar
===DONE===
--CLEAN--
<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
---EXPECTF--
+--EXPECT--
This is a
This is b
This is b/c
<?php
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
?>
---EXPECTF--
+--EXPECT--
This is a
This is b
This is b/c
}
?>
---EXPECTF--
+--EXPECT--
string(25) "Mounting of 1 to 1 failed"
}
?>
---EXPECTF--
+--EXPECT--
Phar::__construct() expects at least 1 parameter, 0 given
unlink("$dir/ThisIsATestFile.txt");
rmdir($dir);
?>
---EXPECTF--
+--EXPECT--
bool(true)
===DONE===
var_dump($meta);
?>
DONE
---EXPECTF--
+--EXPECT--
object(PharData)#1 (3) {
["pathName":"SplFileInfo":private]=>
string(0) ""
unlink($decompressed_name);
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE_EXTERNAL--
files/write10.phar
---EXPECTF--
+--EXPECT--
string(214) "<?php
$p = new Phar(__FILE__);
var_dump($p->getStub());
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE_EXTERNAL--
files/write11.phar
---EXPECTF--
+--EXPECT--
string(174) "<?php
$p = new Phar(__FILE__);
var_dump($p->getStub());
<?php if (!extension_loaded("zlib")) die("skip no zlib extension"); ?>
--FILE_EXTERNAL--
files/write13.phar
---EXPECTF--
+--EXPECT--
bool(false)
bool(true)
ok
\ No newline at end of file
<?php if (!extension_loaded("zlib")) die("skip no zlib extension"); ?>
--FILE_EXTERNAL--
files/write14.phar
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
ok
\ No newline at end of file
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE_EXTERNAL--
files/write15.phar
---EXPECTF--
+--EXPECT--
bool(false)
bool(true)
ok
\ No newline at end of file
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE_EXTERNAL--
files/write16.phar
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
ok
\ No newline at end of file
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE_EXTERNAL--
files/write18.phar
---EXPECTF--
+--EXPECT--
100666
100444
ok
\ No newline at end of file
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE_EXTERNAL--
files/write20.phar
---EXPECTF--
+--EXPECT--
string(2) "hi"
NULL
ok
\ No newline at end of file
<?php if (!extension_loaded("zlib")) die("skip no zlib extension"); ?>
--FILE_EXTERNAL--
files/write21.phar
---EXPECTF--
+--EXPECT--
bool(false)
bool(true)
ok
\ No newline at end of file
<?php if (!extension_loaded("zlib")) die("skip no zlib extension"); ?>
--FILE_EXTERNAL--
files/write22.phar
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
ok
\ No newline at end of file
<?php if (!extension_loaded("zlib")) die("skip no zlib extension"); ?>
--FILE_EXTERNAL--
files/write23.phar
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
bool(false)
<?php if (!extension_loaded("zlib")) die("skip no zlib extension"); ?>
--FILE_EXTERNAL--
files/write24.phar
---EXPECTF--
+--EXPECT--
bool(false)
bool(true)
ok
\ No newline at end of file
<?php if (!extension_loaded("zlib")) die("skip no zlib extension"); ?>
--FILE_EXTERNAL--
files/write25.phar
---EXPECTF--
+--EXPECT--
bool(false)
bool(true)
<?php __HALT_COMPILER();
<?php if (!extension_loaded("phar")) die("skip"); ?>
--FILE_EXTERNAL--
files/write9.phar
---EXPECTF--
+--EXPECT--
string(188) "<?php
$p = new Phar(__FILE__);
var_dump($p->getStub());
files/frontcontroller8.phar
--EXPECTHEADERS--
Content-type: text/html; charset=UTF-8
---EXPECTF--
+--EXPECT--
My 404 is rawesome
\ No newline at end of file
files/frontcontroller8.phar
--EXPECTHEADERS--
Content-type: text/html; charset=UTF-8
---EXPECTF--
+--EXPECT--
string(42) "/frontcontroller25.php/a1.phps/extra/stuff"
string(12) "/extra/stuff"
\ No newline at end of file
files/frontcontroller8.phar
--EXPECTHEADERS--
Content-type: application/octet-stream
---EXPECTF--
+--EXPECT--
<?php var_dump("hi");
\ No newline at end of file
files/frontcontroller8.phar
--EXPECTHEADERS--
Content-type: text/plain;charset=UTF-8
---EXPECTF--
+--EXPECT--
hi
\ No newline at end of file
Content-type: text/html; charset=UTF-8
--FILE_EXTERNAL--
files/frontcontroller18.phar
---EXPECTF--
+--EXPECT--
phar error: rewrite callback must return a string or false
\ No newline at end of file
files/frontcontroller8.phar
--EXPECTHEADERS--
Content-type: text/html; charset=UTF-8
---EXPECTF--
+--EXPECT--
My 404 is rawesome
\ No newline at end of file
files/frontcontroller8.phar
--EXPECTHEADERS--
Content-type: text/html; charset=UTF-8
---EXPECTF--
+--EXPECT--
string(42) "/frontcontroller25.php/a1.phps/extra/stuff"
string(12) "/extra/stuff"
\ No newline at end of file
files/frontcontroller8.phar
--EXPECTHEADERS--
Content-type: application/octet-stream
---EXPECTF--
+--EXPECT--
<?php var_dump("hi");
\ No newline at end of file
files/frontcontroller8.phar
--EXPECTHEADERS--
Content-type: text/plain;charset=UTF-8
---EXPECTF--
+--EXPECT--
hi
\ No newline at end of file
Content-type: text/html; charset=UTF-8
--FILE_EXTERNAL--
files/frontcontroller18.phar
---EXPECTF--
+--EXPECT--
phar error: rewrite callback must return a string or false
\ No newline at end of file
var_dump(ini_get('phar.readonly'));
__HALT_COMPILER();
?>
---EXPECTF--
+--EXPECT--
string(1) "1"
string(1) "1"
string(1) "1"
===DONE===
--CLEAN--
<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
---EXPECTF--
+--EXPECT--
extra
===DONE===
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
__HALT_COMPILER();
?>
---EXPECTF--
+--EXPECT--
in b
<?php include "b/c.php";
in d
unlink(dirname(__FILE__) . '/files/phar_oo_008.phar.php');
__halt_compiler();
?>
---EXPECTF--
+--EXPECT--
===1===
0=>1,2,3
unlink(dirname(__FILE__) . '/files/phar_oo_009.phar.php');
__halt_compiler();
?>
---EXPECTF--
+--EXPECT--
0=>1,2,3
1=>2,a,b
2=>3,"c","'e'"
unlink(dirname(__FILE__) . '/files/phar_oo_010.phar.php');
__halt_compiler();
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
unlink(dirname(__FILE__) . '/files/phar_oo_011b.phar.php');
__halt_compiler();
?>
---EXPECTF--
+--EXPECT--
Exception: Write operations disabled by the php.ini setting phar.readonly
===DONE===
unlink(dirname(__FILE__) . '/files/phar_oo_012b.phar.php');
__halt_compiler();
?>
---EXPECTF--
+--EXPECT--
Exception: Write operations disabled by the php.ini setting phar.readonly
===DONE===
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
?>
---EXPECTF--
+--EXPECT--
string(1) "a"
bool(false)
string(1) "b"
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
?>
---EXPECTF--
+--EXPECT--
string(1) "a"
bool(false)
string(1) "b"
<?php
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
?>
---EXPECTF--
+--EXPECT--
string(1) "a"
bool(false)
string(1) "b"
<?php
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
?>
---EXPECTF--
+--EXPECT--
string(1) "a"
bool(false)
string(1) "b"
<?php
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
?>
---EXPECTF--
+--EXPECT--
string(1) "a"
bool(false)
string(1) "b"
<?php
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
?>
---EXPECTF--
+--EXPECT--
string(1) "a"
bool(false)
string(1) "b"
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(true)
===DONE===
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar');
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
?>
---EXPECTF--
+--EXPECT--
string(1) "a"
bool(false)
string(1) "b"
===DONE===
--CLEAN--
<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar'); ?>
---EXPECTF--
+--EXPECT--
===DONE===
\ No newline at end of file
<?php
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar');
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(true)
bool(false)
===DONE===
--CLEAN--
<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar.php'); ?>
---EXPECTF--
+--EXPECT--
bool(true)
brand new!
bool(true)
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar.php');
__HALT_COMPILER();
?>
---EXPECTF--
+--EXPECT--
bool(true)
in b
<?php include "b/c.php";
@unlink(dirname(__FILE__) . '/tar_makebz2.phar.tar.bz2');
@unlink(dirname(__FILE__) . '/tar_makebz2_b.phar.tar.bz2');
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
@unlink(dirname(__FILE__) . '/tar_makegz.phar.tar.gz');
@unlink(dirname(__FILE__) . '/tar_makegz_b.phar.tar.gz');
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
===DONE===
--CLEAN--
<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip.php'); ?>
---EXPECTF--
+--EXPECT--
bool(true)
brand new!
bool(true)
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip.php');
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip');
?>
---EXPECTF--
+--EXPECT--
string(1) "a"
bool(false)
string(1) "b"
<?php
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip.php');
?>
---EXPECTF--
+--EXPECT--
string(1) "a"
bool(false)
string(1) "b"
var_dump(posix_errno());
?>
---EXPECTF--
+--EXPECT--
*** Test by calling method or function with its expected arguments ***
int(0)
var_dump(posix_errno());
?>
---EXPECTF--
+--EXPECT--
*** Test by calling function with permission error ***
int(1)
var_dump(posix_errno());
?>
---EXPECTF--
+--EXPECT--
*** Test by calling function with pid error ***
int(3)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing posix_getsid() : function test ***
-- Testing posix_getsid() function with current process pid --
<?php
var_dump(posix_setegid(posix_getegid()));
?>
---EXPECTF--
+--EXPECT--
bool(true)
\ No newline at end of file
$uid = var_dump(posix_seteuid( $myuid ) );
?>
---EXPECTF--
+--EXPECT--
bool(true)
var_dump(posix_seteuid( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with boolean values ***
bool(false)
bool(false)
var_dump(posix_seteuid( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with int values ***
bool(false)
bool(false)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Test by calling method or function with its expected arguments ***
bool(true)
===DONE===
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with boolean values ***
bool(false)
bool(false)
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with int values ***
bool(false)
bool(false)
var_dump(posix_setrlimit(POSIX_RLIMIT_NOFILE, 129, 128));
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
$uid = var_dump(posix_setuid( $myuid ) );
?>
---EXPECTF--
+--EXPECT--
bool(true)
var_dump(posix_setuid( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with boolean values ***
bool(false)
bool(false)
var_dump(posix_setuid( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with int values ***
bool(false)
bool(false)
var_dump(posix_ttyname(STDOUT));
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(false)
var_dump(posix_ttyname( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with array values ***
bool(false)
bool(false)
var_dump(posix_ttyname( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with boolean values ***
bool(false)
bool(false)
var_dump(posix_ttyname( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with emptyUnsetUndefNull values ***
bool(false)
bool(false)
var_dump(posix_ttyname( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with float values ***
bool(false)
bool(false)
var_dump(posix_ttyname( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with int values ***
bool(false)
bool(false)
var_dump(posix_ttyname( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with string values ***
bool(false)
bool(false)
var_dump(readline_callback_handler_remove());
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(true)
bool(true)
var_dump(readline_info('attempted_completion_over'));
?>
---EXPECTF--
+--EXPECT--
array(4) {
["line_buffer"]=>
string(0) ""
?>
===DONE===
---EXPECTF--
+--EXPECT--
ReflectionMethodEx::__construct
string(26) "ReflectionFunctionAbstract"
string(7) "getName"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(20) "Invalid method name "
string(21) "Invalid method name 1"
string(21) "Class does not exist"
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
Cannot fetch information from a terminated Generator
echo "Done!\n";
}
?>
---EXPECTF--
+--EXPECT--
Done!
var_dump($rc->getConstant('doesntexist'));
}
?>
---EXPECTF--
+--EXPECT--
Reflecting on class C:
string(12) "hello from C"
bool(false)
var_dump($rc->getConstants());
}
?>
---EXPECTF--
+--EXPECT--
Constants from class C:
array(1) {
["a"]=>
}
?>
---EXPECTF--
+--EXPECT--
---- Static properties in A ----
Array
(
}
?>
---EXPECTF--
+--EXPECT--
---( Interfaces implemented by A0 )---
Array
(
$interfaces = $rc->getInterfaces();
print_r($interfaces);
?>
---EXPECTF--
+--EXPECT--
Array
(
[I6] => ReflectionClass Object
var_dump($r1->getName(), $r2->getName(), $r3->getName());
?>
---EXPECTF--
+--EXPECT--
string(8) "stdClass"
string(8) "stdClass"
string(10) "TrickClass"
echo "Check absent constant: ";
var_dump($rd->hasConstant("doesntExist"));
?>
---EXPECTF--
+--EXPECT--
Check existing constant: bool(true)
Check existing constant, different case: bool(false)
Check absent constant: bool(false)
const foo=1;
}
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
var_dump($rc->hasMethod("doesntExist"));
}
?>
---EXPECTF--
+--EXPECT--
Reflecting on class pubf:
--> Check for f(): bool(true)
--> Check for s(): bool(true)
}
}
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
var_dump($rc->hasProperty("doesntExist"));
}
?>
---EXPECTF--
+--EXPECT--
Reflecting on class pubf:
--> Check for s: bool(true)
--> Check for a: bool(true)
public static $staticFoo;
}
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
}
?>
---EXPECTF--
+--EXPECT--
is myA a A? bool(true)
is myB a A? bool(true)
is myC a A? bool(false)
}
?>
---EXPECTF--
+--EXPECT--
Is C instantiable? bool(true)
Is iface instantiable? bool(false)
Is ifaceImpl instantiable? bool(true)
var_dump($r1->isInternal(), $r2->isInternal(), $r3->isInternal(),
$r4->isInternal(), $r5->isInternal());
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
}
}
?>
---EXPECTF--
+--EXPECT--
Is A a subclass of A?
- Using object argument: bool(false)
- Using string argument: bool(false)
var_dump($r1->isUserDefined(), $r2->isUserDefined(), $r3->isUserDefined(),
$r4->isUserDefined(), $r5->isUserDefined());
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(false)
var_dump($rc->getModifiers());
}
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(true)
$rc = new ReflectionClass("ReflectionClass");
echo $rc;
?>
---EXPECTF--
+--EXPECT--
Class [ <internal:Reflection> class ReflectionClass implements Reflector ] {
- Constants [3] {
}
?>
---EXPECTF--
+--EXPECT--
Ok - ReflectionFunction::__construct() expects parameter 1 to be string, array given
Function nonExistentFunction() does not exist
Ok - ReflectionFunction::__construct() expects exactly 1 parameter, 0 given
var_dump($rf->getClosureThis());
echo "Done!\n";
?>
---EXPECTF--
+--EXPECT--
NULL
Done!
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ReflectionFunction::getClosure() : basic functionality ***
string(19) "Inside foo function"
string(16) "Arg is succeeded"
$rc = new ReflectionFunction($closure);
var_dump($rc->isClosure());
?>
---EXPECTF--
+--EXPECT--
bool(true)
// We currently don't have any deprecated functions :/
$rc = new ReflectionFunction('var_dump');
var_dump($rc->isDeprecated());
---EXPECTF--
+--EXPECT--
bool(false)
$rc = new ReflectionFunction('is_file');
var_dump($rc->isDisabled());
?>
---EXPECTF--
+--EXPECT--
bool(true)
var_dump($m->isGenerator());
}
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(true)
bool(false)
}
?>
---EXPECTF--
+--EXPECT--
Too few arguments:
Ok - ReflectionMethod::__construct() expects exactly 1 parameter, 0 given
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ReflectionMethod::getClosure() : basic functionality ***
string(34) "Static Example class, Hello World!"
string(22) "Example class, bar: 42"
echo 'X::z', PHP_EOL;
var_dump($reflection->getDocComment());
?>
---EXPECTF--
+--EXPECT--
X::x
string(24) "/**
* doc 1
var_dump($rc->getConstant('doesntexist'));
}
?>
---EXPECTF--
+--EXPECT--
Reflecting on instance of class C:
string(12) "hello from C"
bool(false)
}
?>
---EXPECTF--
+--EXPECT--
Reflecting on instance of class C:
array(1) {
["a"]=>
}
?>
---EXPECTF--
+--EXPECT--
is myA a A? bool(true)
is myB a A? bool(true)
is myX a A? bool(false)
var_dump($ro->IsInstantiable());
}
?>
---EXPECTF--
+--EXPECT--
Is C instantiable? bool(true)
Is ifaceImpl instantiable? bool(true)
Is D instantiable? bool(true)
$r4->isInternal(), $r5->isInternal());
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
}
}
?>
---EXPECTF--
+--EXPECT--
Is A a subclass of A?
- Using ReflectionClass object argument: bool(false)
- Using ReflectionObject object argument: bool(false)
$r4->isUserDefined(), $r5->isUserDefined());
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(false)
echo "Done.\n";
?>
---EXPECTF--
+--EXPECT--
=> array_multisort:
Name: arr1
echo $e->getMessage() . "\n";
}
?>
---EXPECTF--
+--EXPECT--
Method ReflectionFunction::__invoke() does not exist
The parameter class is expected to be either a string, an array(class, method) or a callable object
echo "Done.\n";
?>
---EXPECTF--
+--EXPECT--
Class A does not exist
Method C::b() does not exist
Method C::b() does not exist
echo "\n\n--> Reflect inherited private from subclass:\n";
D::testFromD();
?>
---EXPECTF--
+--EXPECT--
--> Reflect inherited private from global scope:
Property D::$p does not exist
}
?>
---EXPECTF--
+--EXPECT--
C::a1: int(256)
D::a1: int(256)
C::a2: int(512)
var_dump($returnType->getName());
}
?>
---EXPECTF--
+--EXPECT--
string(4) "void"
string(3) "int"
string(5) "float"
$foo->testBAR();
?>
===DONE===
---EXPECTF--
+--EXPECT--
string(7) "testBAR"
string(7) "testBAR"
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
Caught: Cannot access non-public member TestClass::p
===DONE===
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(10)
string(0) ""
string(4) "test"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(7) "CParent"
string(7) "CParent"
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(1) "C"
string(1) "B"
string(1) "A"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(3) {
["prop1"]=>
string(1) "1"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(2) {
["fooStatic"]=>
string(3) "foo"
$r = new ReflectionParameter( 'foo', 0 );
echo $r->__toString();
?>
---EXPECTF--
+--EXPECT--
Parameter #0 [ <optional> array $x = Array ]
$method = new ReflectionMethod("A::call");
$method->invoke(null);
$method->invokeArgs(null, array());
---EXPECTF--
+--EXPECT--
BBAA
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
/** Correct docblock */
/** Correct docblock */
/** Correct docblock */
?>
===DONE===
---EXPECTF--
+--EXPECT--
int(2)
int(1)
int(2)
?>
===DONE===
---EXPECTF--
+--EXPECT--
string(8) "__invoke"
int(2)
int(1)
?>
===DONE===
---EXPECTF--
+--EXPECT--
__invoke
__invoke
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
{closure}
{closure}
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
Invoked!
Invoked!
Invoked!
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
base::show(2)
derived::show(2)
base::inc()
session_destroy();
?>
---EXPECTF--
+--EXPECT--
OPEN: PHPSESSID
READ: abtest
object(foo)#4 (2) {
*/
?>
---EXPECTF--
+--EXPECT--
write: goodbye cruel world
Warning: Unknown: Cannot call session save handler in a recursive manner in Unknown on line 0
echo "ok\n";
?>
---EXPECTF--
+--EXPECT--
PHP Recoverable fatal error: PHP Startup: Cannot set 'user' save handler by ini_set() or session_module_name() in Unknown on line 0
ok
session_set_save_handler ("open", "close", "read", "write", "destroy", "gc");
session_start();
---EXPECTF--
+--EXPECT--
8
session_start();
var_dump($_SESSION);
---EXPECTF--
+--EXPECT--
array(1) {
["foo"]=>
string(5) "hello"
session_start();
var_dump($_SESSION);
---EXPECTF--
+--EXPECT--
array(1) {
["foo"]=>
string(5) "hello"
var_dump($_SESSION['cnt']); // Should be int(2)
session_write_close();
---EXPECTF--
+--EXPECT--
Testing file module
bool(true)
bool(true)
var_dump(session_name("foo"));
var_dump(session_name("bar"));
---EXPECTF--
+--EXPECT--
PHP Warning: PHP Startup: session.name cannot be a numeric or empty '' in Unknown on line 0
Warning: PHP Startup: session.name cannot be a numeric or empty '' in Unknown on line 0
session_start();
echo 'OK';
?>
---EXPECTF--
+--EXPECT--
OK
ob_start();
echo "ok\n";
?>
---EXPECTF--
+--EXPECT--
ok
session_start()
?>
<a href="some.php">abc</a>
---EXPECTF--
+--EXPECT--
<a href="some.php">abc</a>
var_dump(session_id(), SID);
session_destroy();
?>
---EXPECTF--
+--EXPECT--
string(12) "bug72940test"
string(0) ""
string(11) "bug72940get"
ob_end_flush();
?>
==DONE==
---EXPECTF--
+--EXPECT--
bool(true)
==DONE==
echo "Done".PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
*** Testing session_abort() : basic functionality ***
array(2) {
["foo"]=>
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_cache_expire() : basic functionality ***
int(180)
int(180)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_cache_expire() : variation ***
int(360)
int(360)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_cache_expire() : variation ***
int(360)
int(360)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_cache_expire() : variation ***
string(3) "180"
int(180)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_cache_limiter() : basic functionality ***
string(7) "nocache"
string(7) "nocache"
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_commit() : basic functionality ***
bool(true)
array(0) {
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_commit() : variation ***
bool(true)
bool(true)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_commit() : variation ***
bool(true)
array(0) {
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_commit() : variation ***
array(0) {
}
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_commit() : variation ***
string(1) "0"
string(0) ""
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_decode() : basic functionality ***
bool(true)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_decode() : basic functionality ***
bool(true)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_decode() : variation ***
bool(true)
bool(true)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_decode() : variation ***
bool(true)
array(0) {
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_decode() : variation ***
bool(true)
array(0) {
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_destroy() : variation ***
bool(true)
bool(true)
// Should finish without errors
echo 'Done'.PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
bool(true)
string(51) "a:3:{i:-3;s:3:"foo";i:3;s:3:"bar";s:3:"var";i:123;}"
Done
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_encode() : variation ***
bool(true)
string(34) "foo|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}"
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_encode() : variation ***
bool(true)
string(52) "foo|a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}guff|R:1;blah|R:1;"
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_encode() : variation ***
bool(true)
string(64) "data|a:5:{i:0;i:1;i:1;i:2;i:2;i:3;s:3:"foo";R:1;s:4:"blah";R:1;}"
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_encode() : variation ***
bool(true)
string(24) "A2Zvb2k6MTIzNDU2Nzg5MDs="
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_get_cookie_params() : basic functionality ***
array(5) {
["lifetime"]=>
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_get_cookie_params() : variation ***
array(5) {
["lifetime"]=>
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_id() : basic functionality ***
string(0) ""
string(0) ""
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_id() : error functionality ***
string(0) ""
string(0) ""
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_module_name() : variation ***
array(3) {
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_name() : error functionality ***
string(9) "PHPSESSID"
string(9) "PHPSESSID"
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_name() : variation ***
string(4) "blah"
string(4) "blah"
echo "Done".PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
*** Testing session_abort() : basic functionality ***
array(2) {
["foo"]=>
echo "done\n";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_set_save_handler() : shutdown failure ***
(#1) constructor called
done
session_start();
---EXPECTF--
+--EXPECT--
PHP Recoverable fatal error: PHP Startup: Cannot set 'user' save handler by ini_set() or session_module_name() in Unknown on line 0
*** Testing session_set_save_handler() : calling default handler when save_handler=user ***
session_set_save_handler(new SessionHandler);
---EXPECTF--
+--EXPECT--
*** Testing session_set_save_handler() : register session handler but don't start ***
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_set_save_handler() : error functionality ***
array(3) {
["Blah"]=>
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_start() : variation ***
bool(true)
bool(true)
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_start() : variation ***
array(1) {
["blah"]=>
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_start() : variation ***
array(4) {
["colour"]=>
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_start() : variation ***
array(4) {
["colour"]=>
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_start() : variation ***
array(4) {
["colour"]=>
var_dump(session_status() == PHP_SESSION_ACTIVE);
?>
---EXPECTF--
+--EXPECT--
*** Testing session_status() : active, none
bool(true)
bool(true)
var_dump(session_status() == PHP_SESSION_DISABLED);
?>
---EXPECTF--
+--EXPECT--
*** Testing session_status() : disabled
bool(true)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_unset() : basic functionality ***
bool(true)
array(1) {
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_unset() : variation ***
bool(false)
bool(true)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_write_close() : basic functionality ***
bool(true)
array(0) {
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_write_close() : variation ***
bool(true)
bool(true)
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_write_close() : variation ***
bool(true)
array(0) {
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_write_close() : variation ***
array(0) {
}
echo "Done";
ob_end_flush();
?>
---EXPECTF--
+--EXPECT--
*** Testing session_write_close() : variation ***
string(0) ""
bool(true)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
array(1) {
["xhtml"]=>
string(31) "http://www.w3.org/TR/REC-html40"
?>
===DONE===
---EXPECTF--
+--EXPECT--
<people>
<person>Jane
</person>
?>
===DONE===
---EXPECTF--
+--EXPECT--
<people>
</people>
<people>
?>
===DONE===
---EXPECTF--
+--EXPECT--
string(3) "Joe"
int(3)
int(0)
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(false)
$p = (array)$foo->bar->p;
echo count($p);
?>
---EXPECTF--
+--EXPECT--
33
var_dump($simple->attributes());
echo "Done";
?>
---EXPECTF--
+--EXPECT--
object(SimpleXMLElement)#2 (1) {
["@attributes"]=>
array(1) {
$xml = @new SimpleXMLElement("X",1);
var_dump($xml->getDocNamespaces());
?>
---EXPECTF--
+--EXPECT--
bool(false)
?>
===DONE===
<?php exit(0); __halt_compiler(); ?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0"?>
<root><bla><posts><name>FooBar</name></posts></bla></root>
bool(false)
print $sx1->asXML();
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0"?>
<root><node>node1</node><node>node2</node></root>
?>
===DONE===
---EXPECTF--
+--EXPECT--
Error: simplexml_load_string() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given
Error: Argument 1 passed to Reflection::export() must implement interface Reflector, null given
Error: simplexml_load_file() expects parameter 2 to be a class name derived from SimpleXMLElement, 'Setting' given
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(101) "<?xml version="1.0"?>
<code>
<a href="javascript:alert('1');"><strong>Item Two</strong></a>
?>
===DONE===
---EXPECTF--
+--EXPECT--
a & b
a & b
a & b
echo $atts[0] . "\n";
?>
===DONE===
---EXPECTF--
+--EXPECT--
I am A
I am a:Nothing
I am a:A
var_dump(isset($x->o->xx));
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
bool(true)
print_r($xml);
?>
===DONE===
---EXPECTF--
+--EXPECT--
SimpleXMLElement Object
(
[bar] => SimpleXMLElement Object
}
?>
---EXPECTF--
+--EXPECT--
Result Count: 0
?>
===DONE===
---EXPECTF--
+--EXPECT--
getDocNamespaces
Backwards Compatibility:
var_dump($simple);
echo "Done";
?>
---EXPECTF--
+--EXPECT--
object(SimpleXMLElement)#1 (1) {
["book"]=>
array(2) {
?>
===DONE===
---EXPECTF--
+--EXPECT--
SXETest::rewind
SXETest::valid
SXETest::hasChildren
}
var_dump($session->close());
?>
---EXPECTF--
+--EXPECT--
bool(true)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Method [ <internal:snmp, ctor> public method __construct ] {
- Parameters [5] {
EOF;
$s->handle($HTTP_RAW_POST_DATA);
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode></faultcode><faultstring>some msg</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
--FILE--
<?php
var_dump(defined('SO_REUSEPORT'));
---EXPECTF--
+--EXPECT--
bool(true)
"interface" => 0,
));
var_dump($so);
---EXPECTF--
+--EXPECT--
bool(true)
if (!socket_recv($conns, $buf, 20, 0)) die("recv");
print_r($buf);
?>
---EXPECTF--
+--EXPECT--
creating server socket
creating client socket
int(11)
if (!socket_recv($s, $buf, 20, 0)) die("recv");
print_r($buf);
?>
---EXPECTF--
+--EXPECT--
creating send socket
creating receive socket
int(11)
var_dump($s_close);
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
int(16)
$except = null;
$time = -1;
var_dump(socket_select($sockets, $write, $except, $time));
---EXPECTF--
+--EXPECT--
int(0)
--CREDITS--
Till Klampaeckel, till@php.net
unset($socket);
unset($socketConn);
?>
---EXPECTF--
+--EXPECT--
okey
okey
okey
unset($socket);
unset($socketConn);
?>
---EXPECTF--
+--EXPECT--
okey
okey
$a->unserialize("");
?>
Done
---EXPECTF--
+--EXPECT--
Done
unlink($targetDir.DIRECTORY_SEPARATOR.'getBasename_test.txt');
rmdir($targetDir);
?>
---EXPECTF--
+--EXPECT--
getBasename_test
}
rmdir($dir);
?>
---EXPECTF--
+--EXPECT--
bool(true)
array(5) {
[0]=>
$dirname = 'DirectoryIterator_getGroup_basic';
rmdir($dirname);
?>
---EXPECTF--
+--EXPECT--
bool(true)
$dirname = 'DirectoryIterator_getOwner_basic';
rmdir($dirname);
?>
---EXPECTF--
+--EXPECT--
bool(true)
echo "Exception: ".$e->getMessage()."\n";
}
?>
---EXPECTF--
+--EXPECT--
Exception: Offset invalid or out of range
echo "Exception: ".$e->getMessage()."\n";
}
?>
---EXPECTF--
+--EXPECT--
Exception: Offset invalid or out of range
echo "PASS\n";
}
?>
---EXPECTF--
+--EXPECT--
PASS
PASS
PASS
unlink($file . $ext);
}
?>
---EXPECTF--
+--EXPECT--
string(3) "txt"
string(3) "txt"
string(9) "extension"
$filename = __DIR__ . "/SplFileInfo_getGroup_basic";
unlink($filename);
?>
---EXPECTF--
+--EXPECT--
bool(true)
<?php
unlink('SplFileInfo_getInode_basic.txt');
?>
---EXPECTF--
+--EXPECT--
bool(true)
$filename = __DIR__ . "/SplFileInfo_getOwner_basic";
unlink($filename);
?>
---EXPECTF--
+--EXPECT--
bool(true)
<?php
unlink('SplFileInfo_getPerms_basic.txt');
?>
---EXPECTF--
+--EXPECT--
bool(true)
}
?>
---EXPECTF--
+--EXPECT--
SplFileInfo::setInfoClass() expects parameter 1 to be a class name derived from SplFileInfo, 'stdClass' given
var_dump($obj->fflush());
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
<?php
unlink('SplFileObject__fgetcsv1.csv');
?>
---EXPECTF--
+--EXPECT--
array(4) {
[0]=>
string(6) "field1"
<?php
unlink('SplFileObject__fgetcsv2.csv');
?>
---EXPECTF--
+--EXPECT--
array(4) {
[0]=>
string(6) "field1"
<?php
unlink('SplFileObject__fgetcsv4.csv');
?>
---EXPECTF--
+--EXPECT--
array(4) {
[0]=>
string(6) "field1"
<?php
unlink('SplFileObject__fgetcsv6.csv');
?>
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
string(3) "aaa"
<?php
unlink('SplFileObject__fgetcsv7.csv');
?>
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
string(4) "aa\""
}
?>
---EXPECTF--
+--EXPECT--
Ok - SplFixedArray::__construct() expects parameter 1 to be int, array given
print_r( $array );
?>
---EXPECTF--
+--EXPECT--
SplFixedArray Object
(
)
\ No newline at end of file
?>
---EXPECTF--
+--EXPECT--
Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
}
?>
---EXPECTF--
+--EXPECT--
Ok - SplFixedArray::__construct() expects parameter 1 to be int, object given
$fixed_array->setSize(3.14159);
var_dump($fixed_array);
?>
---EXPECTF--
+--EXPECT--
object(SplFixedArray)#1 (3) {
[0]=>
NULL
var_dump($h->isEmpty());
?>
---EXPECTF--
+--EXPECT--
bool(true)
?>
Done
---EXPECTF--
+--EXPECT--
Done
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen
<?php
var_dump(new SplTempFileObject());
?>
---EXPECTF--
+--EXPECT--
object(SplTempFileObject)#1 (5) {
["pathName":"SplFileInfo":private]=>
string(10) "php://temp"
echo $e->getMessage(), "\n";
}
?>
---EXPECTF--
+--EXPECT--
SplTempFileObject::__construct() expects parameter 1 to be int, string given
<?php
var_dump(new SplTempFileObject(1024));
?>
---EXPECTF--
+--EXPECT--
object(SplTempFileObject)#1 (5) {
["pathName":"SplFileInfo":private]=>
string(25) "php://temp/maxmemory:1024"
<?php
var_dump(new SplTempFileObject(-1));
?>
---EXPECTF--
+--EXPECT--
object(SplTempFileObject)#1 (5) {
["pathName":"SplFileInfo":private]=>
string(12) "php://memory"
echo "--> Nested ArrayObject argument:\n";
var_dump(new ArrayObject(new ArrayObject($a)));
?>
---EXPECTF--
+--EXPECT--
--> No arguments:
object(ArrayObject)#1 (1) {
["storage":"ArrayObject":private]=>
$ao = new MyArrayObject(array(1,2,3), ArrayObject::STD_PROP_LIST);
var_dump($ao);
?>
---EXPECTF--
+--EXPECT--
object(ArrayObject)#1 (2) {
["p"]=>
int(1)
echo $e->getMessage() . "(" . $e->getLine() . ")\n";
}
?>
---EXPECTF--
+--EXPECT--
Bad iterator type:
ArrayObject::__construct() expects parameter 3 to be a class name derived from Iterator, 'Exception' given(6)
Non-existent class:
echo $e->getMessage() . "(" . $e->getLine() . ")\n";
}
?>
---EXPECTF--
+--EXPECT--
Too many arguments:
ArrayObject::__construct() expects at most 3 parameters, 4 given(12)
var_dump($ao1, $c);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ArrayObject::asort() : basic functionality ***
bool(true)
object(ArrayObject)#2 (1) {
$aa2['new.aa2'] = 'new element added to aa2';
var_dump($a, $aa1, $aa2);
?>
---EXPECTF--
+--EXPECT--
array(4) {
[0]=>
int(1)
$ao2['new.ao2'] = 'new element added to ao2';
var_dump($c, $ao1, $ao2);
?>
---EXPECTF--
+--EXPECT--
object(C)#1 (3) {
["p1"]=>
string(32) "new prop added to c before clone"
var_dump($wrappedObject, $innerArrayObject, $outerArrayObject, $clonedOuterArrayObject);
?>
---EXPECTF--
+--EXPECT--
object(C)#1 (5) {
["p"]=>
string(9) "C::p.orig"
$cao = clone $ao;
var_dump($cao->getFlags());
?>
---EXPECTF--
+--EXPECT--
int(0)
int(1)
int(2)
var_dump($ao2->getFlags());
?>
---EXPECTF--
+--EXPECT--
int(3)
int(3)
int(3)
}
?>
---EXPECTF--
+--EXPECT--
--> Access using MyIterator:
string(10) "MyIterator"
object(MyIterator)#2 (1) {
var_dump($ao1, $c);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ArrayObject::ksort() : basic functionality ***
bool(true)
object(ArrayObject)#2 (1) {
echo " Wrapping ArrayObject:\n";
var_dump($ao);
?>
---EXPECTF--
+--EXPECT--
--> Write existent, non-existent and dynamic:
In UsesMagic::__set(a,changed)
In UsesMagic::__set(dynamic,new)
var_dump($ao2);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ArrayObject::natcasesort() : basic functionality ***
bool(true)
object(ArrayObject)#1 (1) {
var_dump($ao2);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ArrayObject::natsort() : basic functionality ***
bool(true)
object(ArrayObject)#1 (1) {
var_dump($ao->offsetExists('foo'));
?>
---EXPECTF--
+--EXPECT--
bool(true)
\ No newline at end of file
var_dump($ao);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ArrayObject::uasort() : basic functionality ***
object(ArrayObject)#1 (1) {
["storage":"ArrayObject":private]=>
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
Function expects exactly one argument
Function expects exactly one argument
===DONE===
var_dump($ao);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing ArrayObject::uksort() : basic functionality ***
object(ArrayObject)#1 (1) {
["storage":"ArrayObject":private]=>
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
Function expects exactly one argument
Function expects exactly one argument
===DONE===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
test Object
(
[pub] => public
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
0=>0 - 0=>0
0=>0 - 1=>1
0=>0 - 2=>2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
==Normal==
0=>0 - 0=>0
0=>0 - 1=>1
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
test Object
(
[pub] => public
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
0=>modify - 0=>modify
0=>modify - 1=>1
0=>modify - 2=>2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
int(11)
int(5)
int(4)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
int(0)
int(1)
int(2)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
ArrayIteratorEx::rewind
ArrayIteratorEx::valid
ArrayIteratorEx::current
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
Collection::__construct
Collection::rewind
Collection::valid
<?php exit(0); ?>
?>
===DONE===
---EXPECTF--
+--EXPECT--
===Default with array===
1 => apple
1 => grape
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(3) {
["a"]=>
NULL
var_dump($itit->current());
var_dump($itit->key());
?>
---EXPECTF--
+--EXPECT--
string(3) "boo"
NULL
NULL
var_dump($t);
}
?>
---EXPECTF--
+--EXPECT--
string(1) "z"
object(stdClass)#1 (0) {
}
<?php
unlink(dirname(__FILE__) . '/foo.html');
?>
---EXPECTF--
+--EXPECT--
string(12) "text 0text 1"
string(12) "text 0text 1"
}
?>
---EXPECTF--
+--EXPECT--
test1=>[test888]
test3=>[test999]
test1=>888
var_dump($result);
var_dump($f->fscanf('<?php // %s'));
?>
---EXPECTF--
+--EXPECT--
int(1)
string(4) "test"
array(1) {
echo "Done.\n";
?>
---EXPECTF--
+--EXPECT--
int(4)
Done.
var_dump(count($b));
?>
---EXPECTF--
+--EXPECT--
int(2)
int(0)
\ No newline at end of file
$obj[]=2;
?>
---EXPECTF--
+--EXPECT--
NULL
NULL
NULL
}
?>
---EXPECTF--
+--EXPECT--
string(74) "SplFileObject::__construct() expects parameter 2 to be string, array given"
?>
==DONE==
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
NULL
NULL
int(4)
print_r(spl_autoload_functions());
?>
---EXPECTF--
+--EXPECT--
Array
(
)
var_dump($ii->count());
?>
---EXPECTF--
+--EXPECT--
int(2)
int(2)
$obj = new ObjB(new ArrayObject());
var_dump($obj == unserialize(serialize($obj)));
---EXPECTF--
+--EXPECT--
bool(true)
$z = clone $x;
echo "No crash.";
---EXPECTF--
+--EXPECT--
No crash.
print_r($myFixedArr->toArray());
?>
---EXPECTF--
+--EXPECT--
Array
(
[0] => foo
$it2 = new \RegexIterator($it, "/^ba/", \RegexIterator::MATCH, \RegexIterator::USE_KEY | \RegexIterator::INVERT_MATCH);
print_r(iterator_to_array($it2));
---EXPECTF--
+--EXPECT--
Array
(
[1] => bar
}
echo "okey"
?>
---EXPECTF--
+--EXPECT--
okey
$list->next();
echo "okey";
?>
---EXPECTF--
+--EXPECT--
okey
var_dump($line === '<?p');
var_dump(strlen($line) === 3);
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
?>
===DONE===
---EXPECTF--
+--EXPECT--
array(4) {
[0]=>
object(ReflectionParameter)#2 (1) {
unlink(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'b');
rmdir(__DIR__ . DIRECTORY_SEPARATOR . 'tmp');
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
}
}
?>
---EXPECTF--
+--EXPECT--
string(6) "1 => 1"
string(6) "3 => 3"
string(6) "5 => 5"
echo "Done", PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
string(6) "A.phpt"
string(6) "B.phpt"
var_dump($obj->getTest());
$obj2 = unserialize(serialize($obj));
var_dump($obj2->getTest());
---EXPECTF--
+--EXPECT--
string(4) "test"
string(4) "test"
}
?>
DONE
---EXPECTF--
+--EXPECT--
Error at offset 10 of 19 bytes
DONE
}\r
?>\r
===DONE===\r
---EXPECTF--\r
+--EXPECT--\r
expected exception: Iterators' LIFO/FIFO modes for SplStack/SplQueue objects are frozen\r
===DONE===\r
echo (int)spl_autoload_unregister($loader);
}
echo (int)count(spl_autoload_functions());
---EXPECTF--
+--EXPECT--
11110
var_dump($count > 0);
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
===DONE===
var_dump($a->key(), $c->key());
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
int(0)
int(0)
var_dump($a->key() == $c->key());
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Exception: Can't pop from an empty datastructure
Exception: Can't shift from an empty datastructure
2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
0=>2
->0=>2
->1=>3
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
2=>4
1=>3
0=>2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Exception: Can't pop from an empty datastructure
Exception: Can't shift from an empty datastructure
2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Exception: Can't shift from an empty datastructure
Exception: Can't shift from an empty datastructure
2
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
int(1)
int(2)
int(3)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
int(1)
NULL
int(2)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Exception: Offset invalid or out of range
7
7
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
1
3
===DONE===
var_dump($b[0]);
?>
===DONE===
---EXPECTF--
+--EXPECT--
Exception: Index invalid or out of range
Exception: Index invalid or out of range
Exception: Index invalid or out of range
var_dump(count($a), $a->getSize(), count($a) == $a->getSize());
?>
===DONE===
---EXPECTF--
+--EXPECT--
A::offsetSet
Exception: Index invalid or out of range
A::offsetGet
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
==Direct instance==
0 => a
1 => c
?>
===DONE===
---EXPECTF--
+--EXPECT--
string(29) "Index invalid or out of range"
===DONE===
echo "Ok - ".$iae->getMessage().PHP_EOL;
}
?>
---EXPECTF--
+--EXPECT--
Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Ok - SplFixedArray::__construct() expects parameter 1 to be int, string given
Done
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Exception: Can't extract from an empty heap
5
3
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Exception: Can't extract from an empty heap
5
1
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
10
9
8
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
inserted 1
Exception: foo
Exception: Heap is corrupted, heap properties are no longer ensured.
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
99 => 1
98 => 2
97 => 3
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
99 => 100
98 => 99
97 => 98
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
count($h) = 4
$h->count() = 4
3=>5
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
object(SplMaxHeap)#1 (3) {
["flags":"SplHeap":private]=>
int(0)
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
Heap is corrupted, heap properties are no longer ensured.
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
Can't peek at an empty heap
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
ArrayIteratorEx::rewind
int(0)
int(1)
?>
===DONE===
<?php exit(0);
---EXPECTF--
+--EXPECT--
===EmptyIterator===
===DONE===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===EmptyIterator===
===InfiniteIterator===
2=>C
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===Current===
0=>A
===Next===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===Empty===
===Append===
0=>A
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
<ul>
0=>a
<ul>
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Menu::getIterator
<ul>
0=>a
?>
===DONE===
<?php exit(0);
---EXPECTF--
+--EXPECT--
===EmptyIterator===
===DONE===
?>
===DONE===
<?php exit(0);
---EXPECTF--
+--EXPECT--
===EmptyIterator===
===InfiniteIterator===
2=>C
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===Current===
0=>A
===Next===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===Empty===
===Append===
0=>A
?>
===DONE===
---EXPECTF--
+--EXPECT--
===1===
int(1)
string(1) "1"
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===iterator_to_array===
State 0: __construct()
State 1: __construct()
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
NULL
NULL
===DONE===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
MyCachingIterator::fill()
MyCachingIterator::show()
string(1) "0"
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
int(0)
string(3) "Bar"
int(2)
?>
---EXPECTF--
+--EXPECT--
NULL
NULL
NULL
\ No newline at end of file
foreach ($recItIt as $key => $val) echo "$key\n";
?>
---EXPECTF--
+--EXPECT--
MyRecursiveIteratorIterator::nextelement
0
MyRecursiveIteratorIterator::nextelement
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
bool(true)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
int(3)
int(2)
int(1)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Count storage A: 2 x x
Count storage B: 2 x x
===DONE===
$map[$a] = 'foo';
var_dump($map[$b] ?? null);
var_dump($map[$a] ?? null);
---EXPECTF--
+--EXPECT--
NULL
string(3) "foo"
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Exception: Can't extract from an empty heap
2=>b
1=>a
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
inserted 1
Exception: foo
Exception: Heap is corrupted, heap properties are no longer ensured.
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
count($h) = 4
$h->count() = 4
3=>5
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
object(SplPriorityQueue)#1 (3) {
["flags":"SplPriorityQueue":private]=>
int(1)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
?>
===DONE===
---EXPECTF--
+--EXPECT--
-- flags = BYPASS_KEY --
[0] => |-Array
[0] => | |-a
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
InvalidArgumentException thrown
===DONE===
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
[0] => |-Array
[0] => | |-a
[1] => | \-1
?>
===DONE===
---EXPECTF--
+--EXPECT--
-- flags = BYPASS_KEY --
[0] => |-Array
[0] => | |-a
?>
===DONE===
---EXPECTF--
+--EXPECT--
UnexpectedValueException thrown
===DONE===
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
[a] => 035Array
[0] => 0145b
[c] => 045Array
?>
===DONE===
---EXPECTF--
+--EXPECT--
----
var_dump(get_class($iterator->getSubIterator()));
var_dump($iterator->getSubIterator()->getArrayCopy());
?>
---EXPECTF--
+--EXPECT--
string(22) "RecursiveArrayIterator"
array(3) {
[0]=>
echo is_long($r->getPregFlags());
?>
---EXPECTF--
+--EXPECT--
1
\ No newline at end of file
?>
---EXPECTF--
+--EXPECT--
256
\ No newline at end of file
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
TestFunc1(TestClass)
TestFunc2(TestClass)
Exception: Class TestClass missing
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(2) {
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
Exception: Passed array specifies a non static method but no object (non-static method MyAutoLoader::autoLoad() should not be called statically)
MyAutoLoader::autoLoad(TestClass)
MyAutoLoader::autoThrow(TestClass)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(2) {
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
B -> C
A -> C
C -> C
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
var:2
bool(false)
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
Flags must contain only one of CALL_TOSTRING, TOSTRING_USE_KEY, TOSTRING_USE_CURRENT, TOSTRING_USE_INNER
===DONE===
$ci->__toString() // if conversion to string is done by echo, for example, an exeption is thrown. Invoking __toString explicitly covers different code.
);
?>
---EXPECTF--
+--EXPECT--
string(0) ""
?>
===DONE===
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
int(7)
?>
===DONE===
---EXPECTF--
+--EXPECT--
IteratorIterator::__construct() expects at most 2 parameters, 3 given
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
Parameter offset must be >= 0
Parameter count must either be -1 or a value greater than or equal 0
===DONE===
var_dump($k);
}
?>
---EXPECTF--
+--EXPECT--
one=>1
string(3) "one"
two=>2
echo "Exception: ".$e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
callback
Exception: oops
var_dump($db->close());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Creating Table
bool(true)
INSERT into table
var_dump($db->close());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Creating Table
bool(true)
INSERT into table
var_dump($db->close());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Creating Table
bool(true)
SELECTING results
var_dump($db->close());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Creating Table
bool(true)
INSERT into table
var_dump($db->close());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Creating Table
bool(true)
INSERT into table
var_dump($db->close());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Creating Table
bool(true)
INSERT into table
var_dump($db->close());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Creating Table
bool(true)
INSERT into table
var_dump($db->changes());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
object(SQLite3)#1 (0) {
}
int(0)
var_dump($db->close());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Creating Table
bool(true)
INSERT into table
?>
---EXPECTF--
+--EXPECT--
bool(true)
string(4) "TEST"
bool(true)
?>
==DONE==
---EXPECTF--
+--EXPECT--
array(3) {
["a"]=>
int(1)
echo "done\n";
?>
---EXPECTF--
+--EXPECT--
done
var_dump($db->prepare(''));
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(false)
Done
var_dump($db->close());
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Creating Table
bool(true)
INSERT into table
echo "end\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing basic operations ***
** Iteration 1 **
array(0) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_change_key_case() : usage variations ***
-- Iteration 1 : int data --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_change_key_case() : usage variations ***
-- $sort argument is -5 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_change_key_case() : usage variations ***
-- Call array_change_key_case() --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_change_key_case() : usage variations ***
-- Pass a two-dimensional array as $input argument --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_change_key_case() : usage variations ***
-- $input argument is a reference to array --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_change_key_case() : usage variations ***
-- $case = default --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_chunk() : basic functionality ***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_chunk() : basic functionality ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_chunk() : usage variations ***
-- Testing array_chunk() by supplying an array containing different sub arrays & 'preserve_key' as defualt --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_chunk() : usage variations ***
-- Testing array_chunk() by supplying various arrays --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_chunk() : usage variations ***
-- Testing array_chunk(), input array containing references
var_dump(array_column($rows, null));
echo "Done\n";
---EXPECTF--
+--EXPECT--
-- pass null as second parameter to get back all columns indexed by third parameter --
array(2) {
[3]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_column() : object property fetching (numeric property names) ***
-- first_name column from recordset --
array(3) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_combine() : basic functionality ***
array(2) {
[1]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_combine() : Passing different types of arrays to both $keys and $values argument ***
-- Iteration 1 --
array(2) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_combine() : binary safe checking ***
array(2) {
["hello"]=>
<?php
unlink("array_count_file");
?>
---EXPECTF--
+--EXPECT--
*** Testing array_count_values() : parameter variations ***
array(3) {
["bobv"]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff_assoc() : basic functionality ***
-- Compare Default keys to numeric keys --
array(3) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff_assoc() : usage variations ***
array(3) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff_assoc() : usage variations ***
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff_assoc() : usage variations ***
-- Result of comparing integers and floating point numbers: --
};
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff_assoc() : usage variations ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff_assoc() : usage variations ***
-- Results when $a = a: --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff_assoc() : variation ***
array(2) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff_assoc() : usage variations ***
-- Compare two 2-D arrays --
array(2) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff() : basic functionality ***
-- Test indexed array with integers as elements --
array(2) {
}
?>
---EXPECTF--
+--EXPECT--
------ Test 1 --------
array(4) {
[1]=>
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_key() : usage variation ***
--decimal indexed--
var_dump( array_diff_key($float_indx_array, $input_array) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_key() : usage variation ***
-- Testing array_diff_key() function with float indexed array --
var_dump( array_diff_key($boolean_indx_array, $input_array) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_key() : usage variation ***
-- Testing array_diff_key() function with boolean indexed array --
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_key() : usage variation ***
--null indexed--
var_dump( array_diff_key($array2, $array1) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_key() : usage variation ***
-- Testing array_diff_key() function with multi dimensional array --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_uassoc() : usage variation ***
-- Testing array_diff_key() function with float indexed array --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_uassoc() : usage variation ***
-- Testing array_diff_key() function with float indexed array --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_uassoc() : usage variation ***
--null indexed--
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_uassoc() : usage variation ***
-- Testing array_diff_uassoc() function with referenced variable $ref_var has value 'a' --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_uassoc() : usage variation ***
-- Result of comparing integers and floating point numbers --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_uassoc() : usage variation ***
-- Result of comparing floating points and strings containing integers --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_uassoc() : usage variation ***
-- Result of comparing strings containing integers and strings containing floating points --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_uassoc() : usage variation ***
-- Result of comparing integers and strings containing an integers --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_uassoc() : usage variation ***
--decimal indexed--
var_dump( array_diff_ukey($array2, $array1, 'strcasecmp') );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_ukey() : usage variation ***
-- Testing array_diff_ukey() function with multi dimensional array --
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_ukey() : usage variation ***
--decimal indexed--
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_ukey() : usage variation ***
-- Testing array_diff_ukey() function with float indexed array --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_ukey() : usage variation ***
-- Testing array_diff_ukey() function with boolean indexed array --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_diff_ukey() : usage variation ***
--null indexed--
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff() : usage variations ***
array(1) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff() : usage variations ***
Iteration: 1
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff() : usage variations ***
Iteration: 1
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff() : usage variations ***
-- Compare integers and floats: --
array(0) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff() : usage variations ***
array(1) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_diff() : usage variations ***
-- Basic Comparison --
echo '== Done ==';
?>
===============Done====================
---EXPECTF--
+--EXPECT--
===========================
start: 0 num: 0 value: 1
array(0) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_fill() : basic functionality ***
-- Iteration 1 --
array(2) {
fclose($fp);
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_fill_keys() : parameter variations ***
-- Testing array_fill_keys() function with reference value --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_fill() : variation ***
*** Filling 2 dimensional array with all basic valid values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_fill() : usage variations ***
--- Testing array_fill() with different types of array values for 'val' argument ---
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_filter() : basic functionality ***
array(2) {
[1]=>
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_filter() : usage variations - different types of array for 'input' argument***
-- Iteration 1 --
array(5) {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_filter() : usage variation - different 'callback' functions***
-- Callback function without parameter and with return --
array(8) {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_filter() : usage variations - different false elements in 'input' ***
array(0) {
}
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_filter() : usage variations - 'input' containing references ***
array(3) {
[0]=>
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_filter() : usage variations - Anonymous callback functions ***
Anonymous callback function with regular parameter and statement
array(3) {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_filter() : usage variations - callback function with different return values***
callback function with int return value
array(9) {
var_dump( array_flip($input) );
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_flip() : basic functionality ***
array(2) {
[1]=>
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_flip() : 'input' array with repeatitive keys/values ***
array(3) {
["VaLuE"]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_assoc() : basic functionality ***
array(4) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_assoc() : binary safe checking ***
array(2) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_assoc() : Passing different types of arrays to $arr1 argument ***
-- Iteration 1 --
array(1) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_assoc() : Passing different types of arrays to $arr2 argument ***
-- Iteration 1 --
array(1) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_assoc() : assoc array with diff keys to $arr1 argument ***
-- Iteration 1 --
array(0) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_assoc() : assoc array with diff keys to $arr2 argument ***
-- Iteration 1 --
array(0) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect() : basic functionality ***
array(4) {
[0]=>
}
?>
---EXPECTF--
+--EXPECT--
array(3) {
[2]=>
int(4)
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_key() : usage variation ***
--decimal indexed--
var_dump( array_intersect_key($float_indx_array,$input_array ) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_key() : usage variation ***
-- Testing array_intersect_key() function with float indexed array --
var_dump( array_intersect_key($boolean_indx_array,$input_array ) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_key() : usage variation ***
-- Testing array_intersect_key() function with boolean indexed array --
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_key() : usage variation ***
--null indexed--
var_dump( array_intersect_key($array2,$array1 ) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_key() : usage variation ***
array(2) {
["first"]=>
var_dump( array_intersect_uassoc($array1, $array2, array($obj,'class_compare_func')) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_uassoc() : usage variation ***
-- Testing array_intersect_uassoc() function using class with static method as callback --
var_dump( array_intersect_uassoc($arr_default_int, $arr_string_float, "key_compare_func") );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_uassoc() : usage variation ***
-- Result of integers and floating point intersection --
var_dump( array_intersect_uassoc($arr_float, $arr_string_float, "key_compare_func") );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_uassoc() : usage variation ***
-- Result of floating points and strings containing integers intersection --
var_dump( array_intersect_uassoc($arr1_string_int, $arr2_string_float, "key_compare_func") );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_uassoc() : usage variation ***
-- Result of strings containing integers intersection --
var_dump( array_intersect_uassoc($array1, $array2, "strcasecmp") );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_uassoc() : usage variation ***
-- Testing array_intersect_uassoc() function with referenced variable $ref_var has value 'a' --
var_dump( array_intersect_ukey($arr_default_int, $arr_string_float, "key_compare_func") );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_ukey() : usage variation ***
-- Result of integers and floating point intersection --
var_dump( array_intersect_ukey($arr_float, $arr_string_float, 'key_compare_func') );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_ukey() : usage variation ***
-- Result of floating points and strings containing integers intersection --
var_dump( array_intersect_ukey($arr1_string_int, $arr2_string_float, 'key_compare_func') );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_ukey() : usage variation ***
-- Result of strings containing integers intersection --
var_dump( array_intersect_ukey($array1, $array2, array($obj,'class_compare_func')) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_intersect_ukey() : usage variation ***
-- Testing array_intersect_ukey() function using class with static method as callback --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect() : binary safe checking ***
array(2) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect() : Passing different types of arrays to $arr1 argument ***
-- Iterator 1 --
array(2) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect() : Passing different types of arrays to $arr2 argument ***
-- Iteration 1 --
array(3) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect() : assoc array with diff keys to $arr1 argument ***
-- Iterator 1 --
array(0) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_intersect() : assoc array with diff keys to $arr2 argument ***
-- Iterator 1 --
array(0) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_key_exists() : basic functionality ***
bool(true)
bool(false)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_key_exists() : object functionality ***
-- Do not assign a value to $class1->var3 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_key_exists() : object functionality ***
-- Do not assign a value to $class1->var3 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_key_exists() : usage variations ***
-- $search is a reference to $array --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_key_exists() : usage variations ***
-- Attempt to match key in sub-array --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_key_exists() : usage variations ***
-- Key in $search array is : null --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_key_exists() : usage variations ***
-- Call array_key_exists() --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_key_exists() : usage variations ***
-- Iteration 1: int data --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_keys() on basic array operation ***
array(5) {
[0]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_keys() on various arrays ***
-- Iteration 0 --
array(0) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_keys() on range of values ***
array(4) {
[0]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_keys() on range of values ***
array(6) {
[0]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_keys() on all the types other than arrays ***
bool(true)
array(3) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_keys() on all the types other than arrays ***
array(0) {
}
closedir( $resource2 );
?>
---EXPECTF--
+--EXPECT--
*** Testing array_keys() with resource type ***
array(1) {
[0]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(17) "exception caught!"
Done
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : basic functionality ***
-- With two integer array --
array(3) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : recursive callback function ***
array(3) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : callback with diff return value ***
-- with integer return value --
array(3) {
array_map("callback", $arr2);
var_dump($arr2);
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(10) "original.0"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : different arrays for 'arr1' argument ***
-- Iteration 1 --
array(2) {
var_dump( array_map('callback', $arr1));
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : array having subarrays ***
array(5) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : arrays with diff. size ***
array(3) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : array with references for 'arr1' argument ***
-- with one array --
array(6) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_map() : array with binary data for 'arr1' argument ***
-- checking binary safe array with one parameter callback function --
array(4) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge() : basic functionality ***
array(6) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge_recursive() : array with default keys ***
-- With default argument --
array(2) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge_recursive() : associative arrays ***
-- With default argument --
array(2) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge_recursive() : two dimensional array for $arr1 argument ***
-- Passing the entire 2-d array --
-- With default argument --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge_recursive() : Passing different arrays to $arr1 argument ***
-- Iteration 1 --
-- With default argument --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge_recursive() : array with duplicate keys for $arr1 argument ***
-- With default argument --
array(3) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge_recursive() : array with reference variables for $arr1 argument ***
-- With default argument --
array(6) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge_recursive() : array with binary data for $arr1 argument ***
-- With default argument --
array(5) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge_recursive() : arrays with common key and value ***
-- Integer values --
array(3) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge() : usage variations ***
-- Call array_merge() --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge() : usage variations ***
-- Iteration 1: int data --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge() : usage variations ***
array(7) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge() : usage variations ***
array(5) {
["zero"]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge() : usage variations ***
array(8) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge() : usage variations ***
-- Merge a two-dimensional and a one-dimensional array --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_merge() : usage variations ***
-- Merge an array made up of referenced variables to an assoc. array --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : basic functionality ***
-- Testing array_multisort() function with all normal arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : basic functionality - renumbering of numeric keys ***
-- Testing array_multisort() function with all normal arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : case-sensitive
array(7) {
[0]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : case-insensitive
array(7) {
[0]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : natural sorting
array(5) {
[0]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : natural sorting case-sensitive
array(7) {
[0]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : natural sorting case-insensitive
array(7) {
[0]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : Testing with anonymous arguments ***
bool(true)
===DONE===
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : Testing with empty array ***
bool(true)
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : Testing with multiple array arguments ***
bool(true)
array(4) {
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : Testing all array sort specifiers ***
array(3) {
[0]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : Testing all array sort specifiers ***
array(3) {
[0]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : usage variation - test sort order of all types***
bool(true)
array(10) {
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_multisort() : usage variation - test sort order of all types***
bool(true)
array(10) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_pad() : Passing binary values to $pad_value argument ***
array(6) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_pad() : Passing 2-d array to $pad_value argument ***
array(5) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_pad() : Passing different arrays to $input argument ***
-- Iteration 1 --
array(6) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_pad() : Passing 2-D array to $input argument ***
-- Entire 2-d array for $input argument --
array(5) {
echo"\nDone";
?>
---EXPECTF--
+--EXPECT--
*** Normal testing with various array inputs ***
-- Input Array for Iteration 1 is --
echo"\nDone";
?>
---EXPECTF--
+--EXPECT--
*** Checking for internal array pointer being reset when pop is called ***
Current Element is : int(1)
var_dump( array_product(array("bob" => 2, "janet" => 5)) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_product() : variations ***
-- Testing array_product() function with a keyed array array --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_product() : variations - negative numbers***
-- Testing array_product() function with one negative number --
var_dump( array_product($array) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_product() : variations ***
-- Testing array_product() function with a very large array --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_push() : basic functionality ***
-- Push values onto an indexed array --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_push() : usage variations ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_push() : usage variations ***
-- Pass array as $var argument --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_push() : usage variations ***
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_push() : usage variations ***
-- Iteration 1 : int data --
echo "\nDone";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_reduce() to integer ***
int(61)
int(42)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_reduce() : variation ***
--- Testing with a callback with too few parameters ---
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_reduce() : variation - object callbacks ***
--- Static method callback ---
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_reverse() : basic functionality ***
array(6) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_reverse() : basic functionality ***
array(4) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_reverse() : usage variations ***
-- Iteration 1 --
- with default argument -
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_reverse() : usage variations ***
-- with default argument --
array(3) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_search() with different needle values ***
-- Iteration 1 --
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_search() with different haystack values ***
-- Iteration 1 --
int(0)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing resource type with array_search() ***
int(0)
bool(false)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_shift() : basic functionality ***
-- Before shift: --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_shift() : usage variations ***
-- Iteration 1 : int data --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_shift() : usage variations ***
-- Before shift: --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_shift() : usage variations ***
-- Variable is referenced array --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_shift() : usage variations ***
-- Call array_shift() --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_slice() : basic functionality ***
-- All arguments --
?>
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
int(1)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_slice() : usage variations ***
-- Call array_slice() --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_slice() : usage variations ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_slice() : usage variations ***
-- $offset is -7 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_slice() : usage variations ***
-- $length is -6 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_slice() : usage variations ***
-- Iteration 1 : key type is int --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_slice() : usage variations ***
-- Slice a two-dimensional array --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_slice() : usage variations ***
-- Array of referenced variables ($preserve_keys = default) --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_sum() : basic functionality ***
-- array_sum() with integer array entries --
int(15)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_sum() : different integer array ***
-- Sum of Integer array --
int(-573)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_sum() : array with different float values ***
-- simple float array --
float(1.3)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_sum() : array with duplicate values ***
-- With integer array --
int(117)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_sum() : array with elements as reference ***
int(305)
Done
var_dump( array_sum($input) );
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_sum() : with associative array ***
-- with numeric keys --
float(32.56)
var_dump( array_sum($input) );
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_sum() : array with unexpected entries ***
-- empty array --
int(0)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_udiff_assoc() : variation - testing with multiple array arguments ***
array(2) {
[4]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_udiff_assoc() : usage variation - differing comparison functions***
-- comparison function with an incorrect return value --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_udiff_uassoc() : usage variation - differing comparison functions***
-- comparison function with an incorrect return value --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_udiff() : usage variation ***
-- comparison function with an incorrect return value --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_uintersect_assoc() : basic functionality - testing with multiple array arguments ***
array(2) {
["one"]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_uintersect_assoc() : usage variation - differing comparison functions***
-- comparison function with an incorrect return value --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_uintersect_uassoc() : usage variation - incorrect callbacks ***
-- comparison function with an incorrect return value --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing array_uintersect() : usage variation - differing comparison functions***
-- comparison function with an incorrect return value --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unique() : basic functionality ***
array(2) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unique() : Passing different arrays to $input argument ***
-- Iteration 1 --
array(2) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unique() : array with duplicate keys for $input argument ***
array(3) {
[1]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unique() : array with reference variables for $input argument ***
array(2) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unique() : array with binary data for $input argument ***
array(3) {
[0]=>
print_r(array_unique($a));
?>
---EXPECTF--
+--EXPECT--
Array
(
[0] => acls_channel
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unshift() : basic functionality with default key array ***
int(3)
array(3) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unshift() : basic functionality with associative array ***
int(5)
array(5) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unshift() : different arrays for $array argument ***
-- Iteration 1 --
int(3)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unshift() : two dimensional arrays for $array argument ***
int(4)
array(4) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unshift() : double quoted strings for $var argument ***
-- Iteration 1 --
int(5)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unshift() : single quoted strings for $var argument ***
-- Iteration 1 --
int(5)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_unshift() : heredoc strings for $var argument ***
-- Iteration 1 --
int(5)
var_dump($a);
?>
---EXPECTF--
+--EXPECT--
string(1) "B"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_values() : basic functionality ***
array(5) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_values() : usage variations ***
-- Iteration 1: int data --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_values() : usage variations ***
-- Array values of a two-dimensional array --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_values() : usage variations ***
-- Call array_values() --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_values() : usage variations ***
-- $input is an array made up of referenced variables: --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing array_values() : usage variations ***
-- $input argument: --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk() : array of objects ***
-- For private member --
value : int(3)
var_dump (array_walk_recursive ($arr, 'bar'));
?>
---EXPECTF--
+--EXPECT--
1 foo
2 foo
3 foo
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk_recursive() : array of objects ***
-- For private member --
value : int(3)
}
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk_recursive() : 'input' array with different values***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk_recursive() : array with subarray ***
int(0)
int(1)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk_recursive() : array with references ***
int(0)
int(10)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk_recursive() : 'input' as an associative array ***
-- Associative array with numeric keys --
int(1)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk_recursive() : callback function variation ***
-- callback function with both parameters --
int(0)
}
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk() : 'input' array with different values***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk() : array with subarray ***
int(0)
array(0) {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk() : array with references ***
int(0)
int(10)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk() : 'input' as an associative array ***
-- Associative array with numeric keys --
int(1)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing array_walk() : callback function variation ***
-- callback function with both parameters --
int(0)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing arsort() : basic functionality ***
-- Testing arsort() by supplying string array, 'flag' value is default --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing arsort() : usage variations ***
-- Testing arsort() by supplying octal value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing arsort() :usage variations ***
-- Testing arsort() by supplying reference variable array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing arsort() : usage variations ***
-- Testing arsort() by supplying various string arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing arsort() : usage variations ***
-- Testing arsort() by supplying hexadecimal value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing arsort() : usage variations ***
-- Testing arsort() by supplying bool value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing arsort() : usage variations ***
-- Testing arsort() by supplying various arrays containing sub arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing arsort() : usage variations ***
-- Testing arsort() by supplying various arrays with key values --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing asort() : basic functionality ***
-- Testing asort() by supplying string array, 'flag' value is default --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing asort() : usage variations ***
-- Testing asort() by supplying octal value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing asort() :usage variations ***
-- Testing asort() by supplying reference variable array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing asort() : usage variations ***
-- Testing asort() by supplying various string arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing asort() : usage variations ***
-- Testing asort() by supplying hexadecimal value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing asort() : usage variations ***
-- Testing asort() by supplying bool value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing asort() : usage variations ***
-- Testing asort() by supplying various arrays containing sub arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing asort() : usage variations ***
-- Testing asort() by supplying various arrays with key values --
var_dump(@array_diff_assoc($GLOBALS, $zz));
var_dump($gg);
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
string(4) "afad"
}
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
gen_xml(prefix=/Docs/)
gen_xml(prefix=/Docs/@)
/Docs/@Version=1.0
}
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
gen_xml(prefix=/Docs/)
/Docs/Version=1.0
gen_xml(prefix=/Docs/) end
var_dump($array1, $array2);
?>
---EXPECTF--
+--EXPECT--
array(2) {
["friends"]=>
int(5)
}
?>
---EXPECTF--
+--EXPECT--
Array
(
[foo] => 0
}
?>
---EXPECTF--
+--EXPECT--
Array
(
[0] => foo
}
?>
---EXPECTF--
+--EXPECT--
Array
(
[2] => foo
);
echo "Done";
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing compact() : basic functionality ***
array(6) {
["a"]=>
?>
==Done==
---EXPECTF--
+--EXPECT--
*** Testing compact() : usage variations - variables outside of current scope ***
array(2) {
["b"]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing count() : basic functionality ***
-- One Dimensional Array: --
var_dump(current($array));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing current() : basic functionality ***
string(4) "zero"
string(3) "one"
var_dump(current($array2));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing current() : usage variations ***
-- Initial position of internal pointer --
var_dump(current($multi_array[3][3][3][1]));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing current() : usage variations ***
-- Two Dimensional Array --
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
*** Testing current() : usage variations ***
-- Function: reference parameter --
var_dump(end($array));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing end() : basic functionality ***
-- Initial Position: --
var_dump(end($array_arg[0]));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing end() : usage variations ***
-- Pass a two-dimensional array as $array_arg --
var_dump(current($array2));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing end() : usage variations ***
-- Initial position of internal pointer --
$a['foo'] = 'changed.foo';
var_dump($nonref);
?>
---EXPECTF--
+--EXPECT--
string(12) "original.foo"
$foo = 'changed.foo';
var_dump($a['foo']);
?>
---EXPECTF--
+--EXPECT--
string(11) "changed.foo"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
-- Iteration 0 --
int(0)
int(0)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
-- Iteration 0 --
int(0)
int(0)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
-- Iteration 0 --
int(0)
int(0)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
-- Iteration 0 --
int(0)
int(0)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(1)
string(3) "aaa"
int(1)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing for EXTR_PREFIX_ALL called twice with same prefix string ***
int(5)
int(11)
echo "\nDone";
?>
---EXPECTF--
+--EXPECT--
*** Testing for Numerical prefixes ***
int(3)
int(1)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing in_array() with different needle values ***
-- Iteration 1 --
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing in_array() with different haystack values ***
-- Iteration 1 --
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing resource type with in_array() ***
bool(true)
bool(false)
var_dump(key($array));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing key() : basic functionality ***
-- Initial Position: --
$a = array('bar' => 1);
var_dump(key_exists('bar', $a));
var_dump(key_exists('foo', $a));
---EXPECTF--
+--EXPECT--
*** test key_exists() by calling it with its expected arguments ***
bool(true)
bool(false)
$a = array('bar' => 1, 'foo' => array('bar' => 2, 'baz' => 3));
var_dump(key_exists('baz', $a));
var_dump(key_exists('baz', $a['foo']));
---EXPECTF--
+--EXPECT--
*** test key_exists() by calling it with its expected arguments ***
bool(false)
bool(true)
$i = array('foo' => 'baz', $st);
var_dump(key_exists(0, $i));
---EXPECTF--
+--EXPECT--
*** test key_exists() by using mixed type of arrays ***
bool(false)
integer
};
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing key() : usage variations ***
-- Iteration 1 : int data --
var_dump(key($array2));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing key() : usage variations ***
-- Initial position of internal pointer --
var_dump(key($multi_array[3][3][3][1]));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing key() : usage variations ***
-- Two Dimensional Array --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing krsort() : basic functionality ***
-- Testing krsort() by supplying string array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing krsort() : usage variations ***
-- Testing krsort() by supplying heredoc string array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing krsort() : usage variations ***
-- Testing krsort() by supplying boolean value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing krsort() : usage variations ***
-- Testing krsort() by supplying various integer/float arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing krsort() : usage variations ***
-- Testing krsort() by supplying octal value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing krsort() : usage variations ***
-- Testing krsort() by supplying various string arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing krsort() : usage variations ***
-- Testing krsort() by supplying hexadecimal value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing krsort() : usage variations ***
-- Testing krsort() by supplying various arrays containing sub arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing krsort() : usage variations ***
-- Testing krsort() by supplying various arrays with/without key values --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ksort() : basic functionality ***
-- Testing ksort() by supplying string array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ksort() : usage variations ***
-- Testing ksort() by supplying octal value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ksort() : usage variations ***
-- Testing ksort() by supplying heredoc string array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ksort() : usage variations ***
-- Testing ksort() by supplying various integer/float arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ksort() : usage variations ***
-- Testing ksort() by supplying boolean value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ksort() : usage variations ***
-- Testing ksort() by supplying various string arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ksort() : usage variations ***
-- Testing ksort() by supplying hexadecimal value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ksort() : usage variations ***
-- Testing ksort() by supplying various arrays containing sub arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ksort() : usage variations ***
-- Testing ksort() by supplying various arrays with/without key values --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing natcasesort() : basic functionality ***
-- Before sorting: --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing natcasesort() : usage variations ***
-- Initial Position of Internal Pointer: --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing natcasesort() : usage variations ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing natcasesort() : usage variation ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing natcasesort() : usage variation ***
bool(true)
array(11) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing natcasesort() : usage variation ***
bool(true)
array(11) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing natcasesort() : usage variation ***
-- Initial test --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing natcasesort() : usage variations ***
array(5) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing natcasesort() : usage variation ***
bool(true)
array(9) {
var_dump(next($array));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing next() : basic functionality ***
0 => zero
string(3) "one"
var_dump(next($array_arg[0]));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing next() : usage variations ***
-- Pass a two-dimensional array as $array_arg --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing prev() : basic functionality ***
2 => two
string(3) "one"
var_dump(prev($array_arg[0]));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing prev() : usage variations ***
-- Pass a two-dimensional array as $array_arg --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing range() function on basic operations ***
-- Integers as Low and High --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing range() with various low and high values ***
-- creating an array with low = 'ABCD' and high = 'ABCD' --
array(1) {
echo "\nDone";
?>
---EXPECTF--
+--EXPECT--
*** Testing max/outof range values ***
array(2) {
[0]=>
echo "\nDone";
?>
---EXPECTF--
+--EXPECT--
*** Testing max/outof range values ***
array(2) {
[0]=>
var_dump(reset($array));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing reset() : basic functionality ***
-- Initial Position: --
var_dump(reset($array));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing reset() : usage variations ***
-- Initial Position: --
var_dump(current($array2));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing reset() : usage variations ***
-- Initial position of internal pointer --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing rsort() : basic functionality ***
-- Testing rsort() by supplying string array, 'flag' value is defualt --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing rsort() : variation ***
-- Sort flag = default --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing rsort() : variation ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing rsort() : variation ***
-- 'flag' value is defualt --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing rsort() : variation ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing rsort() : variation ***
-- 'flag' value is defualt --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing rsort() : variation ***
-- 'flag' value is defualt --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing rsort() : variation ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing rsort() : variation ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sizeof() : basic functionality ***
-- Testing sizeof() with integer array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --
default mode: int(4)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sizeof() : object functionality ***
-- Testing sizeof() with an object which implements Countable interface --
-- Testing sizeof() in default mode --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sizeof() : usage variations ***
--- Testing sizeof() with different array values for 'var' argument ---
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sizeof() : usage variations ***
-- Testing sizeof() for infinite recursion with arrays as argument in COUNT_RECURSIVE mode --
int(13)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing sort() : basic functionality ***
-- Testing sort() by supplying string array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing sort() : usage variations ***
-- Testing sort() by supplying octal value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing sort() :usage variations ***
-- Testing sort() by supplying reference variable array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing sort() : usage variations ***
-- Testing sort() by supplying various string arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing sort() : usage variations ***
-- Testing sort() by supplying hexadecimal value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing sort() : usage variations ***
-- Testing sort() by supplying bool value array, 'flag' value is defualt --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing sort() : usage variations ***
-- Testing sort() by supplying various arrays containing sub arrays --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing sort() : usage variations ***
-- Testing sort() by supplying various arrays with key values --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing uasort() : basic functionality ***
-- Numeric array with default keys --
bool(true)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing uasort() : basic functionality with duplicate values ***
-- Numeric array with increasing values --
bool(true)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing uasort() : object functionality ***
bool(true)
array(4) {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing uasort() : 'array_arg' with elements as reference ***
-- Sorting 'array_arg' containing different references --
bool(true)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing uasort() : sorting different associative arrays ***
-- Array with duplicate keys --
bool(true)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing uasort() : different numeric arrays as 'array_arg' ***
-- Sorting Integer array --
bool(true)
var_dump($temp_array);
?>
---EXPECTF--
+--EXPECT--
*** Testing uasort() : sorting array having different subarrays ***
bool(true)
array(8) {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing uasort() : anonymous function as 'cmp_function' ***
-- Anonymous 'cmp_function' with parameters passed by value --
bool(true)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing uasort() : 'cmp_function' with reference arguments ***
-- Passing integer values to 'cmp_function' --
bool(true)
var_dump($string_key_arg);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing usort() : basic functionality ***
-- Numeric array with default keys --
var_dump($array_arg);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing usort() : usage variation ***
-- Array with duplicate keys --
var_dump($array_arg);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing usort() : usage variation ***
bool(true)
var_dump($empty_array);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing usort() : usage variation ***
-- Sorting Integer array --
var_dump($array_args[5]);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing usort() : usage variation ***
-- Pass usort() a two-dimensional array --
var_dump($array_arg);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing usort() : usage variation ***
-- Anonymous 'cmp_function' with parameters passed by value --
var_dump($array_arg);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing usort() : usage variation ***
-- Sorting $array_arg containing different references --
//Non string assert
var_dump($r2=assert(0));
var_dump($r2=assert(1));
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
echo "Initial values: ini.get(\"assert.quiet_eval\") => [".ini_get("assert.quiet_eval")."]\n";
echo "Initial values: ini.get(\"assert.callback\") => [".ini_get("assert.callback")."]\n\n";
---EXPECTF--
+--EXPECT--
Initial values: assert_options(ASSERT_ACTIVE) => [0]
Initial values: assert_options(ASSERT_WARNING) => [0]
Initial values: assert_options(ASSERT_BAIL) => [0]
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing class_exists() : basic functionality ***
Calling class_exists() on non-existent class with autoload explicitly enabled:
In autoload(C)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
bool(true)
Done
\ No newline at end of file
?>
===DONE===
---EXPECTF--
+--EXPECT--
A
-
B
?>
===DONE===
---EXPECTF--
+--EXPECT--
A
-
B
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing get_class_methods() : basic functionality ***
Argument is class name:
array(3) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
Accessing D from global scope:
array(4) {
[0]=>
C::testFromC();
echo "Done";
?>
---EXPECTF--
+--EXPECT--
Accessing I from global scope:
array(1) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing get_class_methods() : usage variations ***
array(1) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
string(19) "caseSensitivityTest"
Done
\ No newline at end of file
Child::testStatic();
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing get_class_vars() : testing visibility
-- From global context --
echo "\nDONE\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing get_declared_classes() : testing autoloaded classes ***
-- before instance is declared --
echo "\nDONE\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing get_declared_interfaces() : autoloading of interfaces ***
-- before interface is used --
echo "\nDONE\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing get_declared_traits() : testing autoloaded traits ***
-- before instance is declared --
echo "\n---( Unrelated class: )---\n";
X::test($b);
?>
---EXPECTF--
+--EXPECT--
---( Global scope: )---
array(1) {
$b->testA($b);
?>
---EXPECTF--
+--EXPECT--
---( Declaring class: )---
B::testB
$a = new A;
var_dump(get_object_vars($a));
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
\ No newline at end of file
var_dump($arr, $obj, $a);
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
array(2) {
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing get_parent_class() : variation ***
string(19) "caseSensitivityTest"
string(19) "caseSensitivityTest"
echo "\nDONE\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing interface_exists() : autoloaded interface ***
-- no autoloading --
echo "\nDONE\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing interface_exists() : test autoload default value ***
bool(true)
?>
---EXPECTF--
+--EXPECT--
>>> With Defined class
is_a( OBJECT:base, base) = yes
is_a( STRING:base, base) = no
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing is_a() : usage variations ***
bool(true)
Done
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing is_subclass_of() : usage variations ***
*** Testing is_a() : usage variations ***
bool(true)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
---(Using string class name)---
Does C::inherit_pub exist? bool(true)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
---(Internal classes, using string class name)---
Does exception::getmessage exist? bool(true)
Does stdclass::nonexistent exist? bool(false)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
In autoload(UndefC)
bool(false)
Done
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing method_exists() : variation ***
bool(true)
bool(true)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing property_exists() : class auto loading ***
testing property in autoloaded class
echo "Done"
?>
---EXPECTF--
+--EXPECT--
bool(true)
Done
\ No newline at end of file
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing trait_exists() : basic functionality ***
Calling trait_exists() on non-existent trait with autoload explicitly enabled:
In autoload(C)
var_dump(crypt("test", "$20$04$1234567890123456789012345"));
var_dump(crypt("test", "$2g$04$1234567890123456789012345"));
?>
---EXPECTF--
+--EXPECT--
string(2) "*0"
string(2) "*0"
string(2) "*0"
var_dump(crypt("test", "$2a$32$1234567891234567891234567"));
var_dump(crypt("test", "$2a$40$1234567891234567891234567"));
?>
---EXPECTF--
+--EXPECT--
string(2) "*0"
string(2) "*0"
string(2) "*0"
rmdir($filename);
rmdir($base);
?>
---EXPECTF--
+--EXPECT--
string(432) "テストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテスト"
test dir()
$path = dirname(__FILE__) . '/私はガラスを食べられますreaddir_variation2';
rmdir($path);
?>
---EXPECTF--
+--EXPECT--
*** Testing readdir() : usage variations ***
-- Pass an empty directory to readdir() --
$path = dirname(__FILE__) . '/readdir_variation2';
rmdir($path);
?>
---EXPECTF--
+--EXPECT--
*** Testing readdir() : usage variations ***
-- Pass an empty directory to readdir() --
rmdir($path_sub);
rmdir($path_top);
?>
---EXPECTF--
+--EXPECT--
*** Testing readdir() : usage variations ***
array(5) {
[0]=>
rmdir($path_sub);
rmdir($path_top);
?>
---EXPECTF--
+--EXPECT--
*** Testing readdir() : usage variations ***
array(5) {
[0]=>
$dir_path = dirname(__FILE__) . "/私はガラスを食べられますreaddir_variation6";
rmdir($dir_path);
?>
---EXPECTF--
+--EXPECT--
*** Testing readdir() : usage variations ***
-- Reading Directory Contents with Previous Handle --
$dir_path = dirname(__FILE__) . "/readdir_variation6";
rmdir($dir_path);
?>
---EXPECTF--
+--EXPECT--
*** Testing readdir() : usage variations ***
-- Reading Directory Contents with Previous Handle --
$directory = dirname(__FILE__) . '/私はガラスを食べられますscandir_basic';
rmdir($directory);
?>
---EXPECTF--
+--EXPECT--
*** Testing scandir() : basic functionality ***
-- scandir() with mandatory arguments --
$directory = dirname(__FILE__) . '/scandir_basic';
rmdir($directory);
?>
---EXPECTF--
+--EXPECT--
*** Testing scandir() : basic functionality ***
-- scandir() with mandatory arguments --
$dir = dirname(__FILE__) . '/私はガラスを食べられますscandir_variation10';
rmdir($dir);
?>
---EXPECTF--
+--EXPECT--
SCANDIR_SORT_ASCENDING: 0
SCANDIR_SORT_DESCENDING: 1
SCANDIR_SORT_NONE: 2
$dir = dirname(__FILE__) . '/scandir_variation10';
rmdir($dir);
?>
---EXPECTF--
+--EXPECT--
SCANDIR_SORT_ASCENDING: 0
SCANDIR_SORT_DESCENDING: 1
SCANDIR_SORT_NONE: 2
rmdir("$dir_path/私はガラスを食べられますlevel_one/私はガラスを食べられますlevel_two");
rmdir("$dir_path/私はガラスを食べられますlevel_one");
?>
---EXPECTF--
+--EXPECT--
*** Testing scandir() : usage variations ***
-- $path = './私はガラスを食べられますlevel_one': --
rmdir("$dir_path/level_one/level_two");
rmdir("$dir_path/level_one");
?>
---EXPECTF--
+--EXPECT--
*** Testing scandir() : usage variations ***
-- $path = './level_one': --
$dir_path = dirname(__FILE__) . "/scandir_variation7";
rmdir($dir_path);
?>
---EXPECTF--
+--EXPECT--
*** Testing scandir() : usage variations ***
-- Iteration 1 --
$dir = dirname(__FILE__) . '/私はガラスを食べられますscandir_variation9';
rmdir($dir);
?>
---EXPECTF--
+--EXPECT--
*** Testing scandir() : usage variations ***
array(4) {
[0]=>
$dir = dirname(__FILE__) . '/scandir_variation9';
rmdir($dir);
?>
---EXPECTF--
+--EXPECT--
*** Testing scandir() : usage variations ***
array(4) {
[0]=>
unlink(dirname(__FILE__)."/perm.tmp");
rmdir(dirname(__FILE__)."/perm");
?>
---EXPECTF--
+--EXPECT--
*** Testing fileperms(), chmod() with files and dirs ***
bool(true)
100755
unlink(dirname(__FILE__)."/006_variation1.tmp");
rmdir(dirname(__FILE__)."/006_variation1");
?>
---EXPECTF--
+--EXPECT--
*** Testing fileperms() & chmod() : usage variations ***
-- Testing all permission from octal 0000 to octal 0777 on file and dir --
-- Iteration 1 --
echo basename("notdriveletter:file.txt") . "\n";
?>
==DONE==
---EXPECTF--
+--EXPECT--
file.txt
file.txt
file
echo basename("a:\\b:\\c:d:hello\\d:world:c:\$DATA") . "\n";
?>
==DONE==
---EXPECTF--
+--EXPECT--
y
y
notdriveletter:file.txt
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(15) "Guvf vf n grfg
"
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(12) "constructor!"
line1
line2
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(12) "constructor!"
line1
line2
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
@unlink($filename);
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(1)
int(13824)
int(0)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
OK
Done
var_dump(file($url, FILE_IGNORE_NEW_LINES));
}
?>
---EXPECTF--
+--EXPECT--
data://text/plain,foo\r\nbar\r\n
array(2) {
[0]=>
<?php
unlink(__DIR__.'/parse.ini');
?>
---EXPECTF--
+--EXPECT--
array(1) {
["part1.*.part2"]=>
string(1) "1"
rmdir($testdir);
echo "Ok.";
?>
---EXPECTF--
+--EXPECT--
Ok.
var_dump($ini['ini']);
$ini = parse_ini_string("ini=\r\niniraw", null, INI_SCANNER_RAW);
var_dump($ini['ini']);
---EXPECTF--
+--EXPECT--
string(7) "ini;raw"
string(4) ""ini"
string(3) "ini"
d = INSTALL_ROOT "INSTALL_ROOT"', false, INI_SCANNER_RAW);
var_dump($array);
---EXPECTF--
+--EXPECT--
array(7) {
["int"]=>
string(3) "123"
$file = dirname(__FILE__)."/flock_bug65272.dat";
unlink($file);
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(false)
int(1)
unlink($filepath);
?>
---EXPECTF--
+--EXPECT--
chmod() on a path containing .. and .
bool(true)
bool(true)
unlink($filepath);
?>
---EXPECTF--
+--EXPECT--
chmod() on a path containing .. and .
bool(true)
bool(true)
<?php
rmdir("chroot_001_x");
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(false)
unlink(dirname(__FILE__)."/copy_variation10.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Test copy(): Trying to create a copy of file with the same source name ***
bool(false)
bool(true)
unlink(dirname(__FILE__)."/copy_variation18.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Test copy() function: stat of file before and after copy ***
Copy operation => bool(true)
Comparing the stats of file before and after copy operation => bool(true)
unlink(dirname(__FILE__)."/copy_variation3.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Test copy() function: destination file names containing whitespaces ***
Size of the source file before copy operation => int(1500)
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing copy() function: copying links across different directories ***
-- Iteration 1 --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing dirname() : basic functionality ***
string(0) ""
string(1) "."
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing dirname() : basic functionality ***
string(0) ""
string(1) "."
unlink($filename);
?>
---EXPECTF--
+--EXPECT--
*** Testing fflush(): writing to a file and reading the contents ***
int(63)
bool(true)
echo "\n*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing fflush(): with various types of files ***
-- Iteration 1 with file containing empty Data--
-- File opened in w mode --
echo "\n*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing fflush(): with various types of files ***
-- Iteration 1 with file containing empty Data--
-- File opened in w mode --
echo "\n*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing fflush(): with various types of files ***
-- Iteration 1 with file containing empty Data--
-- File opened in w mode --
echo "\n*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing fflush(): with soft links to files opened in diff modes ***
-- Iteration 1 with file containing empty data --
-- link opened in w mode --
echo "\n*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing fflush(): with hard links to files opened in diff modes ***
-- Iteration 1 with file containing empty data --
bool(true)
echo "\n*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing fflush(): with file handles of files opened in various read modes ***
-- Iteration 1 with file opened in r mode --
bool(true)
<?php
unlink( dirname(__FILE__)."/fgetc_variation1.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetc() : usage variations ***
-- Testing fgetc() with file whose file pointer is pointing to EOF --
-- File opened in mode : r --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetc() with file opened in write only mode ***
-- File opened in mode : w --
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetc() : usage variations ***
-- Testing fgetc() with files opened with different read modes --
-- File opened in mode : a+ --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgets() : basic functionality ***
-- Testing fgets() with file opened using mode r --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgets() with file opened in write only mode ***
-- File opened in mode : w --
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgets() : usage variations ***
-- Testing fgets() with file opened using mode w+ --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgets() : usage variations ***
-- Testing fgets() with file opened using mode w+ --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgets() : usage variations ***
-- Testing fgets() with file opened using mode w+ --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgets() : usage variations ***
-- Testing fgets() with file opened using mode w+ --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgets() : usage variations ***
-- Testing fgets() with file opened using mode w+ --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgets() : usage variations ***
-- Testing fgets() with file opened using mode w+ --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgets() : usage variations ***
-- Testing fgets() with file opened using mode w+ --
$filename = dirname(__FILE__)."/fgetss1.html";
unlink($filename);
?>
---EXPECTF--
+--EXPECT--
string(21) "askasdfasdf<b>aaaaaa
"
string(6) "dddddd"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetss() : basic operations ***
-- Testing fgetss() with file opened using w+ mode --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetss() : basic operations ***
-- Testing fgetss() with file opened using w+ mode --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetss() : basic operations ***
-- Testing fgetss() with file opened using w+ mode --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetss() : usage variations ***
-- Testing fgetss() with file opened using w mode --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetss() : usage variations ***
-- Testing fgetss() with file opened using r mode --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetss() : usage variations ***
-- Testing fgetss() with file opened using w+ mode --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetss() : usage variations ***
-- Testing fgetss() with file opened using r mode --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fgetss() : usage variations ***
-- Testing fgetss() with file opened using w+ mode --
echo "\n--- Done ---";
?>
---EXPECTF--
+--EXPECT--
*** Testing file() with basic types of files ***
Array
(
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing file_exists() : usage variations ***
bool(false)
bool(false)
echo "\n*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing the basic functionality of the file_get_contents() function ***
-- Testing with simple valid data file --
string(100) "text text text text text text text text text text text text text text text text text text text text "
unlink($file_path."/file_put_contents.tmp");
unlink($file_path."/file_put_contents1.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing the basic functionality of file_put_contents() and file_get_contents() functions ***
-- Testing with simple valid data file --
string(100) "text text text text text text text text text text text text text text text text text text text text "
$file_path = dirname(__FILE__);
unlink($file_path."/file_put_contents_variation1.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing with variations in the arguments values ***
string(100) "text text text text text text text text text text text text text text text text text text text text "
string(100) "text text text text text text text text text text text text text text text text text text text text "
unlink($file_path."/file_get_contents_variation2/file_get_contents_variation2.tmp");
rmdir($file_path."/file_get_contents_variation2");
?>
---EXPECTF--
+--EXPECT--
*** Testing with variation in use_include_path argument ***
string(240) "text text text text text text text text text text text text text text text text text text text text 22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221 Data1 in an array2 Data2 in an array"
string(240) "text text text text text text text text text text text text text text text text text text text text 22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222221 Data1 in an array2 Data2 in an array"
echo "\n*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing file_get_contents() : variation ***
string(330) "Here is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of data"
string(330) "Here is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of data"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing file_put_contents() : variation ***
int(25)
int(18)
rmdir($file_path."/file_variation");
?>
---EXPECTF--
+--EXPECT--
*** Using various flags values with different data in a file
--Iteration 1 --
array(1) {
echo "\n*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing file() : variation ***
array(2) {
[0]=>
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing filesize(): usage variations ***
*** Checking filesize() with different size of files ***
int(1024)
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing filesize(): usage variations ***
*** Checking filesize() with different size of files ***
int(1024)
rmdir($file_path."/filesize_variation2/filesize_variation2_sub");
rmdir($file_path."/filesize_variation2");
?>
---EXPECTF--
+--EXPECT--
*** Testing filesize(): usage variations ***
*** Testing size of a dir, sub-dir and file with filesize() ***
unlink($file_path."/filesize_variation4.tmp");
unlink($file_path."/filesize_variation4_empty.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing filesize(): usage variations ***
*** Testing filesize() with data written using different file modes and by creating holes in file ***
unlink($file_path."/filesize_variation4.tmp");
unlink($file_path."/filesize_variation4_empty.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing filesize(): usage variations ***
*** Testing filesize() with data written using different file modes and by creating holes in file ***
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing filetype() with files and dirs ***
file
dir
echo "\n*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing filetype() with various types ***
-- Checking with files --
file
print( filetype("/dev/null") )."\n";
?>
===DONE===
---EXPECTF--
+--EXPECT--
-- Checking for char --
char
===DONE===
print( filetype("/dev/ram0") )."\n";
?>
===DONE===
---EXPECTF--
+--EXPECT--
-- Checking for block --
block
===DONE===
echo "\n*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing flock() fun with file and dir ***
bool(true)
bool(true)
echo "\n*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing flock() fun with the various operation and
wouldblock values ***
--- Outer iteration 0 ---
?>
===DONE===
---EXPECTF--
+--EXPECT--
--- testing include path ---
unlink($relfile);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing fopen() : variation ***
This is an absolute file
This is a relative file
?>
===DONE===
---EXPECTF--
+--EXPECT--
--- testing include path ---
<?php
unlink(dirname(__FILE__)."/passthru.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Test basic functionality of fpassthru() function ***
-- Before seek operation --
echo "\n*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fpassthru() function with files ***
--- Testing with different offsets ---
} // end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fread() basic operations ***
-- Testing fread) with file having data of type numeric --
echo"Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fread() : usage variations ***
-- Testing fread() with file having content of type numeric --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fread() : usage variations ***
-- Testing fread() with file having content of type numeric --
echo"Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fread() : usage variations ***
-- Testing fread() with file having content of type numeric --
echo"Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fread() : usage variations ***
-- Testing fread() with file having content of type numeric --
echo"Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fread() : usage variations ***
-- Testing fread() with file having content of type numeric --
echo"Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fread() : usage variations ***
-- Testing fread() with file having content of type numeric --
echo"Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fread() : usage variations ***
-- Testing fread() with file having content of type numeric --
$filename = "$file_path/fscanf_variation1.tmp";
unlink($filename);
?>
---EXPECTF--
+--EXPECT--
*** Testing fscanf(): for its return type without third argument ***
bool(true)
array(1) {
$filename = "$file_path/fscanf_variation55.tmp";
unlink($filename);
?>
---EXPECTF--
+--EXPECT--
*** Test fscanf(): tracking file pointer along with reading data from file ***
*** File opened in r mode ***
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : basic operations ***
-- File having data of type text_with_new_line --
} //end of File content type loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : basic operations ***
-- File having data of type text_with_new_line --
} //end of File content type loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : basic operations ***
-- File having data of type text_with_new_line --
} //end of File content type loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : basic operations ***
-- File having data of type text_with_new_line --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : default whence & all r and a modes ***
-- File having data of type text_with_new_line --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : default whence & all w and x modes ***
-- File having data of type text_with_new_line --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : default whence & all w and x modes ***
-- File having data of type text_with_new_line --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : whence = SEEK_SET & all r and a modes ***
*** Testing fseek() with whence = SEEK_SET ***
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : whence = SEEK_SET & all w and x modes ***
-- File having data of type text_with_new_line --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : whence = SEEK_SET & all w and x modes ***
-- File having data of type text_with_new_line --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : whence = SEEK_CUR & all r and a modes ***
-- File having data of type text_with_new_line --
-- File opened in mode r --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : whence = SEEK_CUR & all w and x modes ***
-- File having data of type text_with_new_line --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : whence = SEEK_CUR & all w and x modes ***
-- File having data of type text_with_new_line --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : whence = SEEK_END & all r and a modes ***
-- File having data of type text_with_new_line --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : whence = SEEK_END & all r and a modes ***
-- File having data of type text_with_new_line --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek(), ftell(), rewind() : whence = SEEK_END & all r and a modes ***
-- File having data of type text_with_new_line --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing fseek() : variation - beyond file boundaries ***
--- fseek beyond start of file ---
int(-1)
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
}//end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ftruncate() : usage variations ***
-- Testing ftruncate() with file having data of type numeric --
} // end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() basic operations ***
-- Testing fwrite() with file having data of type numeric --
} // end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() basic operations ***
-- Testing fwrite() with file having data of type numeric --
} // end of outer foreach loop
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() basic operations ***
-- Testing fwrite() with file having data of type numeric --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() various operations ***
-- Testing fwrite() with file having content of type numeric --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() various operations ***
-- Testing fwrite() with file having content of type numeric --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() various operations ***
-- Testing fwrite() with file having content of type numeric --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() various operations ***
-- Testing fwrite() with file having content of type numeric --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() various operations ***
-- Testing fwrite() with file having content of type numeric --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() various operations ***
-- Testing fwrite() with file having content of type numeric --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() various operations ***
-- Testing fwrite() with file having content of type numeric --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() various operations ***
-- Testing fwrite() with file having content of type numeric --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing fwrite() various operations ***
-- Testing fwrite() with file having content of type numeric --
rmdir($dir_name);
?>
---EXPECTF--
+--EXPECT--
*** Testing is_dir(): basic functionality ***
bool(true)
bool(true)
rmdir($dir_name."/is_dir_variation1_sub");
rmdir($dir_name);
?>
---EXPECTF--
+--EXPECT--
-- Testing is_dir() with an empty dir --
bool(true)
-- Testing is_dir() with a subdir in base dir --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing is_executable(): basic functionality ***
-- Changing mode of file to 0 --
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing is_executable(): basic functionality ***
-- Changing mode of file to 0 --
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing is_executable(): basic functionality ***
-- Changing mode of file to 0 --
bool(false)
<?php
rmdir(dirname(__FILE__)."/is_executable_variation2/");
?>
---EXPECTF--
+--EXPECT--
*** Testing is_executable(): usage variations ***
*** Testing is_executable() on directory without execute permission ***
$file_name = $file_path."/is_file_basic.tmp";
unlink($file_name);
?>
---EXPECTF--
+--EXPECT--
*** Testing is_file(): basic functionality ***
bool(true)
bool(false)
echo "\n*** Done ***";
?>
---EXPECTF--
+--EXPECT--
-- Testing is_file() with file containing data --
bool(true)
unlink($file_path."/is_file_variation2.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing is_file() with links ***
bool(true)
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing is_readable(): basic functionality ***
-- Changing mode of file to 0 --
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing is_readable(): basic functionality ***
-- Changing mode of file to 0 --
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing is_readable(): basic functionality ***
-- Changing mode of file to 0 --
bool(false)
<?php
rmdir(dirname(__FILE__)."/is_readable_variation2/");
?>
---EXPECTF--
+--EXPECT--
*** Testing is_readable(): usage variations ***
*** Testing is_readable() on directory without read permission ***
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing is_writable(): basic functionality ***
-- Changing mode of file to 0 --
bool(false)
<?php
rmdir(dirname(__FILE__)."/is_writable_variation2/");
?>
---EXPECTF--
+--EXPECT--
*** Testing is_writable(): usage variations ***
*** Testing is_writable() on directory without write permission ***
unlink($symlink);
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
unlink($symlink);
?>
---EXPECTF--
+--EXPECT--
*** Testing lchown() : basic functionality ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
unlink("$file_path/lstat_stat_variation1a.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() for files after being renamed ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
rmdir("$file_path/lstat_stat_variation10");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() on directory after using is_dir() on it ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
unlink("$file_path/lstat_stat_variation11.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() on a file after using is_file() on it ***
bool(true)
bool(true)
unlink("$file_path/lstat_stat_variation12_link.tmp");
unlink("$file_path/lstat_stat_variation12.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() on a link after using is_link() on it ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
unlink("$file_path/lstat_stat_variation13.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Checking stat() on a file opened using read/write mode ***
bool(true)
bool(true)
unlink("$file_path/lstat_stat_variation14_hard.tmp");
unlink("$file_path/lstat_stat_variation14.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Checking lstat() and stat() on hard link ***
bool(true)
bool(true)
unlink("$file_path/lstat_stat_variation15_link.tmp");
unlink("$file_path/lstat_stat_variation15.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing lstat() on a link after changing its access permission ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
unlink("$file_path/lstat_stat_variation16.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing lstat() on a file after changing its access permission ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
rmdir("$file_path/lstat_stat_variation17");
?>
---EXPECTF--
+--EXPECT--
*** Testing lstat() on a dir after changing its access permission ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
rmdir("$file_path/lstat_stat_variation1a");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() for directory after being renamed ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
unlink("$file_path/lstat_stat_variation21.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() on file by truncating it to given size ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
unlink("$file_path/lstat_stat_variation4.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() for file after using touch() on the file ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
rmdir("$file_path/lstat_stat_variation5");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() for directory after using touch() on the directory ***
bool(true)
bool(true)
unlink("$file_path/lstat_stat_variation6.tmp");
unlink("$file_path/lstat_stat_variation_link6.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing lstat() for link after using touch() on the link ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
unlink("$file_path/lstat_stat_variation7.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() on file after data is written in it ***
bool(true)
bool(true)
rmdir("$file_path/lstat_stat_variation8/lstat_stat_variation8_subdir/");
rmdir("$file_path/lstat_stat_variation8");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() on dir after subdir and file is created in it ***
bool(true)
bool(true)
$dirname = "$file_path/lstat_stat_variation9";
rmdir($dirname);
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() for comparing stats after the deletion of subdir and file ***
bool(true)
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing mkdir() and rmdir() for different permissions ***
-- Changing mode of directory to 0 --
bool(true)
<?php
unlink(dirname(__FILE__)."/parse.ini");
?>
---EXPECTF--
+--EXPECT--
*** Test parse_ini_file() function: with various keys and values given in parse.ini file ***
-- ini file without process_sections optional arg --
Array
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing basic functions of pathinfo() ***
-- Iteration 1 --
string(0) ""
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing basic functions of pathinfo() ***
-- Iteration 1 --
string(0) ""
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing basic functions of pathinfo() ***
-- Iteration 1 --
string(1) "."
echo "\n--- Done ---";
?>
---EXPECTF--
+--EXPECT--
*** Testing popen(): reading from the pipe ***
Sample String 私はガラスを食べられます
*** Testing popen(): writing to the pipe ***
echo "\n--- Done ---";
?>
---EXPECTF--
+--EXPECT--
*** Testing popen(): reading from the pipe ***
Sample String
*** Testing popen(): writing to the pipe ***
rmdir($dirpath);
?>
---EXPECTF--
+--EXPECT--
*** Testing popen() and pclose() with different processes ***
-- Testing popen(): reading from the pipe --
popen_basic.tmp
$file_path = dirname(__FILE__);
unlink("$file_path/readfile_variation2.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing readfile() on soft link ***
bool(true)
line
unlink($file_path."/rename_variation.tmp");
rmdir($file_path."/rename_variation_dir");
?>
---EXPECTF--
+--EXPECT--
*** Testing rename() : renaming directory across directories ***
-- Iteration 1 --
bool(true)
$file_path = dirname(__FILE__);
rmdir($file_path."/rename_variation1_dir");
?>
---EXPECTF--
+--EXPECT--
*** Testing rename() : renaming directory across directories ***
-- Iteration 1 --
bool(true)
unlink($file_path."/rename_variation2.tmp");
rmdir($file_path."/rename_variation2_dir");
?>
---EXPECTF--
+--EXPECT--
*** Testing rename() by renaming a file and directory to numeric name ***
bool(true)
bool(false)
unlink($file_path."/rename_variation2.tmp");
rmdir($file_path."/rename_variation2_dir");
?>
---EXPECTF--
+--EXPECT--
*** Testing rename() on soft links ***
bool(true)
bool(true)
unlink($file_path."/rename_variation3_hard_link1.tmp");
rmdir($file_path."/rename_variation3_dir");
?>
---EXPECTF--
+--EXPECT--
*** Testing rename() on hard links ***
bool(true)
bool(true)
$file_path = dirname(__FILE__);
rmdir($file_path."/12345");
?>
---EXPECTF--
+--EXPECT--
*** Testing rename() by renaming a file, link and directory to numeric name ***
bool(true)
bool(false)
unlink("$file_path/stat_variation1a_私はガラスを食べられます.tmp");
rmdir("$file_path/stat_variation1a_私はガラスを食べられます");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat(): on file and directory ater renaming them ***
-- Testing stat() for files after being renamed --
bool(true)
unlink("$file_path/stat_variation1a.tmp");
rmdir("$file_path/stat_variation1a");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat(): on file and directory ater renaming them ***
-- Testing stat() for files after being renamed --
bool(true)
$file_path = dirname(__FILE__);
unlink("$file_path/stat_variation2.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat(): writing to a file ***
-- Testing stat() on file after data is written in it --
bool(true)
$file_path = dirname(__FILE__);
rmdir("$file_path/stat_variation3");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat(): with creating & deleting subdir/file ***
-- Testing stat() on dir after subdir and file is created in it --
unlink("$file_path/stat_variation4.tmp");
rmdir("$file_path/stat_variation4");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat(): on file and directory after accessing it
with is_dir() and is_file() functions ***
-- Testing on Directory --
$file_path = dirname(__FILE__);
unlink("$file_path/stat_variation5.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat(): on a file with read/write permission ***
bool(true)
unlink("$file_path/stat_variation6.tmp");
rmdir("$file_path/stat_variation6");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat() on file with miscelleneous file permission and content ***
bool(true)
$file_path = dirname(__FILE__);
unlink("$file_path/stat_variation8.tmp");
?>
---EXPECTF--
+--EXPECT--
*** Testing stat(): on file by truncating it to given size ***
bool(true)
bool(true)
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
string(12) "A brief note"
string(40) "select_vcount,fcol_from_fieldtable/local"
string(13) "foobar foobar"
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
string(5) ";test"
string(4) "test"
string(4) "test"
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
string(12) "A brief note"
string(40) "select_vcount,fcol_from_fieldtable/local"
string(13) "foobar foobar"
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
===data:,012345===
int(0)
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Accessing and updating data of file through soft link ***
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Accessing and updating data of file through hard link ***
-- Access data of the file through the hard link --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(true)
int(101)
int(101)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing umask() on file and directory ***
-- Setting umask to 000 --
File permission : 666
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing umask() on file and directory ***
-- Setting umask to 351 --
File permission : 426
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing unlink() on a file ***
bool(true)
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing unlink() on a file which is in use ***
bool(true)
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing unlink() on soft and hard links ***
-- Testing unlink() on soft link --
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing unlink() on a file ***
File permission : 0
bool(true)
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing unlink() : variation: contexts and relative files ***
subdir/testfile.txt exists
bool(true)
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
?>
===DONE===
---EXPECTF--
+--EXPECT--
Generating a file with a path length of 259 characters...
Opening file... OK
===DONE===
fpassthru($b);
?>
---EXPECTF--
+--EXPECT--
Sauvegarderéussi(e) não NÃO
Sauvegarderéussi(e) não NÃO
unlink( $file );
?>
---EXPECTF--
+--EXPECT--
*** Testing stream_filter_remove() : basic functionality ***
bool(true)
Grfgvat gur ebg13 svygre juvpu fuvsgf fbzr guvatf nebhaq.
var_dump(boolval(new stdClass()));
var_dump(boolval(STDIN));
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Opening process 1
Opening process 2
Closing process 1
?>
===DONE===
---EXPECTF--
+--EXPECT--
TestClass::test()
TestClass::test()
TestClass::test()
?>
===DONE===
---EXPECTF--
+--EXPECT--
Base::__construct(1)
Base::__construct(2)
Base::__construct(3)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(1) {
["foo"]=>
array(1) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(2) {
["001099030277"]=>
array(1) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(3) {
["2454.33"]=>
array(1) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Result is: Hello
Done
?>
--CLEAN--
<?php @unlink(dirname(__FILE__) . '/bug48660.tmp'); ?>
---EXPECTF--
+--EXPECT--
array(1) {
["cases"]=>
array(5) {
var_dump(parse_ini_file('bug49692.ini', true));
?>
---EXPECTF--
+--EXPECT--
array(1) {
["sitemap"]=>
array(2) {
unregister_tick_function($closure);
echo "done";
?>
---EXPECTF--
+--EXPECT--
Tick!
done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
Hello World!
<?php
var_dump(connection_aborted());
?>
---EXPECTF--
+--EXPECT--
int(0)
<?php
var_dump(connection_status() == CONNECTION_NORMAL);
?>
---EXPECTF--
+--EXPECT--
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing escapeshellcmd() basic operations ***
-- Test 1 --
string(5) "^"abc"
var_dump(get_cfg_var( 'session.save_handler' ) );
?>
---EXPECTF--
+--EXPECT--
*** Test by calling method or function with its expected arguments ***
string(1) "0"
string(3) "php"
var_dump(get_cfg_var( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with boolean values ***
bool(false)
bool(false)
var_dump(get_cfg_var( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with emptyUnsetUndefNull values ***
bool(false)
bool(false)
var_dump(get_cfg_var( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with float values ***
bool(false)
bool(false)
var_dump(get_cfg_var( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with int values ***
bool(false)
bool(false)
var_dump(get_cfg_var( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with unknown string values ***
bool(false)
bool(false)
var_dump(get_cfg_var( 'magic_quotes_gpc' ) );
?>
---EXPECTF--
+--EXPECT--
Fatal error: Directive 'magic_quotes_gpc' is no longer available in PHP in Unknown on line 0
var_dump(get_cfg_var( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument with array of valid parameters ***
string(1) "0"
string(3) "php"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing get_defined_constants() : basic functionality ***
string(5) "array"
string(5) "array"
?>
===DONE===
---EXPECTF--
+--EXPECT--
Simple testcase for get_extension_funcs() function
string(5) "array"
bool(true)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(3) "bar"
string(3) "bar"
Done
var_dump(getservbyname( $service, $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 2 with emptyUnsetUndefNull values ***
bool(false)
bool(false)
var_dump(getservbyname( $service, $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 2 with float values ***
bool(false)
bool(false)
var_dump(getservbyname( $service, $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 2 with int values ***
bool(false)
bool(false)
var_dump(getservbyname( $service, $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 2 with string values ***
bool(false)
bool(false)
var_dump(getservbyname( $var , $protocol ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with boolean values ***
bool(false)
bool(false)
var_dump(getservbyname( $var , $protocol ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with emptyUnsetUndefNull values ***
bool(false)
bool(false)
var_dump(getservbyname( $var , $protocol ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with float values ***
bool(false)
bool(false)
var_dump(getservbyname( $var , $protocol ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with int values ***
bool(false)
bool(false)
var_dump(getservbyname( $var , $protocol ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with string values ***
bool(false)
bool(false)
var_dump(getservbyname( $service, $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 2 with boolean values ***
bool(false)
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
8: Undefined variable: unset_var
8: Undefined variable: undef_var
print '--- Done ---';
?>
---EXPECTF--
+--EXPECT--
--- Good Inputs - Base = 0 ---
int(2147483647)
int(2147483647)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing is_callable() on objects ***
** Testing behavior of is_callable() on static methods **
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing is_callable() on undefined functions ***
-- Iteration 1 --
bool(false)
echo "Done.\n";
?>
---EXPECTF--
+--EXPECT--
array(26) {
["basic"]=>
array(15) {
echo "Done.\n";
?>
---EXPECTF--
+--EXPECT--
array(3) {
["error_reporting values"]=>
array(6) {
echo "*** Done **\n";
?>
---EXPECTF--
+--EXPECT--
*** Test parse_ini_string() function: with various keys and values given in string ***
-- ini string without process_sections optional arg --
Array
?>
Done
---EXPECTF--
+--EXPECT--
array(4) {
["foo"]=>
int(1)
print (($wp = get_priority_from_wmic()) === $data[0] ? 'Passed' : 'Failed (' . $wp . ')') . PHP_EOL;
}
?>
---EXPECTF--
+--EXPECT--
Testing 'Idle' (10): Passed
Testing 'Below normal' (5): Passed
Testing 'Normal' (0): Passed
$niceAfter = getNice($pid);
var_dump($niceBefore == ($niceAfter - $delta));
?>
---EXPECTF--
+--EXPECT--
bool(true)
var_dump(proc_nice( $var ) );
}
?>
---EXPECTF--
+--EXPECT--
*** Test substituting argument 1 with boolean values ***
bool(true)
bool(true)
unlink_sleep_script();
?>
---EXPECTF--
+--EXPECT--
int(0)
array(0) {
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
string(2) "°¡"
bool(true)
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
string(3) "啊"
bool(true)
?>
===DONE===
---EXPECTF--
+--EXPECT--
-- Var export on a simple object --
stdClass::__set_state(array(
'a' => 1,
echo PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
1.0
123.0
-1.0
?>
===DONE===
---EXPECTF--
+--EXPECT--
APP1 - length: 1717; md5: 02cbf4ba6640c131422483138c968516
APP2 - length: 7275; md5: f5036ccca2031e8bf932bcbd4aca4355
APP13 - length: 42; md5: 2202998bd05e78bcb419f08c070d6f61
var_dump( $info );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing getimagesize() : variation ***
array(5) {
[0]=>
var_dump( $info );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing getimagesize() : basic functionality ***
array(5) {
[0]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(false)
Done
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing mail() : send email without additional headers ***
bool(true)
To: user@company.com
}
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing abs() : basic functionality ***
int(23)
int(23)
}
}
?>
---EXPECTF--
+--EXPECT--
Y:23 X:23 float(0.78539816339745)
Y:23 X:-23 float(2.3561944901923)
Y:23 X:23.45 float(0.77571063007847)
}
?>
---EXPECTF--
+--EXPECT--
...from base is 2
......to base is 2
.........value= 10 res = 10
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
int(455)
int(0)
int(32766)
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
int(455)
int(0)
int(32766)
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing ceil() : basic functionality ***
float(0)
float(0)
}
?>
---EXPECTF--
+--EXPECT--
string(4) "1010"
string(12) "111101101110"
string(12) "111101101110"
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
string(1) "a"
string(3) "f6e"
string(3) "f6e"
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
string(2) "12"
string(4) "7556"
string(4) "7556"
?>
===Done===
---EXPECTF--
+--EXPECT--
-- Iteration 1 --
float(22026.465794807)
};
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing expm1() : basic functionality ***
-- Iteration 1 --
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing floor() : basic functionality ***
-- floor 0 --
}
}
?>
---EXPECTF--
+--EXPECT--
iteration 0
float(0)
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
int(18433668)
int(126895953)
float(142929835591)
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing hexdec() : basic functionality ***
-- hexdec 1194684 --
// (int)(PHP_INT_MAX / 3) gives a different result
var_dump(intdiv(PHP_INT_MAX, 3));
?>
---EXPECTF--
+--EXPECT--
int(3074457345618258602)
\ No newline at end of file
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(false)
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(false)
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing log1p() : basic functionality ***
LOG1p tests
}
?>
---EXPECTF--
+--EXPECT--
LOG tests...no base
float(3.1354942159291)
float(NAN)
}
}
?>
---EXPECTF--
+--EXPECT--
mt_rand() tests with default min and max value (i.e 0 thru 2147483647)
PASSED: range min = 0 max = 2147483647
*/
?>
---EXPECTF--
+--EXPECT--
1614640687
1711027313
857485497
var_dump(mt_srand(false));
var_dump(mt_srand(NULL));
?>
---EXPECTF--
+--EXPECT--
NULL
NULL
NULL
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
number_format tests.....default
string(5) "1,235"
string(6) "-1,235"
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
number_format tests.....multiple character decimal point
string(13) "1 234·57"
string(14) "-1 234·57"
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
int(14489)
int(253)
int(36947879)
}
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing octdec() : basic functionality ***
int(14489)
int(253)
// N.B pi() ignores all specified arguments no error
// messages are produced if arguments are spcified.
?>
---EXPECTF--
+--EXPECT--
3.1415926535898
3.1415926535898
}
?>
===Done===
---EXPECTF--
+--EXPECT--
Base = 23
..... Exponent = 0 Result = 1
..... Exponent = 1 Result = 23
}
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing round() : basic functionality ***
round: 123456789
...with precision 2-> float(123456789)
var_dump(srand(NULL));
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing srand() : basic functionality ***
NULL
NULL
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing get_browser() : basic functionality ***
array(35) {
["browser_name_regex"]=>
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing get_browser() : variation functionality: extra browser names ***
array(35) {
["browser_name_regex"]=>
echo "ALIVE\n";
http_server_kill($pid);
?>
---EXPECTF--
+--EXPECT--
ALIVE
}
?>
---EXPECTF--
+--EXPECT--
string(3) "FOO"
var_dump($e->getMessage());
}
?>
---EXPECTF--
+--EXPECT--
string(6) "Failed"
string(6) "Failed"
var_dump($e->getMessage());
}
?>
---EXPECTF--
+--EXPECT--
string(6) "Failed"
var_dump($e->getMessage());
}
?>
---EXPECTF--
+--EXPECT--
string(6) "Failed"
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
var_dump($data);
?>
===DONE===
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
object(evilClass)#1 (0) {
print_r(unserialize($serialized));
?>
---EXPECTF--
+--EXPECT--
Array
(
[0] => Entry Object
$Obj2->arr2[0] = 50;
print_r($Obj2);
?>
---EXPECTF--
+--EXPECT--
C1 Object
(
[arr1] => Array
echo "\nDone";
?>
---EXPECTF--
+--EXPECT--
--- Testing Circular reference of an array ---
-- Normal array --
string(238) "a:7:{i:0;i:0;i:1;i:1;i:2;i:-2;i:3;d:3.333333000000000101437080957111902534961700439453125;i:4;s:1:"a";i:5;a:0:{}i:6;a:7:{i:0;i:0;i:1;i:1;i:2;i:-2;i:3;d:3.333333000000000101437080957111902534961700439453125;i:4;s:1:"a";i:5;a:0:{}i:6;R:8;}}"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--- No references:
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--- 0 refs external:
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--- 1 refs container:
array(3) {
[0]=>
check($c);
?>
---EXPECTF--
+--EXPECT--
--- Nested array references 1 element in containing array:
array(3) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
string(37) "a:2:{i:0;O:8:"stdClass":0:{}i:1;r:2;}"
string(22) "a:2:{i:0;i:1;i:1;i:1;}"
string(30) "a:2:{i:0;s:1:"a";i:1;s:1:"a";}"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
C::serialize() must return a string or NULL
Done
\ No newline at end of file
var_dump(serialize(0.1));
?>
---EXPECTF--
+--EXPECT--
string(6) "d:0.1;"
\ No newline at end of file
var_dump(serialize(0.1));
?>
---EXPECTF--
+--EXPECT--
string(60) "d:0.1000000000000000055511151231257827021181583404541015625;"
\ No newline at end of file
var_dump(stream_get_contents($tmp));
?>
---EXPECTF--
+--EXPECT--
-- stream_copy_to_stream() --
te
string(2) "st"
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
===DONE===
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
stream_read_exception
stream_write_exception
\ No newline at end of file
unlink($srv_fl);
?>
==DONE==
---EXPECTF--
+--EXPECT--
int(0)
==DONE==
$headers = ["Host: bad.com"];
print_r(stream_context_get_options($context));
?>
---EXPECTF--
+--EXPECT--
Array
(
[http] => Array
$meta = stream_get_meta_data(fopen($file, "r"));
var_dump($meta);
?>
---EXPECTF--
+--EXPECT--
array(10) {
["mediatype"]=>
string(10) "text/plain"
var_dump(stream_get_meta_data($pipes[1]));
proc_close($p);
?>
---EXPECTF--
+--EXPECT--
array(7) {
["timed_out"]=>
bool(false)
stream_socket_shutdown($fd,STREAM_SHUT_RDWR);\r
?>\r
==DONE==\r
---EXPECTF--\r
+--EXPECT--\r
bool(true)\r
==DONE==\r
$out = fwrite(STDOUT, "Goodbye\n");
var_dump($out);
---EXPECTF--
+--EXPECT--
Hello
int(6)
Goodbye
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
hello
int(8192)
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing addcslashes() with ASCII code between 0 and 31 ***
string(44) "goodyear12345NULL\000truefalse\a\v\f\b\n\r\t"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing addslashes() : basic functionality ***
string(16) "How\'s everybody"
string(17) "Are you \"JOHN\"?"
echo "Done\n";
---EXPECTF--
+--EXPECT--
string(0) ""
Done
echo "Done\n";
---EXPECTF--
+--EXPECT--
*** Testing possible variations in path and suffix ***
--Iteration 1--
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(1)
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
int(1)
int(0)
int(1)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(4) "Text"
Done
var_dump(sscanf('one two', '%1$d'));
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(3) "one"
<?php
echo utf8_decode('abc'.chr(0xe0));
?>
---EXPECTF--
+--EXPECT--
abc?
var_dump(strip_tags('<a/b>', '<a>'));
?>
---EXPECTF--
+--EXPECT--
string(47) "USD<input type="text"/>CDN<input type="text" />"
bool(true)
string(6) "USDCDN"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
?>
+++DONE+++
---EXPECTF--
+--EXPECT--
string(19) "Swedish_Sweden.1252"
string(1) ","
string(1) " "
print "BUG";
else
print "OKEY";
---EXPECTF--
+--EXPECT--
OKEY
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
/* "->" case in HTML */
var_dump(strip_tags("<span class=sf-dump-> this is a test</span>"));
?>
---EXPECTF--
+--EXPECT--
string(15) " this is a test"
string(15) " this is a test"
string(15) " this is a test"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing chop() : with miscellaneous arguments ***
string(9) "chop test"
string(12) "chop test "
echo "\n";
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing chr() : basic functionality ***
Hello
World
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing chr() function: with unexpected inputs for 'ascii' argument ***
-- Iteration 1 --
string(2) "00"
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing chunk_split() : basic functionality ***
-- Testing chunk_split() with all possible arguments --
string(15) "Te##st##in##g##"
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing chunk_split() : different single quoted strings as 'ending' ***
-- Iteration 0 --
string(73) "This is to test chunk_split() with various 'single quoted' ending string."
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing chunk_split() : different values for 'ending' with heredoc 'str'***
-- Iteration 1 --
string(113) "This is heredoc string with and
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing chunk_split() : different heredoc strings for 'ending' argument ***
-- Iteration 1 --
string(102) "This is str to check with heredoc ending.This contains,
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing chunk_split() : default 'chunklen' with long string 'str' ***
-- Iteration 0 --
string(85) "1234567890123456789012345678901234567890123456789012345678901234567890123456
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing chunk_split() : heredoc strings as 'str' argument ***
-- Iteration 1 --
string(2) "
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing chunk_split() : with different single quoted 'str' ***
-- Iteration 0 --
string(3) "):("
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing convert_cyr_string() : basic functionality ***
-- First try some simple English text --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing convert_uudecode() : basic functionality ***
TEST PASSED
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing count_chars() : basic functionality ***
array(256) {
[0]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing crc32() : basic functionality ***
bool(true)
256895812
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing crc32() : with different strings in single quotes ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing crc32() : with different heredoc strings ***
-- Iteration 1 --
Got <$res>\n";
}
echo "Passes.";?>
---EXPECTF--
+--EXPECT--
Passes.
}
echo "Passes.";
?>
---EXPECTF--
+--EXPECT--
Passes.
echo crypt("A", "$5$" . $b)."\n";
?>
---EXPECTF--
+--EXPECT--
$5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6
$5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6
$5$AAAAAAAAAAAAAAAA$frotiiztWZiwcncxnY5tWG9Ida2WOZEximjLXCleQu6
var_dump(explode(":^:","a lazy dog:^:jumps::over:^:",-1));
var_dump(explode(":^:","a lazy dog:^:jumps::over:^:",-2));
?>
---EXPECTF--
+--EXPECT--
array (
0 => 'a',
1 => 'b' . "\0" . 'd',
$res = explode(str_repeat("A",145999999),1);
var_dump($res);
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
string(1) "1"
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() with floats ***
-- Iteration 1 --
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() with integers ***
-- Iteration 1 --
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() with binary ***
0
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() with binary ***
0
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() for scientific type ***
0.000000e+0
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() for unsigned integers ***
0
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() for unsigned integers ***
0
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() for octals ***
0
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() for octals ***
0
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() for hexadecimals ***
0
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() for hexadecimals ***
0
unlink($data_file);
?>
---EXPECTF--
+--EXPECT--
*** Testing fprintf() for string types ***
-- Iteration 1 --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing get_html_translation_table() : basic functionality ***
-- with table = HTML_SPECIALCHARS & quote_style = ENT_COMPAT --
array(4) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing get_html_translation_table() : basic functionality/Windows-1252 ***
-- with table = HTML_ENTITIES --
array(125) {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(4) {
["author"]=>
string(4) "name"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing hebrev() : basic functionality ***
string(109) ".The hebrev function converts logical Hebrew text to visual text
.The function tries to avoid breaking words
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing hebrevc() : basic functionality ***
string(239) ".The hebrevc function converts logical Hebrew text to visual text<br />
) This function is similar to hebrev() with the difference that it converts newlines<br />
var_dump(bin2hex(hex2bin('FFFFFF')) == 'ffffff');
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
var_dump(bin2hex($ent_encoded));
}
?>
---EXPECTF--
+--EXPECT--
string(8) "266c743b"
string(8) "266c743b"
string(0) ""
var_dump(bin2hex($ent_encoded));
}
?>
---EXPECTF--
+--EXPECT--
string(8) "266c743b"
string(8) "266c743b"
string(0) ""
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing htmlspecialchars_decode() : basic functionality ***
string(92) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string ""
string(92) "Roy's height > Sam's height. 13 < 25. 1111 & 0000 = 0000. " double quoted string ""
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing htmlspecialchars_decode() : usage variations ***
-- Iteration 1 --
string(0) ""
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing htmlspecialchars_decode() : usage variations ***
-- Iteration 1 --
string(90) "Roy's height > Sam's \$height... 1111 ≈ 0000 = 0000... " double quote string ""
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing htmlspecialchars_decode() : usage variations ***
-- Iteration 1 --
string(89) "Roy's height > Sam's $height... 1111 ≈ 0000 = 0000... " double quote string ""
echo http_build_query($obj) . PHP_EOL;
echo http_build_query(new UrlBuilder());
?>
---EXPECTF--
+--EXPECT--
name=homepage&page=1&sort=desc%2Cname
name=homepage&page=1
echo http_build_query($mDimensional) . PHP_EOL;
echo http_build_query($mDimensional, 'prefix_');
?>
---EXPECTF--
+--EXPECT--
0=20&5=13&9%5B1%5D=val1&9%5B3%5D=val2&9%5Bstring%5D=string&name=homepage&page=10&sort%5B0%5D=desc&sort%5Badmin%5D%5B0%5D=admin1&sort%5Badmin%5D%5Badmin2%5D%5Bwho%5D=admin2&sort%5Badmin%5D%5Badmin2%5D%5B2%5D=test
prefix_0=20&prefix_5=13&prefix_9%5B1%5D=val1&prefix_9%5B3%5D=val2&prefix_9%5Bstring%5D=string&name=homepage&page=10&sort%5B0%5D=desc&sort%5Badmin%5D%5B0%5D=admin1&sort%5Badmin%5D%5Badmin2%5D%5Bwho%5D=admin2&sort%5Badmin%5D%5Badmin2%5D%5B2%5D=test
echo http_build_query($oDimensional, '', ini_get('arg_separator.output'), PHP_QUERY_RFC1738) . PHP_EOL;
echo http_build_query($oDimensional, '', ini_get('arg_separator.output'), PHP_QUERY_RFC3986);
?>
---EXPECTF--
+--EXPECT--
name=main+page&sort=desc%2Cadmin&equation=10+%2B+10+-+5
name=main%20page&sort=desc%2Cadmin&equation=10%20%2B%2010%20-%205
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing join() : basic functionality ***
string(7) "1,2,3,4"
string(30) "Red, Green, Blue, Black, White"
var_dump(md5("apple"));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing md5() : basic functionality ***
string(32) "1f3870be274f6c49b3e31a0c6728957f"
===DONE===
setlocale(LC_MONETARY, 'en_US');
var_dump( money_format("X%nY", 3.1415));
?>
---EXPECTF--
+--EXPECT--
string(7) "X$3.14Y"
}
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing nl2br() : usage variations ***
-- Iteration 1 --
string(17) "Hello<br />
}
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing nl2br() : usage variations ***
-- Iteration 1 --
string(2) "\n"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing nl2br() : usage variations ***
string(147) "<br />
<br />
}
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing nl2br() : usage variations ***
string(29) "<html>Hello<br />world</html>"
string(19) "<html><br /></html>"
setlocale(LC_ALL, $original);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing nl_langinfo() : basic functionality ***
string(3) "Mon"
string(9) "Wednesday"
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing number_format() : basic functionality ***
-- number_format tests.....default --
print_r(unpack("v", pack("v", -64434)));
print_r(unpack("v", pack("v", -65535)));
?>
---EXPECTF--
+--EXPECT--
Array
(
[1] => h
print_r(unpack("q", pack("q", -1)));
print_r(unpack("q", pack("q", 0x8000000000000000)));
?>
---EXPECTF--
+--EXPECT--
Array
(
[1] => 281474976710654
);
?>
---EXPECTF--
+--EXPECT--
string(6) "pack e"
string(16) "0000000000000000"
string(16) "0000000000000000"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing printf() : basic functionality - using string format ***
-- Calling printf() with no arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing printf() : basic functionality - using integer format ***
-- Calling printf() with no arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing printf() : basic functionality - using float format ***
-- Calling printf() with no arguments--
var_dump($result);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing printf() : basic functionality - using bool format ***
-- Calling printf() with no arguments --
var_dump($result);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing printf() : basic functionality - using char format ***
-- Calling printf() with no arguments --
var_dump($result);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing printf() : basic functionality - using exponential format ***
-- Calling printf() with no arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing printf() : basic functionality - using unsigned format ***
-- Calling printf() with no arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing printf() : basic functionality - using octal format ***
-- Calling printf() with no arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing printf() : basic functionality - using hexadecimal format ***
-- Calling printf() with no arguments --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing quoted_printable_decode() : basic functionality ***
string(76) "fa776f772d666163746f72c1d0d5ddc5ceced9c50a20d4cfd2c7cfd7d9c520d0d2cfc5cbd4d9"
===DONE===
var_dump(quotemeta("\+*?[^]($)"));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing quotemeta() : basic functionality ***
string(20) "Hello how are you \?"
string(19) "\(100 \+ 50\) \* 10"
echo "\nDone\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing setlocale() : usage variations - setting system locale = 0 ***
Locale info, before setting the locale
array(18) {
echo "\nDone\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing setlocale() : usage variations - Setting system locale = null ***
Locale info, before setting the locale
array(18) {
echo "\nDone\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing setlocale() : usage variations - setting system locale = "" ***
Locale info, before setting the locale
array(18) {
show_source(__FILE__);
?>
---EXPECTF--
+--EXPECT--
*** Test by calling method or function with its expected arguments ***
<code><span style="color: #000000">
<span style="color: #0000BB"><?php<br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">"*** Test by calling method or function with its expected arguments ***\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$foo </span><span style="color: #007700">= </span><span style="color: #DD0000">'bar'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$baz </span><span style="color: #007700">= </span><span style="color: #DD0000">"something "</span><span style="color: #007700">.</span><span style="color: #0000BB">$foo</span><span style="color: #007700">.</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /><br />if ( </span><span style="color: #0000BB">$foo </span><span style="color: #007700">== </span><span style="color: #DD0000">'bar' </span><span style="color: #007700">) <br />{<br /> </span><span style="color: #0000BB">$baz </span><span style="color: #007700">= </span><span style="color: #DD0000">'baz'</span><span style="color: #007700">;<br />}<br /><br /> </span><span style="color: #FF8000">/* some code here */<br /> <br /></span><span style="color: #0000BB">show_source</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?><br /></span>
show_source(__FILE__);
echo $foo;
?>
---EXPECTF--
+--EXPECT--
*** Test by calling method or function with its expected arguments and php output ***
baz
<code><span style="color: #000000">
var_dump($source);
?>
---EXPECTF--
+--EXPECT--
*** Test by calling method or function with its expected arguments and output to variable ***
string(1987) "<code><span style="color: #000000">
<span style="color: #0000BB"><?php<br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">"*** Test by calling method or function with its expected arguments and output to variable ***\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$foo </span><span style="color: #007700">= </span><span style="color: #DD0000">'bar'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$baz </span><span style="color: #007700">= </span><span style="color: #DD0000">"something "</span><span style="color: #007700">.</span><span style="color: #0000BB">$foo</span><span style="color: #007700">.</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /><br />if ( </span><span style="color: #0000BB">$foo </span><span style="color: #007700">== </span><span style="color: #DD0000">'bar' </span><span style="color: #007700">) <br />{<br /> </span><span style="color: #0000BB">$baz </span><span style="color: #007700">= </span><span style="color: #DD0000">"baz\n"</span><span style="color: #007700">;<br />}<br /><br /> </span><span style="color: #FF8000">/* some code here */ <br /></span><span style="color: #0000BB">$source </span><span style="color: #007700">= </span><span style="color: #0000BB">show_source</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">, </span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$source</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?><br /></span>
var_dump($percent);
?>
===DONE===
---EXPECTF--
+--EXPECT--
int(3)
int(0)
int(1)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using string format ***
string(6) "format"
string(13) "arg1 argument"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using integer format ***
string(6) "format"
string(3) "111"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using float format ***
string(6) "format"
string(9) "11.110000"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using bool format ***
string(6) "format"
string(1) "1"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using char format ***
string(6) "format"
string(1) "A"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using exponential format ***
string(6) "format"
string(11) "1.000000e+3"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using unsigned format ***
string(6) "format"
string(10) "4294966185"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using unsigned format ***
string(6) "format"
string(20) "18446744073709550505"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using octal format ***
string(6) "format"
string(2) "21"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using octal format ***
string(6) "format"
string(2) "21"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : basic functionality - using hexadecimal format ***
string(6) "format"
string(1) "b"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : float formats with integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : float formats with arrays ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : float formats with strings ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : float formats with boolean values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : string formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : string formats with array values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : string formats with integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : string formats with boolean values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : octal formats with integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : octal formats with integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : octal formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : octal formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : integer formats with integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : octal formats with array values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : octal formats with string values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : octal formats with boolean values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : hexa formats with integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : hexa formats with integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : hexa formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : hexa formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : hexa formats with array values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : hexa formats with string values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : hexa formats with boolean values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : integer formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : unsigned formats with integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : unsigned formats with integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : unsigned formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : unsigned formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : unsigned formats with array values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : unsigned formats with string values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : unsigned formats with string values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : unsigned formats with boolean values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : scientific formats with integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : scientific formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : scientific formats with array values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : integer formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : scientific formats with string values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : scientific formats with boolean values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : with white spaces in format strings ***
string(4) "1234"
string(4) "1234"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : integer formats with arrays ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : integer formats with boolean values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : integer formats with string values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing sprintf() : float formats with float values ***
-- Iteration 1 --
var_dump(str_replace(array_keys($data), $data, "a numeric"));
var_dump($numeric);
var_dump($data['numeric']);
---EXPECTF--
+--EXPECT--
string(3) "b 1"
int(1)
int(1)
$array = $closure($array, ['x'], 'a');
var_dump(str_replace(array_keys($array), $array, "x property"));
---EXPECTF--
+--EXPECT--
string(10) "a property"
string(10) "a property"
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing str_rot13() : basic functionality ***
Basic tests
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing str_split() : basic functionality ***
-- With all possible arguments --
array(5) {
}
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing str_split() : single quoted strings for 'str' ***
-- Iteration 1 --
array(1) {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing str_split() : heredoc strings as 'str' argument ***
-- Iteration 1 --
array(1) {
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strcspn() : basic functionality ***
int(2)
int(2)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strcspn() : with different mask strings and default start and len arguments ***
-- Itearation 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strcspn() : with different start and default len values ***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strcspn() : with different start and len values ***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strcspn() : with different mask strings ***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strcspn() : with different start values ***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strcspn() : with different start and len values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing strip_tags() : basic functionality ***
-- Iteration 1 --
string(5) "hello"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing strip_tags() : basic functionality ***
-- Iteration 1 --
string(33) "<html>helloworldOther text</html>"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing strip_tags() : usage variations ***
-- Iteration 1 --
string(51) "<html> \$ -> This represents the dollar sign</html>"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing strip_tags() : obscure functionality ***
-- Iteration 1 --
string(12) "hello world"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing strip_tags() : usage variations ***
-- Iteration 1 --
string(32) "hello world... strip_tags_test"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing strip_tags() : usage variations ***
-- Iteration 1 --
string(0) ""
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing strip_tags() : usage variations ***
-- Iteration 1 --
string(18) " I am html string "
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing strip_tags() : usage variations ***
-- Iteration 1 --
string(43) "<abc>hello</abc> world... strip_tags_test"
}
echo "Done";
---EXPECTF--
+--EXPECT--
*** Testing strip_tags() : usage variations ***
-- Iteration 1 --
string(33) "hello world... strip_tags_test\v\f"
}
echo "Done";
---EXPECTF--
+--EXPECT--
*** Testing strip_tags() : usage variations ***
-- Iteration 1 --
string(50) "<html> $ -> This represents the dollar sign</html>"
var_dump( stripos("Hello, World", "ooo") );
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripos() function: basic functionality ***
-- With default arguments --
int(0)
var_dump( stripos("Hello, World", "o", -3) );
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripos() function: basic functionality ***
-- With all arguments --
int(0)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripos() function: with double quoted strings ***
-- Iteration 1 --
int(2)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Test stripos() function: binary safe ***
int(5)
int(5)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Test stripos() function: binary safe ***
int(1)
int(1)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripos() function: with single quoted strings ***
-- Iteration 1 --
int(2)
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripos() function: with heredoc strings ***
-- With heredoc string containing multi lines --
int(14)
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripos() function: with heredoc strings ***
-- With heredoc string containing special chars --
int(0)
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripos() function: with heredoc strings ***
-- With heredoc string containing escape characters --
int(12)
var_dump( stripos($quote_char_str, "things", 20) );
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripos() function: with heredoc strings ***
-- With heredoc string containing quote & slash chars --
int(88)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripos() function: strings repetitive chars ***
-- Iteration 1 --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripslashes() : with strings containing newline and tab characters ***
-- Iteration 1 --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing stripslashes() : with double dimensional arrays ***
-- Iteration 1 --
var_dump( stristr("Test String", "String", true) );
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing stristr() : basic functionality ***
string(11) "Test string"
string(6) "stRIng"
var_dump(strlen("\x90\x91\x00\x93\x94\x90\x91\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"));
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing strlen() : basic functionality ***
int(6)
int(7)
var_dump( strnatcmp( $str1, $str2) );
?>
---EXPECTF--
+--EXPECT--
-- Testing strnatcmp() function whitespace, left-align, digit --
-- Leading whitespace, digits, string 1 longer --
int(1)
}
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Test strncasecmp() function: with alphabets ***
-- Passing upper-case letters for 'str1' --
int(0)
}
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Test strncasecmp() function: with different lengths ***
int(0)
int(0)
echo "\n*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Test strncasecmp() function: with binary inputs ***
-- Checking with all 256 characters given, in binary format --
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Test strncasecmp() function: with null terminated strings and binary inputs ***
int(5)
int(-119)
}
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Test strncasecmp() function: with here-doc strings ***
int(0)
int(63)
echo "\n*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Test strncmp() function: with binary inputs ***
-- Checking with all 256 characters given, in binary format --
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Test strncmp() function: Checking with the null terminated strings ***
int(5)
*** Done ***
}
echo "*** Done ***\n";
?>
---EXPECTF--
+--EXPECT--
*** Test strncmp() function: with different input strings ***
int(0)
int(0)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(false)
var_dump( strrchr("Hello, World", "Zzzz") ); //non-existent needle in haystack
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrchr() function: basic functionality ***
string(12) "Hello, World"
string(12) "Hello, World"
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrchr() function: with various single quoted strings ***
-- Iteration 1 --
string(22) "lo123456he \x234 \101 "
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrchr() function: with heredoc strings ***
string(19) "ing heredoc syntax."
bool(false)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrchr() function: with heredoc strings ***
string(24) "!$#$^^&*(special)
chars."
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrchr() function: with heredoc strings ***
string(32) " st\r\rch\r using
\escape \seque
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrchr() function: with heredoc strings ***
string(3) "te'"
string(32) ""
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrchr() function: with heredoc strings ***
bool(false)
bool(false)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrchr() function: with heredoc strings ***
bool(false)
bool(false)
var_dump( strrev($heredoc) );
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrev() : basic functionality ***
string(12) "dlroW ,olleH"
string(12) "dlroW ,olleH"
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing strripos() function: with double quoted strings ***
-- Iteration 1 --
int(28)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing strripos() function: with heredoc strings ***
-- With heredoc string containing special chars --
int(0)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing strripos() function: with heredoc strings ***
-- With heredoc string containing escape characters --
int(13)
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function: basic functionality ***
-- With default arguments --
int(0)
var_dump( strrpos("Hello, World", "o", 10) );
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function: basic functionality ***
-- With all arguments --
int(0)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function: with double quoted strings ***
-- Iteration 1 --
int(28)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Test strrpos() function: binary safe ***
int(5)
int(5)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Test strrpos() function: binary safe ***
int(1)
int(1)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function: with single quoted strings ***
-- Iteration 1 --
int(32)
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function: with heredoc strings ***
-- With heredoc string containing multi lines --
int(44)
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function: with heredoc strings ***
-- With heredoc string containing special chars --
int(0)
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function: with heredoc strings ***
-- With heredoc string containing escape characters --
int(13)
var_dump( strrpos($quote_char_str, "things", 20) );
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function: with heredoc strings ***
-- With heredoc string containing quote & slash chars --
int(88)
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function: with heredoc strings ***
-- With empty heredoc string --
bool(false)
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strrpos() function: strings repetitive chars ***
-- Iteration 1 --
int(4)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strspn() : basic functionality ***
int(11)
int(11)
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strspn() : with different mask strings and default start and len arguments ***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strspn() : with different start and default len values ***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strspn() : with different start and len values ***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strspn() : with different mask strings ***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strspn() : with different start values ***
-- Iteration 1 --
echo "Done"
?>
---EXPECTF--
+--EXPECT--
*** Testing strspn() : with different start and len values ***
-- Iteration 1 --
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtok() : basic functionality ***
The Input string is:
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtok() : with heredoc strings ***
--- Iteration 1 ---
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtok() : with embedded nulls in the strings ***
--- Iteration 1 ---
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtok() : with miscellaneous inputs ***
--- Iteration 1 ---
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtok() : with invalid escape sequences in token ***
--- Iteration 1 ---
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtok() : with modification of input string in between tokenising ***
*** Testing strtok() when string being tokenised is prefixed with another string in between the process ***
var_dump( strtr($heredoc_str, $trans1_arr) );
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtr() : basic functionality ***
string(10) "TesT sTrTr"
string(10) "TesT sTrTr"
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtr() : numeric & regular double quoted strings ***
-- Iteration 1 --
string(3) "abc"
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtr() : string containing special chars for 'str' arg ***
-- Iteration 1 --
string(1) "s"
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtr() : string containing escape sequences for 'str' arg ***
-- Iteration 1 --
string(9) "SesSTsttE"
}
echo "*** Done ***";
?>
---EXPECTF--
+--EXPECT--
*** Testing strtr() : empty string & null for 'str' arg ***
-- Iteration 1 --
string(0) ""
};
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing strval() : basic variations ***
-- Iteration 1 --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing strval() : usage variations - Pass all valid char codes ***
000102030405060708090a0b0c0d0e0f
101112131415161718191a1b1c1d1e1f
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
***Testing basic operations ***
bool(false)
bool(false)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing possible variations ***
-- complex strings containing other than 7-bit chars --
print_r($newarr);
?>
---EXPECTF--
+--EXPECT--
Array
(
[abc] => zzzkk
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ucwords() : basic functionality ***
-- Iteration 1 --
string(15) "Testing Ucwords"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ucwords() : usage variations ***
-- Iteration 1 --
string(0) ""
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ucwords() : usage variations ***
-- Iteration 1 --
string(18) "Testing Ucwords"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ucwords() : usage variations ***
-- Iteration 1 --
string(18) "Testing Ucwords"
?>
===DONE===
---EXPECTF--
+--EXPECT--
array(1) {
["a"]=>
int(1)
unlink( $file );
?>
---EXPECTF--
+--EXPECT--
*** Testing vfprintf() : basic functionality ***
string(17) "Foo is 30 and bar"
int(17)
unlink( $file );
?>
---EXPECTF--
+--EXPECT--
*** Testing vfprintf() : variation functionality ***
string(6) "format"
int(6)
var_dump($result);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing vprintf() : basic functionality - using unsigned format ***
18446744073709550505
int(20)
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing vprintf() : octal formats and non-octal values ***
-- Iteration 1 --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing vprintf() : unsigned formats and unsigned values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : basic functionality - using string format ***
string(3) "one"
string(7) "one two"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : basic functionality - using integer format ***
string(3) "111"
string(7) "111 222"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : basic functionality - using float format ***
string(9) "11.110000"
string(9) "11.110000"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : basic functionality - using bool format ***
string(1) "1"
string(3) "1 0"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : basic functionality - using char format ***
string(1) "A"
string(3) "A B"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : basic functionality - using exponential format ***
string(11) "1.000000e+3"
string(23) "1.000000e+3 2.000000e+3"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : basic functionality - using unsigned format ***
string(10) "4294966185"
string(21) "4294966185 4293732729"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : basic functionality - using unsigned format ***
string(20) "18446744073709550505"
string(41) "18446744073709550505 18446744073708317049"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : basic functionality - using octal format ***
string(2) "21"
string(6) "21 347"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : basic functionality - using hexadecimal format ***
string(1) "b"
string(1) "B"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : octal formats with octal values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : octal formats with octal values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : octal formats and non-octal values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : octal formats and non-octal values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : hexa formats with hexa values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : hexa formats with hexa values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : hexa formats and non-hexa values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : hexa formats and non-hexa values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : unsigned formats and unsigned values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : unsigned formats and signed & other types of values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : unsigned formats and signed & other types of values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : scientific formats and scientific values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : scientific formats and non-scientific values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : with white spaces in format strings ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : with white spaces in format strings ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : int formats with int values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : int formats and non-integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : int formats and non-integer values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : int formats with float values ***
-- Iteration 1 --
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing vsprintf() : float formats and non-float values ***
-- Iteration 1 --
var_dump( wordwrap($str, $width, $break, $cut) );
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing wordwrap() : basic functionality ***
string(96) "The quick brown foooooooooox jummmmmmmmmmmmped over the lazzzzzzzzzzzy
doooooooooooooooooooooog."
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing wordwrap() : usage variations ***
-- Testing wordwrap() with default break value and single space as value --
setlocale(LC_ALL, $orig);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing strptime() : basic functionality ***
array(9) {
["tm_sec"]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
Decode an input string containing the whole base64 alphabet:
string(98) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf55"
string(98) "00108310518720928b30d38f41149351559761969b71d79f8218a39259a7a29aabb2dbafc31cb3d35db7e39ebbf3dfbf55"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
Decode 'hello world!':
string(12) "hello world!"
string(12) "hello world!"
}
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Test base64_decode (output as JSON):
base64 "" non-strict "" strict ""
base64 "=" non-strict "" strict false
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing base64_encode() : basic functionality ***
0x0: AA==
0x1: AQ==
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing base64_encode() : basic functionality ***
--- Testing base64_encode() with binary string input ---
var_dump(rawurldecode('%41%31%5F%2D%2E%7E'));
?>
---EXPECTF--
+--EXPECT--
string(6) "A1_-.~"
string(6) "A1_-.~"
\ No newline at end of file
var_dump(parse_url("http://example.com/path/script.html#fragment?data"));
?>
---EXPECTF--
+--EXPECT--
array(5) {
["scheme"]=>
string(4) "http"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
HEAD
HEAD
Done
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--> 64.246.30.37: array(1) {
["path"]=>
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--> 64.246.30.37 : NULL
--> http://64.246.30.37 : string(4) "http"
--> http://64.246.30.37/ : string(4) "http"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--> 64.246.30.37 : NULL
--> http://64.246.30.37 : string(12) "64.246.30.37"
--> http://64.246.30.37/ : string(12) "64.246.30.37"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--> 64.246.30.37 : NULL
--> http://64.246.30.37 : NULL
--> http://64.246.30.37/ : NULL
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--> 64.246.30.37 : NULL
--> http://64.246.30.37 : NULL
--> http://64.246.30.37/ : NULL
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--> 64.246.30.37 : NULL
--> http://64.246.30.37 : NULL
--> http://64.246.30.37/ : NULL
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--> 64.246.30.37 : string(12) "64.246.30.37"
--> http://64.246.30.37 : NULL
--> http://64.246.30.37/ : string(1) "/"
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--> 64.246.30.37 : NULL
--> http://64.246.30.37 : NULL
--> http://64.246.30.37/ : NULL
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--> 64.246.30.37 : NULL
--> http://64.246.30.37 : NULL
--> http://64.246.30.37/ : NULL
echo "Done";
?>
---EXPECTF--
+--EXPECT--
PHP_URL_SCHEME: 0
PHP_URL_HOST: 1
PHP_URL_PORT: 2
echo "Done";
?>
---EXPECTF--
+--EXPECT--
--> 64.246.30.37: array(1) {
["path"]=>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Set mode:
bool(true)
Did really work:
var_dump($c['indent-attributes']);
var_dump($c['indent-spaces']);
?>
---EXPECTF--
+--EXPECT--
int(1)
bool(true)
int(3)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
L1: T_OPEN_TAG <?php
L2: T_STRING X
echo "Done";
?>
---EXPECTF--
+--EXPECT--
L1: T_OPEN_TAG <?php
L2: T_CLASS class
echo wddx_serialize_value("\xfc\x63") . "\n";
echo wddx_serialize_value([ "\xfc\x63" => "foo" ]) . "\n";
?>
---EXPECTF--
+--EXPECT--
<wddxPacket version='1.0'><header/><data><string></string></data></wddxPacket>
<wddxPacket version='1.0'><header/><data><struct><var name=''><string>foo</string></var></struct></data></wddxPacket>
}
?>
DONE
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
array(1) {
?>
DONE
---EXPECTF--
+--EXPECT--
array(2) {
[0]=>
string(8) "manhluat"
}
?>
DONE
---EXPECTF--
+--EXPECT--
array(0) {
}
array(0) {
$wddx = wddx_deserialize($xml);
var_dump($wddx);
?>
---EXPECTF--
+--EXPECT--
int(1234)
var_dump($wddx);
?>
DONE
---EXPECTF--
+--EXPECT--
NULL
DONE
\ No newline at end of file
xml_parser_free($xml_parser);
?>
---EXPECTF--
+--EXPECT--
Index array
Array
(
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
file DTD: ok
string DTD: ok
===DONE===
echo "\n";
?>
===DONE===
---EXPECTF--
+--EXPECT--
book 2
===DONE===
echo "\n";
?>
===DONE===
---EXPECTF--
+--EXPECT--
prefix:books 12isbn
===DONE===
while (@$doc->read() !== false);
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(5) "array"
string(5) "array"
string(5) "array"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(125) "<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(125) "<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(402) "<?xml version="1.0" encoding="iso-8859-1"?>
<methodResponse>
<params>
print "Global scope: $method\n";
?>
---EXPECTF--
+--EXPECT--
Inside impl(): add
Global scope: add
var_dump(xmlrpc_encode($obj));
var_dump($obj);
?>
---EXPECTF--
+--EXPECT--
string(135) "<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
var_dump(xmlrpc_encode($obj));
var_dump($obj);
?>
---EXPECTF--
+--EXPECT--
string(135) "<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
$params = 'Lê Trung Hiếu';
echo xmlrpc_encode_request('foo', $params, ['encoding' => 'UTF-8', 'escaping' => 'markup']);
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>foo</methodName>
$var1 = xmlrpc_encode($var0);
var_dump($var1);
?>
---EXPECTF--
+--EXPECT--
string(109) "<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
echo xmlrpc_encode($ar);
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
]);
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
print $xw->flush(true);
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [<!ENTITY ent2 "val2">]><root/>
$xw->endDocument();
print $xw->flush(true);
?>
---EXPECTF--
+--EXPECT--
<?xml version="1.0"?>
<test:test xmlns:test="urn:x-test:">
<test:foo></test:foo>
echo $proc->transformToXML($xml);
?>
---EXPECTF--
+--EXPECT--
Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection!
<h1>Fight for your mind</h1><h2>by Ben Harper - 1995</h2><hr>
<?php
include dirname(__FILE__) .'/prepare.inc';
var_dump($proc->getParameter('', 'doesnotexist'));
---EXPECTF--
+--EXPECT--
bool(false)
--CREDITS--
Christian Weiske, cweiske@php.net
$proc = new XSLTProcessor();
var_dump($proc->hasExsltSupport());
?>
---EXPECTF--
+--EXPECT--
bool(true)
\ No newline at end of file
$proc = new XSLTProcessor();
var_dump($proc->hasExsltSupport('stringValue'));
?>
---EXPECTF--
+--EXPECT--
bool(true)
\ No newline at end of file
//var_dump($proc->registerPHPFunctions(array()));
//var_dump($proc->transformToXml($dom));
---EXPECTF--
+--EXPECT--
NULL
string(18) "This Is An Example"
--CREDITS--
var_dump($proc->registerPHPFunctions(array('strrev', 'array_key_exists')));
var_dump($proc->registerPHPFunctions(array()));
var_dump($proc->transformToXml($dom));
---EXPECTF--
+--EXPECT--
NULL
NULL
NULL
$proc->importStylesheet($phpfuncxsl);
var_dump($proc->registerPHPFunctions(array('ucwords')));
var_dump($proc->transformToXml($dom));
---EXPECTF--
+--EXPECT--
NULL
string(18) "This Is An Example"
--CREDITS--
var_dump($proc->registerPHPFunctions('ucwords'));
var_dump($proc->registerPHPFunctions(null));
var_dump($proc->transformToXml($dom));
---EXPECTF--
+--EXPECT--
NULL
NULL
string(18) "This Is An Example"
var_dump($proc->registerPHPFunctions('ucwords'));
var_dump($proc->registerPHPFunctions('strpos'));
var_dump($proc->transformToXml($dom));
---EXPECTF--
+--EXPECT--
NULL
NULL
string(18) "This Is An Example"
$proc->importStylesheet($phpfuncxsl);
var_dump($proc->registerPHPFunctions('ucwords'));
var_dump($proc->transformToXml($dom));
---EXPECTF--
+--EXPECT--
NULL
string(18) "This Is An Example"
--CREDITS--
var_dump($proc->transformToURI($xsldoc, 'php://output'));
?>
---EXPECTF--
+--EXPECT--
int(56)
\ No newline at end of file
$fname = dirname(__FILE__)."/test53885.zip";
unlink($fname);
?>
---EXPECTF--
+--EXPECT--
==DONE==
}
@unlink($file);
?>
---EXPECTF--
+--EXPECT--
failed
0 bar
1 foobar/
}
@unlink($file);
?>
---EXPECTF--
+--EXPECT--
failed
0 bar
1 foobar/
unset($zip);
unlink($file);
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
}
@unlink($file);
?>
---EXPECTF--
+--EXPECT--
0 bar
1 foobar/
2 foobar/baz
}
@unlink($file);
?>
---EXPECTF--
+--EXPECT--
0 bar
1 foobar/
2 foobar/baz
unlink($dirname . 'foo.txt');
unlink($dirname . 'bar.baz');
?>
---EXPECTF--
+--EXPECT--
0 bar
1 foobar/
2 foobar/baz
unlink($dirname . 'foo.txt');
unlink($dirname . 'bar.txt');
?>
---EXPECTF--
+--EXPECT--
0 bar
1 foobar/
2 foobar/baz
echo "failed\n";
}
?>
---EXPECTF--
+--EXPECT--
ok
var_dump($zip->numFiles, count($zip), $zip->numFiles == count($zip));
?>
Done
---EXPECTF--
+--EXPECT--
int(4)
int(4)
bool(true)
unlink($file);
}
?>
---EXPECTF--
+--EXPECT--
ok
ok
ok
$z = new myZip;
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
int(1)
$name = __DIR__ . '/withattr.zip';
@unlink($name);
?>
---EXPECTF--
+--EXPECT--
== Set
bool(true)
bool(true)
rmdir_rf($dirname . '__oo_extract_tmp');
?>
---EXPECTF--
+--EXPECT--
blabla laber rababer sülz
bar
$zip->close();
?>
---EXPECTF--
+--EXPECT--
string(10) "entry1.txt"
string(10) "entry2.txt"
string(15) "dir/entry2d.txt"
$zip->close();
?>
---EXPECTF--
+--EXPECT--
int(0)
bool(false)
int(1)
@unlink($file);
?>
---EXPECTF--
+--EXPECT--
0 entry1.txt
1 entry2.txt
2 dir/entry2.txt
@unlink($file);
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
if(!headers_sent()) ini_set('zlib.output_compression', true); echo "end\n";
?>
DONE
---EXPECTF--
+--EXPECT--
end
DONE
echo '2 block: '.($b === false ? 'failed' : strlen($b)).PHP_EOL;
?>
---EXPECTF--
+--EXPECT--
1 block: 32768
2 block: 32768
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
echo bin2hex(substr($deflated, strlen($deflated) - 4)) . "\n";
?>
===DONE===
---EXPECTF--
+--EXPECT--
0000ffff
0000ffff
0000ffff
assert($uncompressed === zlib_decode($compressed));
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
?>
===Done===
---EXPECTF--
+--EXPECT--
*** Testing gzcompress() : variation ***
-- Testing multiple compression --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing gzencode() : variation ***
-- Testing with each encoding_mode --
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing gzencode() : variation ***
-- Testing with each encoding_mode --
?>
===DONE===
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
string(22) "This is a file in dir2"
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing gzopen() : basic functionality ***
When you're taught through feelings
Destiny flying high above
unlink($relfile);
?>
===DONE===
---EXPECTF--
+--EXPECT--
*** Testing gzopen() : variation ***
This is an absolute file
This is a relative file
?>
===DONE===
---EXPECTF--
+--EXPECT--
When you're taught through feelings
Destiny flying high above
all I know is that you can realize it
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
assert($inflated === $uncompressed);
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
ini_set("zlib.output_compression", 0);
echo "hi\n";
?>
---EXPECTF--
+--EXPECT--
hi
ini_set("zlib.output_compression", 0);
echo "hi\n";
?>
---EXPECTF--
+--EXPECT--
hi
--EXPECTHEADERS--
}
echo "hi\n";
?>
---EXPECTF--
+--EXPECT--
hi
--EXPECTHEADERS--
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(51) "Interactive mode enabled
No input file specified.
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(51) "No input file specified.
Interactive mode enabled
?>
===DONE===
---EXPECTF--
+--EXPECT--
string(25) "No input file specified.
"
string(49) "No syntax errors detected in Standard input code
?>
===DONE===
---EXPECTF--
+--EXPECT--
bool(true)
string(3) "啊"
===DONE===
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(18) "string(5) "hello"
"
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(18) "string(5) "hello"
"
Done
?>
===DONE===
---EXPECTF--
+--EXPECT--
string(16) "string(3) "111"
"
string(16) "string(3) "500"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(16) "string(3) "111"
"
string(16) "string(3) "500"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(45) "Exception: Function unknown() does not exist
"
string(42) "Exception: Function echo() does not exist
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(40) "Exception: Class unknown does not exist
"
string(183) "Class [ <internal:Core> class stdClass ] {
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(81) "
<?php
class test { public $var = "test"; private $pri; function foo() { } } ?>
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(57) "Either execute direct code, process stdin or use a file.
"
string(57) "Either execute direct code, process stdin or use a file.
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(21) "int(1)
int(1)
int(1)
@unlink(__DIR__."/010.test.php");
@unlink(__DIR__."/010.test.txt");
?>
---EXPECTF--
+--EXPECT--
string(25) "
string(10) "test
hello"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(57) "Either execute direct code, process stdin or use a file.
"
string(57) "Either execute direct code, process stdin or use a file.
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(32) "You can use -R or -F only once.
"
string(32) "You can use -R or -F only once.
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(18) "string(5) "start"
"
string(16) "string(3) "end"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
string(1478) "<code><span style="color: #000000">
<br /><span style="color: #0000BB"><?php<br />$test </span><span style="color: #007700">= </span><span style="color: #DD0000">"var"</span><span style="color: #007700">; </span><span style="color: #FF8000">//var<br />/* test class */<br /></span><span style="color: #007700">class </span><span style="color: #0000BB">test </span><span style="color: #007700">{<br /> private </span><span style="color: #0000BB">$var </span><span style="color: #007700">= array();<br /><br /> public static function </span><span style="color: #0000BB">foo</span><span style="color: #007700">(</span><span style="color: #0000BB">Test $arg</span><span style="color: #007700">) {<br /> echo </span><span style="color: #DD0000">"hello"</span><span style="color: #007700">;<br /> </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">);<br /> }<br />}<br /><br /></span><span style="color: #0000BB">$o </span><span style="color: #007700">= new </span><span style="color: #0000BB">test</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?><br /></span>
</span>
echo "\nDone\n";
?>
---EXPECTF--
+--EXPECT--
--------------
Snippet no. 1:
--------------
echo "\nDone\n";
?>
---EXPECTF--
+--EXPECT--
--------------
Snippet no. 1:
--------------
<?php
unlink(__DIR__.'/021.tmp.php');
?>
---EXPECTF--
+--EXPECT--
ola
2
adeus
<?php
unlink(__DIR__ . "/023.ini");
?>
---EXPECTF--
+--EXPECT--
string(3) "40M"
string(0) ""
fclose($fp);
?>
---EXPECTF--
+--EXPECT--
HTTP/1.1 501 Not Implemented
test_mimetypes($mimetypes);
?>
---EXPECTF--
+--EXPECT--
foo.html => Content-Type: text/html; charset=UTF-8
foo.htm => Content-Type: text/html; charset=UTF-8
foo.svg => Content-Type: image/svg+xml
putenv("FOO=BAR");
var_dump(getenv("FOO"));
?>
---EXPECTF--
+--EXPECT--
string(4) "/tmp"
string(3) "BAR"
php_cli_server_start('var_dump($_SERVER["CONTENT_TYPE"], $_SERVER["CONTENT_LENGTH"])');
echo file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS);
?>
---EXPECTF--
+--EXPECT--
NULL
NULL
<?php
unlink(__DIR__ . "/bug74600.ini");
?>
---EXPECTF--
+--EXPECT--
string(4) "okey"
string(0) ""
echo "Actually loaded from get: $read_title\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing setting the process title ***
Successfully set title
Successfully verified title using ps
echo "Actually loaded from get: $read_title\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing setting the process title ***
Successfully set title
Successfully verified title using get-process
var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS));
var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS));
?>
---EXPECTF--
+--EXPECT--
string(4) "okey"
string(4) "okey"
fclose($fp);
?>
---EXPECTF--
+--EXPECT--
HTTP/1.1 404 Not Found
?>
Done
---EXPECTF--
+--EXPECT--
Started
Done
--CLEAN--
?>
Done
---EXPECTF--
+--EXPECT--
Started
Done
--CLEAN--
--PHPDBG--
r
q
---EXPECTF--
+--EXPECT--
prompt> [Nothing to execute!]
prompt>
Test # delimiter parsing and execution
--PHPDBG--
ev 1 + 3 # ev 2 ** 3#q
---EXPECTF--
+--EXPECT--
prompt> 4
8
c
r
q
---EXPECTF--
+--EXPECT--
prompt> [Successful compilation of stdin input]
prompt> [Breakpoint #0 added at Standard input code:3]
prompt> [Breakpoint #0 at Standard input code:3, hits: 1]
$functions = get_defined_functions(true);
var_dump(in_array($disabled_function, $functions['internal']));
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(false)
<?php
print_r($_GET);
print_r($_POST);
---EXPECTF--
+--EXPECT--
Array
(
)
var_dump(preg_match(",.+a[\\/].+[\\/]w.php_kartoffelbrei.dll.+,s", $out));
?>
==DONE==
---EXPECTF--
+--EXPECT--
int(1)
==DONE==
var_dump($_FILES);
var_dump($_POST);
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
array(1) {
var_dump($_FILES);
var_dump($_POST);
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
array(1) {
var_dump($_FILES);
var_dump($_POST);
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
array(2) {
var_dump($_FILES);
var_dump($_POST);
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
array(0) {
var_dump($a, $b);
?>
---EXPECTF--
+--EXPECT--
array(1) {
[0]=>
string(8) "original"
$b = new B();
$b->test();
?>
---EXPECTF--
+--EXPECT--
In B::__call(test1, array(1,a))
object(B)#1 (0) {
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
string(5) "Check"
string(5) "Check"
===DONE===
}
var_export((array) new foo);
?>
---EXPECTF--
+--EXPECT--
array (
'' . "\0" . 'foo' . "\0" . 'private' => 'private',
'' . "\0" . '*' . "\0" . 'protected' => 'protected',
$a = new stdClass;
var_dump($a instanceof UndefC);
?>
---EXPECTF--
+--EXPECT--
bool(false)
echo "In Exception catch block. Autoload should not have been triggered.\n";
}
?>
---EXPECTF--
+--EXPECT--
In Exception catch block. Autoload should not have been triggered.
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
In autoload: string(6) "UndefC"
Class UndefC does not exist
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
In autoload: string(6) "UndefC"
Class UndefC does not exist
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
In autoload: string(6) "UndefC"
Class UndefC does not exist
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
In autoload: string(6) "undefc"
Class undefc does not exist
echo $e->getMessage();
}
?>
---EXPECTF--
+--EXPECT--
In autoload: string(6) "UndefI"
Interface UndefI does not exist
var_dump(class_exists('UndefinedClass0'));
?>
---EXPECTF--
+--EXPECT--
IN: autoload(UndefinedClass0)
IN: autoload(UndefinedClass1)
IN: autoload(UndefinedClass2)
class_exists("unDefinedClass");
?>
---EXPECTF--
+--EXPECT--
autoload unDefinedClass
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
stdClass
Done
var_dump(B::ca);
var_dump(B::cc);
?>
---EXPECTF--
+--EXPECT--
string(12) "hello from A"
string(12) "hello from C"
string(12) "hello from A"
}
var_dump(C::CONST_1, C::CONST_2);
?>
---EXPECTF--
+--EXPECT--
string(5) "hello"
string(5) "hello"
var_dump(C::X, C::$a, D::X, D::$a, E::X, E::$a);
?>
---EXPECTF--
+--EXPECT--
string(5) "hello"
array(2) {
["nasty"]=>
}
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
(new A())->constDump();
?>
---EXPECTF--
+--EXPECT--
string(11) "publicConst"
string(11) "publicConst"
string(11) "publicConst"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
early::__construct
early::__construct
early::__destruct
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Testing class base
base::__construct
base Object
?>
===DONE===
---EXPECTF--
+--EXPECT--
FailClass::__destruct
Caught: FailClass
FatalException::__construct
?>
===DONE===
---EXPECTF--
+--EXPECT--
Derived::__destruct
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
Warning: Call to protected test::__destruct() from context '' during shutdown ignored in Unknown on line 0
?>
===DONE===
---EXPECTF--
+--EXPECT--
===DONE===
Warning: Call to private test::__destruct() from context '' during shutdown ignored in Unknown on line 0
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Call to function first::show()
Call to function second::show()
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
?>
===DONE===
---EXPECTF--
+--EXPECT--
class_a
is_a(class_a, if_a) yes
is_a(class_a, if_b) no
$t->test();
?>
---EXPECTF--
+--EXPECT--
is_a(base, base) = yes
is_a(base, derived_a) = no
is_a(base, derived_b) = no
$c = new C;
$c->f();
?>
---EXPECTF--
+--EXPECT--
int(2)
print "Done\n";
?>
---EXPECTF--
+--EXPECT--
1st try
2nd try
object:max=>3
foreach (new D as $x) {}
?>
---EXPECTF--
+--EXPECT--
D::rewind(2)
D::valid(2)
D::current(2)
$c->functions[0](5, 6);
$c->functions[1][2][3][4](7, 8);
?>
---EXPECTF--
+--EXPECT--
Called global foo(1, 2)
Called global foo(3, 4)
Called global foo(5, 6)
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Call show()
Call show()
Call show()
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Call show()
Call show()
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Bar::priv()
Foo::priv()
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Bar::priv()
Foo::priv()
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
derived::__construct(begin)
base::__construct(begin)
base::test
var_dump(str_replace("\0", '\0', serialize(new bar())));
?>
---EXPECTF--
+--EXPECT--
string(114) "O:3:"bar":3:{s:12:"\0foo\0private";s:7:"private";s:12:"\0*\0protected";s:9:"protected";s:6:"public";s:6:"public";}"
$b->showA();
$b->showB();
?>
---EXPECTF--
+--EXPECT--
A::p (static)
A::p (static)
B::p
B::showA();
B::showB();
?>
---EXPECTF--
+--EXPECT--
A::p (static)
A::p (static)
B::p (static)
$b->showA();
$b->showB();
?>
---EXPECTF--
+--EXPECT--
A::p (static)
A::p (static)
B::p
B::showA();
B::showB();
?>
---EXPECTF--
+--EXPECT--
A::p (static)
A::p (static)
B::p (static)
$b->showA();
$b->showB();
?>
---EXPECTF--
+--EXPECT--
A::p (static)
A::p (static)
B::p
B::showA();
B::showB();
?>
---EXPECTF--
+--EXPECT--
A::p (static)
A::p (static)
B::p (static)
$b->showA();
$b->showB();
?>
---EXPECTF--
+--EXPECT--
A::p
A::p
B::p
$b->showA();
B::showB();
?>
---EXPECTF--
+--EXPECT--
A::p
A::p
B::p (static)
$b->showA();
$b->showB();
?>
---EXPECTF--
+--EXPECT--
A::p
A::p
B::p
$b->showA();
B::showB();
?>
---EXPECTF--
+--EXPECT--
A::p
A::p
B::p (static)
$b->showA();
$b->showB();
?>
---EXPECTF--
+--EXPECT--
A::p
A::p
B::p
$b->showA();
B::showB();
?>
---EXPECTF--
+--EXPECT--
A::p
A::p
B::p (static)
B::showA();
B::showB();
?>
---EXPECTF--
+--EXPECT--
A::p (static)
A::p (static)
B::p (static)
B::showA();
B::showB();
?>
---EXPECTF--
+--EXPECT--
A::p (static)
A::p (static)
B::p (static)
$b->showA();
$b->showB();
?>
---EXPECTF--
+--EXPECT--
A::p
B::p
B::p
$b->showA();
$b->showB();
?>
---EXPECTF--
+--EXPECT--
A::p
B::p
B::p
B::showA();
B::showB();
?>
---EXPECTF--
+--EXPECT--
A::p (static)
A::p (static)
B::p (static)
$b->showA();
$b->showB();
?>
---EXPECTF--
+--EXPECT--
A::p
B::p
B::p
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
array(0) {
}
array(1) {
var_dump(C::$p, D::$p, E::$p);
?>
==Done==
---EXPECTF--
+--EXPECT--
Inherited static properties refer to the same value across classes:
string(8) "original"
string(8) "original"
Class C {}
var_dump(isset(C::$p));
?>
---EXPECTF--
+--EXPECT--
bool(false)
?>
====DONE====
---EXPECTF--
+--EXPECT--
Hello
====DONE====
Hello
printf($obj . "\n");
?>
---EXPECTF--
+--EXPECT--
Object with no __toString():
Try 1:
Error: 4096 - Object of class stdClass could not be converted to string
?>
---EXPECTF--
+--EXPECT--
publicProperty set
true
__isset "publicProperty"
echo "Done\n"; // shouldn't be displayed
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done\n"; // shouldn't be displayed
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done\n"; // shouldn't be displayed
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done\n"; // shouldn't be displayed
?>
---EXPECTF--
+--EXPECT--
Done
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
Done
<?php
echo ini_get('error_reporting');
?>
---EXPECTF--
+--EXPECT--
22519
?>
===DONE===
<?php exit(0); ?>
---EXPECTF--
+--EXPECT--
string(15) "Error2Exception"
string(5) "fopen"
===DONE===
?>
===DONE===
---EXPECTF--
+--EXPECT--
Catchable
===DONE===
eval("echo 'Hello'; // comment");
echo " World";
//last line comment
---EXPECTF--
+--EXPECT--
Hello World
?>
==DONE==
---EXPECTF--
+--EXPECT--
==DONE==
var_dump($obj1 == $obj2);
?>
===DONE===
---EXPECTF--
+--EXPECT--
Simple test comparing two objects with different compare callback handler
bool(false)
===DONE===
$o->a->b = new $a[$i=2][++$i];
print_r($o);
?>
---EXPECTF--
+--EXPECT--
Array
(
[2] => Array
var_dump($a[$i=1][++$i] > $a[++$i][++$i]);
var_dump($a[$i=1][++$i] >= $a[++$i][++$i]);
?>
---EXPECTF--
+--EXPECT--
Function call args:
f(0) f(1) bool(true)
f(0) f(1) bool(true)
}
?>
---EXPECTF--
+--EXPECT--
int(1)
int(2)
int(3)
}
?>
---EXPECTF--
+--EXPECT--
Change from array to non iterable:
int(1)
withRefValue(4, $transform);
?>
---EXPECTF--
+--EXPECT--
Popping elements off end of an unreferenced array
---( Array with 1 element(s): )---
withRefValue(4, $transform);
?>
---EXPECTF--
+--EXPECT--
Popping elements off end of a referenced array
---( Array with 1 element(s): )---
--> State of referenced array before loop:
foreach ($a as $val=>$key) echo $key;
echo "\nDone\n";
?>
---EXPECTF--
+--EXPECT--
10
Done
?>
===DONE===
---EXPECTF--
+--EXPECT--
30: Objects returned by bad1::getIterator() must be traversable or implement interface Iterator
30: Objects returned by bad2::getIterator() must be traversable or implement interface Iterator
30: Objects returned by bad3::getIterator() must be traversable or implement interface Iterator
?>
===DONE===
---EXPECTF--
+--EXPECT--
-----( A1: )-----
--> EnglishMealIterator::rewind (0)
--> EnglishMealIterator::valid (0)
echo "\nCheck key and value after the loop.\n";
var_dump($k, $v);
?>
---EXPECTF--
+--EXPECT--
Simple loop.
$ref =& $a;
refVal($a);
?>
---EXPECTF--
+--EXPECT--
string(10) "original.a"
string(10) "original.a"
refVal($b, $b);
var_dump($b);
?>
---EXPECTF--
+--EXPECT--
-- Val, Ref --
string(10) "original.a"
refVal($b, $b);
var_dump($b);
?>
---EXPECTF--
+--EXPECT--
-- Val, Ref --
refVal($b, $b);
var_dump($b);
?>
---EXPECTF--
+--EXPECT--
-- Val, Ref --
foo2($x, $x, $x = 1);
echo $x; // 2
?>
---EXPECTF--
+--EXPECT--
1012
f3();
?>
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
int(1)
$e->f();
?>
---EXPECTF--
+--EXPECT--
array(3) {
[0]=>
int(1)
var_dump("\u202e");
var_dump("\ufoobar");
---EXPECTF--
+--EXPECT--
string(2) "\u"
string(6) "\u202e"
string(8) "\ufoobar"
test("9.9.9");
?>
===DONE===
---EXPECTF--
+--EXPECT--
--> Testing ..9:
int(0)
ob_start("obh");
echo "foo\n";
?>
---EXPECTF--
+--EXPECT--
foo
echo "Hello World";
var_dump(ob_get_clean());
?>
---EXPECTF--
+--EXPECT--
bool(false)
string(11) "Hello World"
echo "Done\n";
?>
---EXPECTF--
+--EXPECT--
*** Testing ob_get_contents() : basic functionality ***
-- Testing ob_get_contents() function with Zero arguments --
echo "No output buffers\n";
var_dump(ob_get_length());
?>
---EXPECTF--
+--EXPECT--
No output buffers
bool(false)
int(0)
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing ob_implicit_flush() : check return value ***
NULL
NULL
echo "Done";
?>
---EXPECTF--
+--EXPECT--
*** Testing ob_implicit_flush() : ensure implicit flushing does not apply to user buffers. ***
Done
?>
==DONE==
---EXPECTF--
+--EXPECT--
--> Use callback 'return_empty_string':
echo "done (you shouldn't see this)";
?>
---EXPECTF--
+--EXPECT--
I have stolen your output
}
?>
---EXPECTF--
+--EXPECT--
----( chunk_size: -1, output append size: 1 )----
f[call:1; len:8]12345678
var_dump($str);
?>
==DONE==
---EXPECTF--
+--EXPECT--
[callback:1]This call will obtain the content:
string(35) "This call will obtain the content:
"
$foo = new Foo;
print_r($foo);
?>
---EXPECTF--
+--EXPECT--
Foo Object
(
)
$string = "foobar";
var_dump($string[0][0][0][0]);
?>
---EXPECTF--
+--EXPECT--
string(1) "f"
$string = "foobar";
var_dump($string{0}{0}[0][0]);
?>
---EXPECTF--
+--EXPECT--
string(1) "f"
$string = "foobar";
var_dump(isset($string[0][0][0][0]));
?>
---EXPECTF--
+--EXPECT--
bool(true)
$string = "foobar";
var_dump(isset($string{0}{0}[0][0]));
?>
---EXPECTF--
+--EXPECT--
bool(true)