Test: /ext/standard/tests/strings/lcfirst.phpt - Version 5.7.0-dev    

There are 2 different diffs reported by users for this test.

Count Diff
2 (67%)
001+ Parse error: syntax error, unexpected 'string' (T_STRING_TYPE), expecting ')' in %s/lcfirst.php on line 15
001- #### Basic and Various operations ####
002-
003- Notice: Use of undefined constant string - assumed 'string' in %s on line %d
004- string(16) "tesTing lcfirst."
005- string(17) "1.testing lcfirst"
006- string(11) "hELLO wORLD"
007- string(11) "hELLO wORLD"
008- string(1) "[0x0]"
009- string(1) "[0x0]"
010- string(2) "[0x0]0"
011- string(4) "abcd"
012- string(3) "xyz"
013- string(6) "string"
014- string(2) "-3"
015- string(2) "-3"
016- string(6) "-3.344"
017- string(6) "-3.344"
018- string(0) ""
019- string(4) "nULL"
020- string(1) "0"
021- string(1) "0"
022- string(1) "1"
023- string(4) "tRUE"
024- string(1) "1"
025- string(1) "1"
026- string(8) "1.234444"
027- string(0) ""
028- string(5) "fALSE"
029- string(1) " "
030- string(5) " "
031- string(1) "b"
032- string(2) "\t"
033- string(1) " "
034- string(2) "12"
035- string(8) "12twelve"
036-
037- #### Testing Miscelleneous inputs ####
038- --- Testing arrays ---
039- Warning: lcfirst() expects parameter 1 to be string, array given in %s on line %d
040- NULL
041-
042- --- Testing lowercamelcase action call example ---
043- string(%d) "partnerName"
044-
045- --- Testing objects ---
046- string(11) "hello world"
047-
048- --- Testing Resources ---
049- string(6) "stream"
050- string(1) "0"
051-
052- --- Testing a longer and heredoc string ---
053- string(639) "abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
054- abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
055- abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
056- abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
057- abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
058- abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
059- abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
060- @#$%^&**&^%$#@!~:())))((((&&&**%$###@@@!!!~~~~@###$%^&*
061- abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789"
062-
063- --- Testing a heredoc null string ---
064- string(0) ""
065-
066- --- Testing simple and complex syntax strings ---
067- string(5) "world"
068- string(7) "world'S"
069-
070- Notice: Undefined variable: strS in %s on line %d
071- string(0) ""
072- string(6) "worldS"
073- string(6) "worldS"
074-
075- --- Nested lcfirst() ---
076- string(5) "hello"
077-
078- #### error conditions ####
079- Warning: lcfirst() expects exactly 1 parameter, 0 given in %s on line %d
080-
081- Warning: lcfirst() expects exactly 1 parameter, 2 given in %s on line %d
082-
083- Warning: lcfirst() expects exactly 1 parameter, 2 given in %s on line %d
084- Done
1 (33%)
043+
044+ Warning: array_key_exists() expects parameter 2 to be array, null given in %s/lcfirst.php on line 65
045+
046+ Warning: array_key_exists() expects parameter 2 to be array, null given in %s/lcfirst.php on line 71
047+ NULL
043- string(%d) "partnerName"