?>
--EXPECTF--
-%string|unicode%(11) "Foo\Bar\Baz"
+string(11) "Foo\Bar\Baz"
?>
--EXPECTF--
-%string|unicode%(6) "foobar"
+string(6) "foobar"
Warning: call_user_func() expects parameter 1 to be a valid callback, cannot access private method testing\foo::priv() in %s on line %d
?>
--EXPECTF--
Deprecated: %son-static method foo::teste() should not be called statically in %s on line %d
-%string|unicode%(1) "x"
+string(1) "x"
array(1) {
[0]=>
object(Closure)#%d (1) {
--EXPECTF--
array(1) {
[0]=>
- %string|unicode%(%d)%s
+ string(%d)%s
}
?>
--EXPECTF--
resource(%d) of type (curl)
-%string|unicode%(4) "curl"
+string(4) "curl"
resource(%d) of type (curl_multi)
-%string|unicode%(10) "curl_multi"
+string(10) "curl_multi"
?>
--EXPECTF--
-%string|unicode%(%d) "No URL set!%w"
+string(%d) "No URL set!%w"
int(3)
--EXPECTF--
object(DateTime)#%d (3) {
["date"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["timezone_type"]=>
int(%d)
["timezone"]=>
- %string|unicode%(%d) "America/Sao_Paulo"
+ string(%d) "America/Sao_Paulo"
}
var_dump(date('Y-m-d', strtotime('third Monday December 2008')));
?>
--EXPECTF--
-%string|unicode%(10) "2008-12-01"
-%string|unicode%(10) "2008-12-08"
-%string|unicode%(10) "2008-12-15"
-%string|unicode%(10) "2008-12-08"
-%string|unicode%(10) "2008-12-15"
-%string|unicode%(10) "2008-12-22"
+string(10) "2008-12-01"
+string(10) "2008-12-08"
+string(10) "2008-12-15"
+string(10) "2008-12-08"
+string(10) "2008-12-15"
+string(10) "2008-12-22"
var_dump(date('H:i:s', strtotime('front of 19')));
?>
--EXPECTF--
-%string|unicode%(8) "07:15:00"
-%string|unicode%(8) "06:45:00"
-%string|unicode%(8) "19:15:00"
-%string|unicode%(8) "18:45:00"
+string(8) "07:15:00"
+string(8) "06:45:00"
+string(8) "19:15:00"
+string(8) "18:45:00"
--EXPECTF--
*** Testing imap_binary() : basic functionality ***
Encode as short string
-%string|unicode%(136) "5647687063794270637942686269426c654746746347786c49484e30636d6c755a794230627942695a53426959584e6c49445930494756755932396b0d0a5a57513d0d0a"
+string(136) "5647687063794270637942686269426c654746746347786c49484e30636d6c755a794230627942695a53426959584e6c49445930494756755932396b0d0a5a57513d0d0a"
Encode a string which results in more than 60 charters of output
-%string|unicode%(200) "56476870637942706379426849477876626d6367633352796157356e4948647064476767636d567a64577830637942706269427462334a6c4948526f0d0a595734674e6a416759326868636d466a64475679637942765a694276645852776458513d0d0a"
+string(200) "56476870637942706379426849477876626d6367633352796157356e4948647064476767636d567a64577830637942706269427462334a6c4948526f0d0a595734674e6a416759326868636d466a64475679637942765a694276645852776458513d0d0a"
Encode a string with special characters
-%string|unicode%(60) "5879737450587464573130374f30422b497a3876506934384c413d3d0d0a"
+string(60) "5879737450587464573130374f30422b497a3876506934384c413d3d0d0a"
Encode some hexadecimal data
-%string|unicode%(144) "65444177584867774d5678344d444a636544417a584867774e4678344d445663654441325848684751567834526b4a6365455a4458486847524678340d0a526b566365455a470d0a"
+string(144) "65444177584867774d5678344d444a636544417a584867774e4678344d445663654441325848684751567834526b4a6365455a4458486847524678340d0a526b566365455a470d0a"
===Done===
Warning: imap_fetch_overview() expects parameter 1 to be resource, bool given in %s on line %d
NULL
--- Testing with first argument value: %string|unicode%(0) ""
+-- Testing with first argument value: string(0) ""
Warning: imap_fetch_overview() expects parameter 1 to be resource, string given in %s on line %d
NULL
--- Testing with first argument value: %string|unicode%(0) ""
+-- Testing with first argument value: string(0) ""
Warning: imap_fetch_overview() expects parameter 1 to be resource, string given in %s on line %d
NULL
Warning: imap_fetch_overview() expects parameter 1 to be resource, array given in %s on line %d
NULL
--- Testing with first argument value: %string|unicode%(6) "string"
+-- Testing with first argument value: string(6) "string"
Warning: imap_fetch_overview() expects parameter 1 to be resource, string given in %s on line %d
NULL
--- Testing with first argument value: %string|unicode%(6) "string"
+-- Testing with first argument value: string(6) "string"
Warning: imap_fetch_overview() expects parameter 1 to be resource, string given in %s on line %d
NULL
--- Testing with first argument value: %string|unicode%(11) "hello world"
+-- Testing with first argument value: string(11) "hello world"
Warning: imap_fetch_overview() expects parameter 1 to be resource, string given in %s on line %d
NULL
-- Testing with second argument value: bool(false)
Sequence out of range
--- Testing with second argument value: %string|unicode%(0) ""
+-- Testing with second argument value: string(0) ""
Sequence out of range
--- Testing with second argument value: %string|unicode%(0) ""
+-- Testing with second argument value: string(0) ""
Sequence out of range
-- Testing with second argument value: array(0) {
Warning: imap_fetch_overview() expects parameter 2 to be string, array given in %s on line %d
Sequence out of range
--- Testing with second argument value: %string|unicode%(6) "string"
+-- Testing with second argument value: string(6) "string"
Syntax error in sequence
--- Testing with second argument value: %string|unicode%(6) "string"
+-- Testing with second argument value: string(6) "string"
Syntax error in sequence
--- Testing with second argument value: %string|unicode%(11) "hello world"
+-- Testing with second argument value: string(11) "hello world"
Syntax error in sequence
-- Testing with second argument value: object(classA)#1 (0) {
Create a temporary mailbox and add 1 msgs
.. mailbox '{%s}%s' created
-Testing with option value:%string|unicode%(1) "1"
+Testing with option value:string(1) "1"
imap_fetch_overview() returns an object
Testing with option value:bool(true)
bool(true)
bool(true)
-Warning: ibase_close() expects parameter 1 to be resource,%string given in %s on line %d
+Warning: ibase_close() expects parameter 1 to be resource, string given in %s on line %d
NULL
?>
--EXPECTF--
-%string|unicode%(13) "\-oh really\?"
+string(13) "\-oh really\?"
array(1) {
[0]=>
- %string|unicode%(4) "a---"
+ string(4) "a---"
}
array(1) {
[0]=>
- %string|unicode%(1) "a"
+ string(1) "a"
}
array(1) {
[0]=>
- %string|unicode%(5) "a----"
+ string(5) "a----"
}
array(0) {
}
--EXPECTF--
object(PDOStatement)#%d (1) {
["queryString"]=>
- %string|unicode%(21) "SELECT * FROM testing"
+ string(21) "SELECT * FROM testing"
}
data: 1, php
object(PDOStatement)#%d (1) {
["queryString"]=>
- %string|unicode%(21) "SELECT * FROM testing"
+ string(21) "SELECT * FROM testing"
}
data: 2,
array(2) {
[0]=>
- %string|unicode%(3) "PHP"
+ string(3) "PHP"
[1]=>
- %string|unicode%(0) ""
+ string(0) ""
}
Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: function 'nothing' not found or invalid function name in %s on line %d
bool(false)
array(2) {
[0]=>
- %string|unicode%(9) "--- 1 ---"
+ string(9) "--- 1 ---"
[1]=>
- %string|unicode%(9) "--- 2 ---"
+ string(9) "--- 2 ---"
}
array(2) {
[0]=>
- %string|unicode%(7) "1---php"
+ string(7) "1---php"
[1]=>
- %string|unicode%(4) "2---"
+ string(4) "2---"
}
Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: cannot access private method bar::test2() in %s on line %d
bool(false)
array(2) {
[0]=>
- %string|unicode%(7) "1===php"
+ string(7) "1===php"
[1]=>
- %string|unicode%(4) "2==="
+ string(4) "2==="
}
Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: class 'bar' does not have a method 'inexistent' in %s on line %d
--EXPECTF--
array(2) {
["testing(name)"]=>
- %string|unicode%(2) "12"
+ string(2) "12"
[0]=>
- %string|unicode%(2) "12"
+ string(2) "12"
}
--EXPECTF--
array(2) {
["testing(name)"]=>
- %string|unicode%(3) "php"
+ string(3) "php"
[0]=>
- %string|unicode%(3) "php"
+ string(3) "php"
}
array(2) {
["testing(name)"]=>
- %string|unicode%(4) "php6"
+ string(4) "php6"
[0]=>
- %string|unicode%(4) "php6"
+ string(4) "php6"
}
--EXPECTF--
object(PDOStatement)#2 (1) {
["queryString"]=>
- %string|unicode%(17) "SELECT * FROM foo"
+ string(17) "SELECT * FROM foo"
}
array(3) {
[0]=>
- %string|unicode%(5) "00000"
+ string(5) "00000"
[1]=>
NULL
[2]=>
NULL
}
-%string|unicode%(1) "2"
+string(1) "2"
?>
===DONE===
--EXPECTF--
-Warning: Phar::mungServer() expects parameter 1 to be array, %string given in %sbadparameters.php on line %d
+Warning: Phar::mungServer() expects parameter 1 to be array, string given in %sbadparameters.php on line %d
Warning: Phar::createDefaultStub() expects parameter 1 to be a valid path, array given in %sbadparameters.php on line %d
Warning: Phar::loadPhar() expects parameter 1 to be a valid path, array given in %sbadparameters.php on line %d
-Warning: Phar::canCompress() expects parameter 1 to be int, %string given in %sbadparameters.php on line %d
+Warning: Phar::canCompress() expects parameter 1 to be int, string given in %sbadparameters.php on line %d
Exception: Phar::__construct() expects parameter 1 to be a valid path, array given in %sbadparameters.php on line %d
?>
===DONE===
--EXPECTF--
-%string|unicode%(%d) "%smytest"
-%string|unicode%(%d) "%smytest"
+string(%d) "%smytest"
+string(%d) "%smytest"
Fatal error: Uncaught UnexpectedValueException: Cannot create phar '0000000000000000000', file extension (or combination) not recognised or the directory does not exist in %sbug46032.php:%d
Stack trace:
files/write17.phar
--EXPECTF--
NULL
-%string|unicode%(2) "hi"
+string(2) "hi"
ok
\ No newline at end of file
files/write19.phar
--EXPECTF--
string(2) "hi"
-%string|unicode%(3) "hi2"
+string(3) "hi2"
ok
\ No newline at end of file
--EXPECTHEADERS--
Content-type: text/html; charset=UTF-8
--EXPECTF--
-%string|unicode%(4) "test"
-%string|unicode%(12) "oof/test.php"
+string(4) "test"
+string(12) "oof/test.php"
Warning: include(./hi.php): failed to open stream: No such file or directory in phar://%s/oof/test.php on line %d
bool(false)
bool(false)
bool(false)
-%string|unicode%(25) "Property a does not exist"
+string(25) "Property a does not exist"
int(2)
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
?>
--EXPECTF--
SNMP::ERRNO_NOERROR
-%string|unicode%(%d) "%s"
+string(%d) "%s"
bool(true)
-%string|unicode%(0) ""
+string(0) ""
SNMP::ERRNO_TIMEOUT
bool(false)
bool(true)
-%string|unicode%(%d) "No response from %s"
+string(%d) "No response from %s"
SNMP::ERRNO_ERROR_IN_REPLY
bool(false)
bool(true)
-%string|unicode%(%d) "Error in packet %s"
+string(%d) "Error in packet %s"
SNMP::ERRNO_GENERIC
bool(false)
bool(true)
-%string|unicode%(%d) "Fatal error: Unknown user name"
+string(%d) "Fatal error: Unknown user name"
bool(false)
SNMP::ERRNO_OID_PARSING_ERROR
GET: Single wrong OID
["info"]=>
array(4) {
["hostname"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["port"]=>
int(%d)
["timeout"]=>
["info"]=>
array(4) {
["hostname"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["port"]=>
int(%d)
["timeout"]=>
["info"]=>
array(4) {
["hostname"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["port"]=>
int(%d)
["timeout"]=>
["info"]=>
array(4) {
["hostname"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["port"]=>
int(%d)
["timeout"]=>
Warning: main(): info property is read-only in %s on line %d
array(4) {
["hostname"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["port"]=>
int(%d)
["timeout"]=>
--EXPECTF--
Working version
GET single: noAuthNoPriv
-%string|unicode%(%d) "%s"
+string(%d) "%s"
GET single: MD5
-%string|unicode%(%d) "%s"
+string(%d) "%s"
GET single: SHA
-%string|unicode%(%d) "%s"
+string(%d) "%s"
GET single: MD5/AES
-%string|unicode%(%d) "%s"
+string(%d) "%s"
GET single: MD5/DES
-%string|unicode%(%d) "%s"
+string(%d) "%s"
GET single: MD5/AES128
-%string|unicode%(%d) "%s"
+string(%d) "%s"
GET multiple
array(2) {
["%s"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["%s"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
}
GETNEXT single
-%string|unicode%(%d) "%s"
+string(%d) "%s"
WALK single on single OID
-%string|unicode%(5) "array"
+string(5) "array"
int(1)
array(1) {
[0]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
}
REALWALK single on single OID
-%string|unicode%(5) "array"
+string(5) "array"
int(1)
array(1) {
["%s"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
}
WALK multiple on single OID
-%string|unicode%(5) "array"
+string(5) "array"
int(%d)
int(0)
-%string|unicode%(%d) "%s"
+string(%d) "%s"
REALWALK multiple on single OID
-%string|unicode%(5) "array"
+string(5) "array"
int(%d)
-%string|unicode%(%d) "%s"
-%string|unicode%(%d) "%s"
+string(%d) "%s"
+string(%d) "%s"
SET single OID
bool(true)
bool(true)
[1]=>
int(123)
[-1000]=>
- %string|unicode%(3) "123"
+ string(3) "123"
[2]=>
float(123.5)
[-2000]=>
["dllist":"SplDoublyLinkedList":private]=>
array(2) {
[0]=>
- %string|unicode%(3) "hai"
+ string(3) "hai"
[1]=>
- %string|unicode%(4) "thar"
+ string(4) "thar"
}
}
["dllist":"SplDoublyLinkedList":private]=>
array(2) {
[0]=>
- %string|unicode%(2) "oh"
+ string(2) "oh"
[1]=>
- %string|unicode%(3) "hai"
+ string(3) "hai"
}
}
[1]=>
int(1)
[2]=>
- %string|unicode%(1) "2"
+ string(1) "2"
[3]=>
bool(false)
}
[0]=>
int(1)
[1]=>
- %string|unicode%(1) "2"
+ string(1) "2"
[2]=>
bool(false)
}
[0]=>
array(1) {
[0]=>
- %string|unicode%(1) "1"
+ string(1) "1"
}
}
--EXPECTF--
object(SplFixedArray)#1 (5) {
[0]=>
- %string|unicode%(14) "PHPNW Testfest"
+ string(14) "PHPNW Testfest"
[1]=>
- %string|unicode%(14) "PHPNW Testfest"
+ string(14) "PHPNW Testfest"
[2]=>
- %string|unicode%(14) "PHPNW Testfest"
+ string(14) "PHPNW Testfest"
[3]=>
- %string|unicode%(14) "PHPNW Testfest"
+ string(14) "PHPNW Testfest"
[4]=>
NULL
}
--EXPECTF--
object(SplFixedArray)#1 (2) {
[0]=>
- %string|unicode%(3) "one"
+ string(3) "one"
[1]=>
- %string|unicode%(3) "two"
+ string(3) "two"
}
?>
--EXPECTF--
-%string|unicode%(60) "SQLite3::__construct() expects at least 1 parameter, 0 given"
+string(60) "SQLite3::__construct() expects at least 1 parameter, 0 given"
?>
--EXPECTF--
bool(true)
-%string|unicode%(4) "TEST"
+string(4) "TEST"
bool(true)
-%string|unicode%(4) "test"
+string(4) "test"
bool(true)
-%string|unicode%(4) "test"
+string(4) "test"
--CLEAN--
<?php @unlink(__DIR__ . '/db1.db'); ?>
--EXPECTF--
-%string|unicode%(29) "Already initialised DB Object"
+string(29) "Already initialised DB Object"
var_dump(gethostbyname(".toto.toto.toto"));
?>
--EXPECTF--
-%string|unicode%(15) ".toto.toto.toto"
+string(15) ".toto.toto.toto"
?>
--EXPECTF--
-%string|unicode%(6) "foobar"
-%string|unicode%(6) "foobar"
-%string|unicode%(6) "foobar"
-%string|unicode%(4) "< ax"
-%string|unicode%(0) ""
-%string|unicode%(0) ""
+string(6) "foobar"
+string(6) "foobar"
+string(6) "foobar"
+string(4) "< ax"
+string(0) ""
+string(0) ""
?>
--EXPECTF--
-%string|unicode%(4) "SKRX"
-%string|unicode%(4) "SKR0"
-%string|unicode%(5) "SKRTK"
+string(4) "SKRX"
+string(4) "SKR0"
+string(5) "SKRTK"
-- Before sorting: --
array(6) {
[0]=>
- %string|unicode%(6) "Süden"
+ string(6) "Süden"
[1]=>
- %string|unicode%(7) "spielen"
+ string(7) "spielen"
[2]=>
- %string|unicode%(5) "Sonne"
+ string(5) "Sonne"
[3]=>
- %string|unicode%(4) "Wind"
+ string(4) "Wind"
[4]=>
- %string|unicode%(5) "Regen"
+ string(5) "Regen"
[5]=>
- %string|unicode%(4) "Meer"
+ string(4) "Meer"
}
-- After Sorting: --
bool(true)
array(6) {
[5]=>
- %string|unicode%(4) "Meer"
+ string(4) "Meer"
[4]=>
- %string|unicode%(5) "Regen"
+ string(5) "Regen"
[2]=>
- %string|unicode%(5) "Sonne"
+ string(5) "Sonne"
[1]=>
- %string|unicode%(7) "spielen"
+ string(7) "spielen"
[0]=>
- %string|unicode%(6) "Süden"
+ string(6) "Süden"
[3]=>
- %string|unicode%(4) "Wind"
+ string(4) "Wind"
}
Done
$proc->setParameter('', 'key', 'value');
var_dump($proc->getParameter('', 'key'));
--EXPECTF--
-%string|unicode%(5) "value"
+string(5) "value"
--CREDITS--
Christian Weiske, cweiske@php.net
PHP Testfest Berlin 2009-05-09
$startOffset = $end + 2;
}
$wanted_re = $temp;
-
- $wanted_re = str_replace(
- array('%binary_string_optional%'),
- 'string',
- $wanted_re
- );
- $wanted_re = str_replace(
- array('%unicode_string_optional%'),
- 'string',
- $wanted_re
- );
- $wanted_re = str_replace(
- array('%unicode\|string%', '%string\|unicode%'),
- 'string',
- $wanted_re
- );
- $wanted_re = str_replace(
- array('%u\|b%', '%b\|u%'),
- '',
- $wanted_re
- );
+
// Stick to basics
$wanted_re = str_replace('%e', '\\' . DIRECTORY_SEPARATOR, $wanted_re);
$wanted_re = str_replace('%s', '[^\r\n]+', $wanted_re);
[%d]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(16) "text/plain-file1"
+ string(16) "text/plain-file1"
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
[%d]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(16) "text/plain-file2"
+ string(16) "text/plain-file2"
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(16) "text/plain-file1"
+ string(16) "text/plain-file1"
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(0) ""
+ string(0) ""
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(0) ""
+ string(0) ""
["error"]=>
int(4)
["size"]=>
["file3"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file3.txt"
+ string(9) "file3.txt"
["type"]=>
- %string|unicode%(16) "text/plain-file3"
+ string(16) "text/plain-file3"
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(16) "text/plain-file1"
+ string(16) "text/plain-file1"
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(0) ""
+ string(0) ""
["error"]=>
int(2)
["size"]=>
["file3"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file3.txt"
+ string(9) "file3.txt"
["type"]=>
- %string|unicode%(16) "text/plain-file3"
+ string(16) "text/plain-file3"
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
}
array(1) {
["MAX_FILE_SIZE"]=>
- %string|unicode%(1) "1"
+ string(1) "1"
}
string(1) "1"
string(1) "3"
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(0) ""
+ string(0) ""
["error"]=>
int(3)
["size"]=>
["file1"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file1.txt"
+ string(9) "file1.txt"
["type"]=>
- %string|unicode%(16) "text/plain-file1"
+ string(16) "text/plain-file1"
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
["file2"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file2.txt"
+ string(9) "file2.txt"
["type"]=>
- %string|unicode%(0) ""
+ string(0) ""
["tmp_name"]=>
- %string|unicode%(0) ""
+ string(0) ""
["error"]=>
int(1)
["size"]=>
["file3"]=>
array(5) {
["name"]=>
- %string|unicode%(9) "file3.txt"
+ string(9) "file3.txt"
["type"]=>
- %string|unicode%(16) "text/plain-file3"
+ string(16) "text/plain-file3"
["tmp_name"]=>
- %string|unicode%(%d) "%s"
+ string(%d) "%s"
["error"]=>
int(0)
["size"]=>
Order with local assignment:
in f()
in g()
-%string|unicode%(14) "assigned value"
+string(14) "assigned value"
Order with array assignment:
in g()
array(1) {
["name"]=>
- %string|unicode%(14) "assigned value"
+ string(14) "assigned value"
}
in g()
object(stdClass)#%d (1) {
["assigned value"]=>
- %string|unicode%(14) "assigned value"
+ string(14) "assigned value"
}
["o2"]=>
object(stdClass)#%d (1) {
["assigned value"]=>
- %string|unicode%(14) "assigned value"
+ string(14) "assigned value"
}
}
}
["a"]=>
array(1) {
["assigned value"]=>
- %string|unicode%(14) "assigned value"
+ string(14) "assigned value"
}
}
Order with static property assignment:
in f()
in g()
-%string|unicode%(14) "assigned value"
+string(14) "assigned value"
Order with static array property assignment:
in g()
array(1) {
["name"]=>
- %string|unicode%(14) "assigned value"
+ string(14) "assigned value"
}
Order with indexed string assignment:
in getOffset()
in newChar()
-%string|unicode%(5) "jello"
+string(5) "jello"
Order with static string property assignment:
in getOffset()
in newChar()
-%string|unicode%(5) "jello"
+string(5) "jello"