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

There is 1 diff reported by users for this test.

Count Diff
14 (100%)
662+ Segmentation fault
662- (
663- [value] => 50
664- [public_var1] => 10
665- [private_var1:object_class:private] => 20
666- [private_var2:object_class:private] => 21
667- [protected_var1:protected] => string_1
668- [protected_var2:protected] => string_2
669- [public_var2] => 11
670- )
671-
672- object_class Object
673- (
674- [value] => 50
675- [public_var1] => 10
676- [private_var1:object_class:private] => 20
677- [private_var2:object_class:private] => 21
678- [protected_var1:protected] => string_1
679- [protected_var2:protected] => string_2
680- [public_var2] => 11
681- )
682-
683- object_class Object
684- (
685- [value] => 50
686- [public_var1] => 10
687- [private_var1:object_class:private] => 20
688- [private_var2:object_class:private] => 21
689- [protected_var1:protected] => string_1
690- [protected_var2:protected] => string_2
691- [public_var2] => 11
692- )
693-
694- -- Iteration 2 --
695- no_member_class Object
696- (
697- )
698-
699- no_member_class Object
700- (
701- )
702-
703- no_member_class Object
704- (
705- )
706-
707- -- Iteration 3 --
708- contains_object_class Object
709- (
710- [p] => 30
711- [class_object1] => object_class Object
712- (
713- [value] => 50
714- [public_var1] => 10
715- [private_var1:object_class:private] => 20
716- [private_var2:object_class:private] => 21
717- [protected_var1:protected] => string_1
718- [protected_var2:protected] => string_2
719- [public_var2] => 11
720- )
721-
722- [class_object2] => object_class Object
723- (
724- [value] => 50
725- [public_var1] => 10
726- [private_var1:object_class:private] => 20
727- [private_var2:object_class:private] => 21
728- [protected_var1:protected] => string_1
729- [protected_var2:protected] => string_2
730- [public_var2] => 11
731- )
732-
733- [class_object3:contains_object_class:private] => object_class Object
734- (
735- [value] => 50
736- [public_var1] => 10
737- [private_var1:object_class:private] => 20
738- [private_var2:object_class:private] => 21
739- [protected_var1:protected] => string_1
740- [protected_var2:protected] => string_2
741- [public_var2] => 11
742- )
743-
744- [class_object4:protected] => object_class Object
745- (
746- [value] => 50
747- [public_var1] => 10
748- [private_var1:object_class:private] => 20
749- [private_var2:object_class:private] => 21
750- [protected_var1:protected] => string_1
751- [protected_var2:protected] => string_2
752- [public_var2] => 11
753- )
754-
755- [no_member_class_object] => no_member_class Object
756- (
757- )
758-
759- [class_object5] => contains_object_class Object
760- *RECURSION*
761- )
762-
763- contains_object_class Object
764- (
765- [p] => 30
766- [class_object1] => object_class Object
767- (
768- [value] => 50
769- [public_var1] => 10
770- [private_var1:object_class:private] => 20
771- [private_var2:object_class:private] => 21
772- [protected_var1:protected] => string_1
773- [protected_var2:protected] => string_2
774- [public_var2] => 11
775- )
776-
777- [class_object2] => object_class Object
778- (
779- [value] => 50
780- [public_var1] => 10
781- [private_var1:object_class:private] => 20
782- [private_var2:object_class:private] => 21
783- [protected_var1:protected] => string_1
784- [protected_var2:protected] => string_2
785- [public_var2] => 11
786- )
787-
788- [class_object3:contains_object_class:private] => object_class Object
789- (
790- [value] => 50
791- [public_var1] => 10
792- [private_var1:object_class:private] => 20
793- [private_var2:object_class:private] => 21
794- [protected_var1:protected] => string_1
795- [protected_var2:protected] => string_2
796- [public_var2] => 11
797- )
798-
799- [class_object4:protected] => object_class Object
800- (
801- [value] => 50
802- [public_var1] => 10
803- [private_var1:object_class:private] => 20
804- [private_var2:object_class:private] => 21
805- [protected_var1:protected] => string_1
806- [protected_var2:protected] => string_2
807- [public_var2] => 11
808- )
809-
810- [no_member_class_object] => no_member_class Object
811- (
812- )
813-
814- [class_object5] => contains_object_class Object
815- *RECURSION*
816- )
817-
818- contains_object_class Object
819- (
820- [p] => 30
821- [class_object1] => object_class Object
822- (
823- [value] => 50
824- [public_var1] => 10
825- [private_var1:object_class:private] => 20
826- [private_var2:object_class:private] => 21
827- [protected_var1:protected] => string_1
828- [protected_var2:protected] => string_2
829- [public_var2] => 11
830- )
831-
832- [class_object2] => object_class Object
833- (
834- [value] => 50
835- [public_var1] => 10
836- [private_var1:object_class:private] => 20
837- [private_var2:object_class:private] => 21
838- [protected_var1:protected] => string_1
839- [protected_var2:protected] => string_2
840- [public_var2] => 11
841- )
842-
843- [class_object3:contains_object_class:private] => object_class Object
844- (
845- [value] => 50
846- [public_var1] => 10
847- [private_var1:object_class:private] => 20
848- [private_var2:object_class:private] => 21
849- [protected_var1:protected] => string_1
850- [protected_var2:protected] => string_2
851- [public_var2] => 11
852- )
853-
854- [class_object4:protected] => object_class Object
855- (
856- [value] => 50
857- [public_var1] => 10
858- [private_var1:object_class:private] => 20
859- [private_var2:object_class:private] => 21
860- [protected_var1:protected] => string_1
861- [protected_var2:protected] => string_2
862- [public_var2] => 11
863- )
864-
865- [no_member_class_object] => no_member_class Object
866- (
867- )
868-
869- [class_object5] => contains_object_class Object
870- *RECURSION*
871- )
872-
873- -- Iteration 4 --
874- contains_object_class Object
875- (
876- [p] => 30
877- [class_object1] => object_class Object
878- (
879- [value] => 50
880- [public_var1] => 10
881- [private_var1:object_class:private] => 20
882- [private_var2:object_class:private] => 21
883- [protected_var1:protected] => string_1
884- [protected_var2:protected] => string_2
885- [public_var2] => 11
886- )
887-
888- [class_object2] => object_class Object
889- (
890- [value] => 50
891- [public_var1] => 10
892- [private_var1:object_class:private] => 20
893- [private_var2:object_class:private] => 21
894- [protected_var1:protected] => string_1
895- [protected_var2:protected] => string_2
896- [public_var2] => 11
897- )
898-
899- [class_object3:contains_object_class:private] => object_class Object
900- (
901- [value] => 50
902- [public_var1] => 10
903- [private_var1:object_class:private] => 20
904- [private_var2:object_class:private] => 21
905- [protected_var1:protected] => string_1
906- [protected_var2:protected] => string_2
907- [public_var2] => 11
908- )
909-
910- [class_object4:protected] => object_class Object
911- (
912- [value] => 50
913- [public_var1] => 10
914- [private_var1:object_class:private] => 20
915- [private_var2:object_class:private] => 21
916- [protected_var1:protected] => string_1
917- [protected_var2:protected] => string_2
918- [public_var2] => 11
919- )
920-
921- [no_member_class_object] => no_member_class Object
922- (
923- )
924-
925- [class_object5] => contains_object_class Object
926- *RECURSION*
927- )
928-
929- contains_object_class Object
930- (
931- [p] => 30
932- [class_object1] => object_class Object
933- (
934- [value] => 50
935- [public_var1] => 10
936- [private_var1:object_class:private] => 20
937- [private_var2:object_class:private] => 21
938- [protected_var1:protected] => string_1
939- [protected_var2:protected] => string_2
940- [public_var2] => 11
941- )
942-
943- [class_object2] => object_class Object
944- (
945- [value] => 50
946- [public_var1] => 10
947- [private_var1:object_class:private] => 20
948- [private_var2:object_class:private] => 21
949- [protected_var1:protected] => string_1
950- [protected_var2:protected] => string_2
951- [public_var2] => 11
952- )
953-
954- [class_object3:contains_object_class:private] => object_class Object
955- (
956- [value] => 50
957- [public_var1] => 10
958- [private_var1:object_class:private] => 20
959- [private_var2:object_class:private] => 21
960- [protected_var1:protected] => string_1
961- [protected_var2:protected] => string_2
962- [public_var2] => 11
963- )
964-
965- [class_object4:protected] => object_class Object
966- (
967- [value] => 50
968- [public_var1] => 10
969- [private_var1:object_class:private] => 20
970- [private_var2:object_class:private] => 21
971- [protected_var1:protected] => string_1
972- [protected_var2:protected] => string_2
973- [public_var2] => 11
974- )
975-
976- [no_member_class_object] => no_member_class Object
977- (
978- )
979-
980- [class_object5] => contains_object_class Object
981- *RECURSION*
982- )
983-
984- contains_object_class Object
985- (
986- [p] => 30
987- [class_object1] => object_class Object
988- (
989- [value] => 50
990- [public_var1] => 10
991- [private_var1:object_class:private] => 20
992- [private_var2:object_class:private] => 21
993- [protected_var1:protected] => string_1
994- [protected_var2:protected] => string_2
995- [public_var2] => 11
996- )
997-
998- [class_object2] => object_class Object
999- (
1000- [value] => 50
1001- [public_var1] => 10
1002- [private_var1:object_class:private] => 20
1003- [private_var2:object_class:private] => 21
1004- [protected_var1:protected] => string_1
1005- [protected_var2:protected] => string_2
1006- [public_var2] => 11
1007- )
1008-
1009- [class_object3:contains_object_class:private] => object_class Object
1010- (
1011- [value] => 50
1012- [public_var1] => 10
1013- [private_var1:object_class:private] => 20
1014- [private_var2:object_class:private] => 21
1015- [protected_var1:protected] => string_1
1016- [protected_var2:protected] => string_2
1017- [public_var2] => 11
1018- )
1019-
1020- [class_object4:protected] => object_class Object
1021- (
1022- [value] => 50
1023- [public_var1] => 10
1024- [private_var1:object_class:private] => 20
1025- [private_var2:object_class:private] => 21
1026- [protected_var1:protected] => string_1
1027- [protected_var2:protected] => string_2
1028- [public_var2] => 11
1029- )
1030-
1031- [no_member_class_object] => no_member_class Object
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