Test: /ext/standard/tests/general_functions/print_r_64bit.phpt - Version 5.4.7-dev    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
1032- (
1033- )
1034-
1035- [class_object5] => contains_object_class Object
1036- *RECURSION*
1037- )
1038-
1039- -- Iteration 5 --
1040- object_class Object
1041- (
1042- [value] => 50
1043- [public_var1] => 10
1044- [private_var1:object_class:private] => 20
1045- [private_var2:object_class:private] => 21
1046- [protected_var1:protected] => string_1
1047- [protected_var2:protected] => string_2
1048- [public_var2] => 11
1049- )
1050-
1051- object_class Object
1052- (
1053- [value] => 50
1054- [public_var1] => 10
1055- [private_var1:object_class:private] => 20
1056- [private_var2:object_class:private] => 21
1057- [protected_var1:protected] => string_1
1058- [protected_var2:protected] => string_2
1059- [public_var2] => 11
1060- )
1061-
1062- object_class Object
1063- (
1064- [value] => 50
1065- [public_var1] => 10
1066- [private_var1:object_class:private] => 20
1067- [private_var2:object_class:private] => 21
1068- [protected_var1:protected] => string_1
1069- [protected_var2:protected] => string_2
1070- [public_var2] => 11
1071- )
1072-
1073- -- Iteration 6 --
1074- object_class Object
1075- (
1076- [value] => 50
1077- [public_var1] => 10
1078- [private_var1:object_class:private] => 20
1079- [private_var2:object_class:private] => 21
1080- [protected_var1:protected] => string_1
1081- [protected_var2:protected] => string_2
1082- [public_var2] => 11
1083- )
1084-
1085- object_class Object
1086- (
1087- [value] => 50
1088- [public_var1] => 10
1089- [private_var1:object_class:private] => 20
1090- [private_var2:object_class:private] => 21
1091- [protected_var1:protected] => string_1
1092- [protected_var2:protected] => string_2
1093- [public_var2] => 11
1094- )
1095-
1096- object_class Object
1097- (
1098- [value] => 50
1099- [public_var1] => 10
1100- [private_var1:object_class:private] => 20
1101- [private_var2:object_class:private] => 21
1102- [protected_var1:protected] => string_1
1103- [protected_var2:protected] => string_2
1104- [public_var2] => 11
1105- )
1106-
1107- -- Iteration 7 --
1108- no_member_class Object
1109- (
1110- )
1111-
1112- no_member_class Object
1113- (
1114- )
1115-
1116- no_member_class Object
1117- (
1118- )
1119-
1120- -- Iteration 8 --
1121- object_class Object
1122- (
1123- [value] => 50
1124- [public_var1] => 10
1125- [private_var1:object_class:private] => 20
1126- [private_var2:object_class:private] => 21
1127- [protected_var1:protected] => string_1
1128- [protected_var2:protected] => string_2
1129- [public_var2] => 11
1130- )
1131-
1132- object_class Object
1133- (
1134- [value] => 50
1135- [public_var1] => 10
1136- [private_var1:object_class:private] => 20
1137- [private_var2:object_class:private] => 21
1138- [protected_var1:protected] => string_1
1139- [protected_var2:protected] => string_2
1140- [public_var2] => 11
1141- )
1142-
1143- object_class Object
1144- (
1145- [value] => 50
1146- [public_var1] => 10
1147- [private_var1:object_class:private] => 20
1148- [private_var2:object_class:private] => 21
1149- [protected_var1:protected] => string_1
1150- [protected_var2:protected] => string_2
1151- [public_var2] => 11
1152- )
1153-
1154- -- Iteration 9 --
1155-
1156-
1157-
1158- ** Testing print_r() on objects having circular reference **
1159- object_class Object
1160- (
1161- [value] => 50
1162- [public_var1] => 10
1163- [private_var1:object_class:private] => 20
1164- [private_var2:object_class:private] => 21
1165- [protected_var1:protected] => string_1
1166- [protected_var2:protected] => string_2
1167- [public_var2] => 11
1168- [obj] => object_class Object
1169- (
1170- [value] => 50
1171- [public_var1] => 10
1172- [private_var1:object_class:private] => 20
1173- [private_var2:object_class:private] => 21
1174- [protected_var1:protected] => string_1
1175- [protected_var2:protected] => string_2
1176- [public_var2] => 11
1177- [obj] => object_class Object
1178- *RECURSION*
1179- )
1180-
1181- )
1182-
1183- *** Testing print_r() on resources ***
1184-
1185- -- Iteration 1 --
1186- Resource id #5
1187- Resource id #5
1188- Resource id #5
1189- -- Iteration 2 --
1190- Resource id #6
1191- Resource id #6
1192- Resource id #6
1193- *** Testing print_r() on different combinations of scalar
1194- and non-scalar variables ***
1195-
1196- -- Iteration 1 --
1197- Array
1198- (
1199- [0] => 123
1200- [1] => -1.2345
1201- [2] => a
1202- )
1203-
1204- Array
1205- (
1206- [0] => 123
1207- [1] => -1.2345
1208- [2] => a
1209- )
1210-
1211- Array
1212- (
1213- [0] => 123
1214- [1] => -1.2345
1215- [2] => a
1216- )
1217-
1218- -- Iteration 2 --
1219- Array
1220- (
1221- [0] => d
1222- [1] => Array
1223- (
1224- [0] => 1
1225- [1] => 3
1226- [2] => 5
1227- )
1228-
1229- [2] => 1
1230- [3] =>
1231- )
1232-
1233- Array
1234- (
1235- [0] => d
1236- [1] => Array
1237- (
1238- [0] => 1
1239- [1] => 3
1240- [2] => 5
1241- )
1242-
1243- [2] => 1
1244- [3] =>
1245- )
1246-
1247- Array
1248- (
1249- [0] => d
1250- [1] => Array
1251- (
1252- [0] => 1
1253- [1] => 3
1254- [2] => 5
1255- )
1256-
1257- [2] => 1
1258- [3] =>
1259- )
1260-
1261- -- Iteration 3 --
1262- Array
1263- (
1264- [0] => no_member_class Object
1265- (
1266- )
1267-
1268- [1] => Array
1269- (
1270- )
1271-
1272- [2] =>
1273- [3] => 0
1274- )
1275-
1276- Array
1277- (
1278- [0] => no_member_class Object
1279- (
1280- )
1281-
1282- [1] => Array
1283- (
1284- )
1285-
1286- [2] =>
1287- [3] => 0
1288- )
1289-
1290- Array
1291- (
1292- [0] => no_member_class Object
1293- (
1294- )
1295-
1296- [1] => Array
1297- (
1298- )
1299-
1300- [2] =>
1301- [3] => 0
1302- )
1303-
1304- -- Iteration 4 --
1305- Array
1306- (
1307- [0] => 0
1308- [1] => Where am I?
1309- [2] => Array
1310- (
1311- [0] => 7
1312- [1] => 8
1313- [2] => 9
1314- )
1315-
1316- [3] => 1
1317- [4] => A
1318- [5] => 987654321
1319- )
1320-
1321- Array
1322- (
1323- [0] => 0
1324- [1] => Where am I?
1325- [2] => Array
1326- (
1327- [0] => 7
1328- [1] => 8
1329- [2] => 9
1330- )
1331-
1332- [3] => 1
1333- [4] => A
1334- [5] => 987654321
1335- )
1336-
1337- Array
1338- (
1339- [0] => 0
1340- [1] => Where am I?
1341- [2] => Array
1342- (
1343- [0] => 7
1344- [1] => 8
1345- [2] => 9
1346- )
1347-
1348- [3] => 1
1349- [4] => A
1350- [5] => 987654321
1351- )
1352-
1353- -- Iteration 5 --
1354- Array
1355- (
1356- [0] =>
1357- [1] => 20000000000
1358- [2] => 79.1
1359- [3] => 4.599998
1360- )
1361-
1362- Array
1363- (
1364- [0] =>
1365- [1] => 20000000000
1366- [2] => 79.1
1367- [3] => 4.599998
1368- )
1369-
1370- Array
1371- (
1372- [0] =>
1373- [1] => 20000000000
1374- [2] => 79.1
1375- [3] => 4.599998
1376- )
1377-
1378- -- Iteration 6 --
1379- Array
1380- (
1381- [0] => array(1,2,3,4)1.0000002TRUE
1382- [1] =>
1383- [2] => 4611333
1384- [3] => /00\7
1385- )
1386-
1387- Array
1388- (
1389- [0] => array(1,2,3,4)1.0000002TRUE
1390- [1] =>
1391- [2] => 4611333
1392- [3] => /00\7
1393- )
1394-
1395- Array
1396- (
1397- [0] => array(1,2,3,4)1.0000002TRUE
1398- [1] =>
1399- [2] => 4611333
1400- [3] => /00\7
1401- )
1402-
1403- *** Testing print_r() on miscelleneous input arguments ***
1404-
1405- -- Iteration 1 --
1406-
1407-
1408-
1409- -- Iteration 2 --
1410-
1411-
1412-
1413- -- Iteration 3 --
1414-
1415-
1416-
1417- -- Iteration 4 --
1418-
1419-
1420-
1421- *** Testing print_r() on anonymous functions ***
1422- New anonymous function: [0x0]lambda_1
1423- 2 * 3 = 6[0x0]lambda_2
1424-
1425- *** Testing error conditions ***
1426-
1427- Warning: print_r() expects at least 1 parameter, 0 given in %s on line %d
1428- bool(false)
1429-
1430- Warning: print_r() expects at most 2 parameters, 3 given in %s on line %d
1431- bool(false)
1432-
1433- Notice: Undefined variable: value in %s on line %d
1434- string(0) ""
1435- Done