Test: /ext/spl/tests/array_017.phpt - Version 7.4.6-dev    

There is 1 diff reported by users for this test.

Count Diff
3 (100%)
065+ object(ArrayIteratorEx)#2 (5) { 065- object(ArrayIteratorEx)#%d (6) { 076+ } 077+ } 078+ array(1) { 079+ [0]=> 080+ int(1) 081+ } 082+ array(1) { 083+ ["a"]=> 084+ int(25) 085+ } 086+ array(1) { 087+ ["pub1"]=> 088+ int(42) 089+ } 090+ ===FOREACH=== 091+ ArrayObjectEx::getIterator() 092+ ArrayIteratorEx::__construct() 093+ ArrayIteratorEx::dump() 094+ array(3) { 095+ ["Flags"]=> 096+ int(0) 097+ ["OVars"]=> 098+ array(5) { 099+ ["pub2"]=> 100+ int(1) 101+ ["pro2"]=> 102+ int(2) 103+ ["pri2"]=> 104+ int(3) 105+ ["imp2"]=> 106+ int(4) 107+ ["dyn2"]=> 108+ int(5) 109+ } 110+ ["$this"]=> 111+ object(ArrayIteratorEx)#3 (5) { 112+ ["pub2"]=> 113+ int(1) 114+ ["pro2":protected]=> 115+ int(2) 116+ ["pri2":"ArrayIteratorEx":private]=> 117+ int(3) 118+ ["imp2"]=> 119+ int(4) 120+ ["dyn2"]=> 121+ int(5) 122+ } 123+ } 124+ array(1) { 125+ [0]=> 126+ int(1) 127+ } 128+ array(1) { 129+ ["a"]=> 130+ int(25) 131+ } 132+ array(1) { 133+ ["pub1"]=> 134+ int(42) 135+ } 136+ ===PROPERTY=== 137+ int(1) 138+ bool(false) 139+ ArrayObjectEx::setFlags(2) 140+ int(1) 141+ bool(true) 142+ int(1) 143+ bool(false) 144+ ArrayIteratorEx::setFlags(2) 145+ int(1) 146+ bool(true) 147+ ===CHECK=== 148+ ArrayObjectEx::setFlags(1) 149+ ArrayObjectEx::dump() 150+ array(3) { 151+ ["Flags"]=> 152+ int(1) 153+ ["OVars"]=> 154+ array(5) { 155+ ["pub1"]=> 156+ int(1) 157+ ["pro1"]=> 158+ int(2) 159+ ["pri1"]=> 160+ int(3) 161+ ["imp1"]=> 162+ int(4) 163+ ["dyn1"]=> 164+ int(5) 076- ["storage":"ArrayIterator":private]=> 077- object(ArrayObjectEx)#%d (6) { 078- ["pub1"]=> 079- int(1) 080- ["pro1":protected]=> 081- int(2) 082- ["pri1":"ArrayObjectEx":private]=> 083- int(3) 084- ["imp1"]=> 085- int(4) 086- ["dyn1"]=> 087- int(5) 088- ["storage":"ArrayObject":private]=> 089- array(3) { 090- [0]=> 091- int(1) 092- ["a"]=> 093- int(25) 094- ["pub1"]=> 095- int(42) 096- } 097- } 098- } 099- } 100- array(1) { 101- [0]=> 102- int(1) 103- } 104- array(1) { 105- ["a"]=> 106- int(25) 107- } 108- array(1) { 109- ["pub1"]=> 110- int(42) 111- } 112- ===FOREACH=== 113- ArrayObjectEx::getIterator() 114- ArrayIteratorEx::__construct() 115- ArrayIteratorEx::dump() 116- array(3) { 117- ["Flags"]=> 118- int(0) 119- ["OVars"]=> 120- array(5) { 121- ["pub2"]=> 122- int(1) 123- ["pro2"]=> 124- int(2) 125- ["pri2"]=> 126- int(3) 127- ["imp2"]=> 128- int(4) 129- ["dyn2"]=> 130- int(5) 131- } 132- ["$this"]=> 133- object(ArrayIteratorEx)#%d (6) { 134- ["pub2"]=> 135- int(1) 136- ["pro2":protected]=> 137- int(2) 138- ["pri2":"ArrayIteratorEx":private]=> 139- int(3) 140- ["imp2"]=> 141- int(4) 142- ["dyn2"]=> 143- int(5) 144- ["storage":"ArrayIterator":private]=> 145- object(ArrayObjectEx)#%d (6) { 146- ["pub1"]=> 147- int(1) 148- ["pro1":protected]=> 149- int(2) 150- ["pri1":"ArrayObjectEx":private]=> 151- int(3) 152- ["imp1"]=> 153- int(4) 154- ["dyn1"]=> 155- int(5) 156- ["storage":"ArrayObject":private]=> 157- array(3) { 158- [0]=> 159- int(1) 160- ["a"]=> 161- int(25) 162- ["pub1"]=> 163- int(42) 164- } 165- } 166+ ["$this"]=> 167+ object(ArrayObjectEx)#1 (6) { 168+ ["pub1"]=> 169+ int(1) 170+ ["pro1":protected]=> 171+ int(2) 172+ ["pri1":"ArrayObjectEx":private]=> 173+ int(3) 174+ ["imp1"]=> 175+ int(4) 176+ ["dyn1"]=> 177+ int(5) 178+ ["storage":"ArrayObject":private]=> 179+ array(3) { 180+ [0]=> 181+ int(1) 182+ ["a"]=> 183+ int(25) 184+ ["pub1"]=> 185+ int(42) 186+ } 187+ } 167- } 168- array(1) { 169- [0]=> 170- int(1) 171- } 172- array(1) { 173- ["a"]=> 174- int(25) 175- } 176- array(1) { 177- ["pub1"]=> 178- int(42) 180- ===PROPERTY=== 181- int(1) 182- bool(false) 183- ArrayObjectEx::setFlags(2) 184- int(1) 185- bool(true) 186- int(1) 187- bool(false) 188- ArrayIteratorEx::setFlags(2) 189- int(1) 190- bool(true) 191- ===CHECK=== 192- ArrayObjectEx::setFlags(1) 193- ArrayObjectEx::dump() 194- array(3) { 195- ["Flags"]=> 196- int(1) 197- ["OVars"]=> 198- array(5) { 199- ["pub1"]=> 200- int(1) 201- ["pro1"]=> 202- int(2) 203- ["pri1"]=> 204- int(3) 205- ["imp1"]=> 206- int(4) 207- ["dyn1"]=> 189+ ArrayObjectEx::show() 190+ ArrayObjectEx::getIterator() 191+ ArrayIteratorEx::__construct() 192+ ArrayIteratorEx::dump() 193+ array(3) { 194+ ["Flags"]=> 195+ int(1) 196+ ["OVars"]=> 197+ array(5) { 198+ ["pub2"]=> 199+ int(1) 200+ ["pro2"]=> 201+ int(2) 202+ ["pri2"]=> 203+ int(3) 204+ ["imp2"]=> 205+ int(4) 206+ ["dyn2"]=> 207+ int(5) 208+ } 209+ ["$this"]=> 210+ object(ArrayIteratorEx)#3 (5) { 211+ ["pub2"]=> 212+ int(1) 213+ ["pro2":protected]=> 214+ int(2) 215+ ["pri2":"ArrayIteratorEx":private]=> 216+ int(3) 217+ ["imp2"]=> 218+ int(4) 219+ ["dyn2"]=> 210- ["$this"]=> 211- object(ArrayObjectEx)#%d (6) { 212- ["pub1"]=> 213- int(1) 214- ["pro1":protected]=> 215- int(2) 216- ["pri1":"ArrayObjectEx":private]=> 217- int(3) 218- ["imp1"]=> 219- int(4) 220- ["dyn1"]=> 221- int(5) 222- ["storage":"ArrayObject":private]=> 223- array(3) { 224- [0]=> 225- int(1) 226- ["a"]=> 227- int(25) 228- ["pub1"]=> 229- int(42) 230- } 231- } 232- } 233- ArrayObjectEx::show() 234- ArrayObjectEx::getIterator() 235- ArrayIteratorEx::__construct() 236- ArrayIteratorEx::dump() 237- array(3) { 238- ["Flags"]=> 239- int(1) 240- ["OVars"]=> 241- array(5) { 222+ } 223+ array(1) { 224+ [0]=> 225+ int(1) 226+ } 227+ array(1) { 228+ ["a"]=> 229+ int(25) 230+ } 231+ array(1) { 232+ ["pub1"]=> 233+ int(42) 234+ } 235+ ===FOREACH=== 236+ ArrayObjectEx::getIterator() 237+ ArrayIteratorEx::__construct() 238+ ArrayIteratorEx::dump() 239+ array(3) { 240+ ["Flags"]=> 241+ int(1) 242+ ["OVars"]=> 243+ array(5) { 244+ ["pub2"]=> 245+ int(1) 246+ ["pro2"]=> 247+ int(2) 248+ ["pri2"]=> 249+ int(3) 250+ ["imp2"]=> 251+ int(4) 252+ ["dyn2"]=> 253+ int(5) 254+ } 255+ ["$this"]=> 256+ object(ArrayIteratorEx)#2 (5) { 244- ["pro2"]=> 246- ["pri2"]=> 253- ["$this"]=> 254- object(ArrayIteratorEx)#%d (6) { 255- ["pub2"]=> 256- int(1) 257- ["pro2":protected]=> 258- int(2) 259- ["pri2":"ArrayIteratorEx":private]=> 260- int(3) 261- ["imp2"]=> 262- int(4) 263- ["dyn2"]=> 264- int(5) 265- ["storage":"ArrayIterator":private]=> 266- object(ArrayObjectEx)#%d (6) { 267- ["pub1"]=> 268- int(1) 269- ["pro1":protected]=> 270- int(2) 271- ["pri1":"ArrayObjectEx":private]=> 272- int(3) 273- ["imp1"]=> 274- int(4) 275- ["dyn1"]=> 276- int(5) 277- ["storage":"ArrayObject":private]=> 278- array(3) { 279- [0]=> 280- int(1) 281- ["a"]=> 282- int(25) 283- ["pub1"]=> 284- int(42) 285- } 286- } 259+ ["pro2":protected]=> 261+ ["pri2":"ArrayIteratorEx":private]=> 268+ } 269+ array(1) { 270+ [0]=> 271+ int(1) 272+ } 273+ array(1) { 274+ ["a"]=> 275+ int(25) 276+ } 277+ array(1) { 278+ ["pub1"]=> 279+ int(42) 280+ } 281+ ===PROPERTY=== 282+ int(1) 283+ bool(false) 284+ ArrayObjectEx::setFlags(3) 285+ int(1) 286+ bool(true) 287+ int(1) 288+ bool(false) 289+ ArrayIteratorEx::setFlags(3) 290+ int(1) 291+ bool(true) 292+ #####EXCHANGE##### 293+ ArrayObjectEx::exchange() 294+ ===CHECK=== 295+ ArrayObjectEx::setFlags(0) 296+ ArrayObjectEx::dump() 297+ array(3) { 298+ ["Flags"]=> 299+ int(0) 300+ ["OVars"]=> 301+ array(5) { 302+ ["pub1"]=> 303+ int(1) 304+ ["pro1"]=> 305+ int(2) 306+ ["pri1"]=> 307+ int(3) 308+ ["imp1"]=> 309+ int(4) 310+ ["dyn1"]=> 311+ int(5) 288- } 289- array(1) { 290- [0]=> 291- int(1) 293- array(1) { 294- ["a"]=> 295- int(25) 296- } 297- array(1) { 298- ["pub1"]=> 299- int(42) 300- } 301- ===FOREACH=== 302- ArrayObjectEx::getIterator() 303- ArrayIteratorEx::__construct() 304- ArrayIteratorEx::dump() 305- array(3) { 306- ["Flags"]=> 307- int(1) 308- ["OVars"]=> 309- array(5) { 312- ["pro2"]=> 313+ ["$this"]=> 314+ object(ArrayObjectEx)#1 (5) { 315+ ["pub1"]=> 316+ int(1) 317+ ["pro1":protected]=> 318+ int(2) 319+ ["pri1":"ArrayObjectEx":private]=> 320+ int(3) 321+ ["imp1"]=> 322+ int(4) 323+ ["dyn1"]=> 324+ int(5) 325+ } 314- ["pri2"]=> 321- ["$this"]=> 322- object(ArrayIteratorEx)#%d (6) { 323- ["pub2"]=> 324- int(1) 325- ["pro2":protected]=> 326- int(2) 327- ["pri2":"ArrayIteratorEx":private]=> 328- int(3) 329- ["imp2"]=> 330- int(4) 331- ["dyn2"]=> 332- int(5) 333- ["storage":"ArrayIterator":private]=> 334- object(ArrayObjectEx)#%d (6) { 335- ["pub1"]=> 336- int(1) 337- ["pro1":protected]=> 338- int(2) 339- ["pri1":"ArrayObjectEx":private]=> 340- int(3) 341- ["imp1"]=> 342- int(4) 343- ["dyn1"]=> 344- int(5) 345- ["storage":"ArrayObject":private]=> 346- array(3) { 347- [0]=> 348- int(1) 349- ["a"]=> 350- int(25) 351- ["pub1"]=> 352- int(42) 353- } 354- } 327+ ArrayObjectEx::show() 328+ ArrayObjectEx::getIterator() 329+ ArrayIteratorEx::__construct() 330+ ArrayIteratorEx::dump() 331+ array(3) { 332+ ["Flags"]=> 333+ int(0) 334+ ["OVars"]=> 335+ array(5) { 336+ ["pub2"]=> 337+ int(1) 338+ ["pro2"]=> 339+ int(2) 340+ ["pri2"]=> 341+ int(3) 342+ ["imp2"]=> 343+ int(4) 344+ ["dyn2"]=> 345+ int(5) 346+ } 347+ ["$this"]=> 348+ object(ArrayIteratorEx)#2 (5) { 351+ ["pro2":protected]=> 353+ ["pri2":"ArrayIteratorEx":private]=> 356- } 357- array(1) { 358- [0]=> 359- int(1) 360- } 360+ } 361+ array(1) { 362+ ["pub1"]=> 363+ int(1) 364+ } 365+ array(1) { 366+ ["imp1"]=> 367+ int(4) 368+ } 369+ array(1) { 370+ ["dyn1"]=> 371+ int(5) 372+ } 373+ ===FOREACH=== 374+ ArrayObjectEx::getIterator() 375+ ArrayIteratorEx::__construct() 376+ ArrayIteratorEx::dump() 377+ array(3) { 378+ ["Flags"]=> 379+ int(0) 380+ ["OVars"]=> 381+ array(5) { 382+ ["pub2"]=> 383+ int(1) 384+ ["pro2"]=> 385+ int(2) 386+ ["pri2"]=> 387+ int(3) 388+ ["imp2"]=> 389+ int(4) 390+ ["dyn2"]=> 391+ int(5) 362- ["a"]=> 363- int(25) 366- ["pub1"]=> 367- int(42) 372- ArrayObjectEx::setFlags(3) 374- bool(true) 377- ArrayIteratorEx::setFlags(3) 380- #####EXCHANGE##### 381- ArrayObjectEx::exchange() 382- ===CHECK=== 383- ArrayObjectEx::setFlags(0) 387- int(0) 393+ ["$this"]=> 394+ object(ArrayIteratorEx)#3 (5) { 395+ ["pub2"]=> 396+ int(1) 397+ ["pro2":protected]=> 398+ int(2) 399+ ["pri2":"ArrayIteratorEx":private]=> 400+ int(3) 401+ ["imp2"]=> 402+ int(4) 403+ ["dyn2"]=> 404+ int(5) 405+ } 406+ } 408+ ["pub1"]=> 409+ int(1) 410+ } 411+ array(1) { 412+ ["imp1"]=> 413+ int(4) 416+ ["dyn1"]=> 417+ int(5) 421- int(0) 422+ ArrayObjectEx::setFlags(2) 424+ bool(false) 427+ ArrayIteratorEx::setFlags(2) 430+ ===CHECK=== 431+ ArrayObjectEx::setFlags(1) 435+ int(1) 436- object(ArrayIteratorEx)#%d (6) { 447- ["storage":"ArrayIterator":private]=> 448- object(ArrayObjectEx)#%d (5) { 449- ["pub1"]=> 450- int(1) 451- ["pro1":protected]=> 452- int(2) 453- ["pri1":"ArrayObjectEx":private]=> 454- int(3) 455- ["imp1"]=> 456- int(4) 457- ["dyn1"]=> 458- int(5) 459- } 460- } 463- ["pub1"]=> 465- } 466- array(1) { 467- ["imp1"]=> 468- int(4) 469- } 470- array(1) { 471- ["dyn1"]=> 472- int(5) 473- } 474- ===FOREACH=== 475- ArrayObjectEx::getIterator() 476- ArrayIteratorEx::__construct() 477- ArrayIteratorEx::dump() 478- array(3) { 479- ["Flags"]=> 480- int(0) 481- ["OVars"]=> 482- array(5) { 469+ int(1) 484+ object(ArrayIteratorEx)#3 (5) { 485- ["pro2"]=> 487- ["pri2"]=> 494- ["$this"]=> 495- object(ArrayIteratorEx)#%d (6) { 496- ["pub2"]=> 497- int(1) 498- ["pro2":protected]=> 499- int(2) 500- ["pri2":"ArrayIteratorEx":private]=> 501- int(3) 502- ["imp2"]=> 503- int(4) 504- ["dyn2"]=> 505- int(5) 506- ["storage":"ArrayIterator":private]=> 507- object(ArrayObjectEx)#%d (5) { 508- ["pub1"]=> 509- int(1) 510- ["pro1":protected]=> 511- int(2) 512- ["pri1":"ArrayObjectEx":private]=> 513- int(3) 514- ["imp1"]=> 515- int(4) 516- ["dyn1"]=> 517- int(5) 518- } 495+ } 496+ } 497+ array(1) { 498+ ["pub1"]=> 499+ int(1) 500+ } 501+ array(1) { 502+ ["imp1"]=> 503+ int(4) 506+ ["dyn1"]=> 507+ int(5) 508+ } 509+ ===FOREACH=== 510+ ArrayObjectEx::getIterator() 511+ ArrayIteratorEx::__construct() 512+ ArrayIteratorEx::dump() 513+ array(3) { 514+ ["Flags"]=> 516+ ["OVars"]=> 517+ array(5) { 518+ ["pub2"]=> 519+ int(1) 520+ ["pro2"]=> 521+ int(2) 522+ ["pri2"]=> 523+ int(3) 524+ ["imp2"]=> 525+ int(4) 526+ ["dyn2"]=> 527+ int(5) 528+ } 529+ ["$this"]=> 530+ object(ArrayIteratorEx)#2 (5) { 533+ ["pro2":protected]=> 535+ ["pri2":"ArrayIteratorEx":private]=> 542+ } 543+ array(1) { 544+ ["pub1"]=> 545+ int(1) 546+ } 547+ array(1) { 548+ ["imp1"]=> 549+ int(4) 550+ } 551+ array(1) { 552+ ["dyn1"]=> 553+ int(5) 554+ } 555+ ===PROPERTY=== 556+ int(1) 557+ bool(false) 558+ ArrayObjectEx::setFlags(3) 559+ int(1) 560+ bool(false) 561+ int(1) 562+ bool(false) 563+ ArrayIteratorEx::setFlags(3) 564+ int(1) 565+ bool(true) 566+ ===DONE=== 519- } 520- } 521- array(1) { 522- ["pub1"]=> 523- int(1) 524- } 525- array(1) { 526- ["imp1"]=> 527- int(4) 528- } 529- array(1) { 530- ["dyn1"]=> 531- int(5) 532- } 533- ===PROPERTY=== 534- int(1) 535- bool(false) 536- ArrayObjectEx::setFlags(2) 537- int(1) 538- bool(false) 539- int(1) 540- bool(false) 541- ArrayIteratorEx::setFlags(2) 542- int(1) 543- bool(true) 544- ===CHECK=== 545- ArrayObjectEx::setFlags(1) 546- ArrayObjectEx::dump() 547- array(3) { 548- ["Flags"]=> 549- int(1) 550- ["OVars"]=> 551- array(5) { 552- ["pub1"]=> 553- int(1) 554- ["pro1"]=> 555- int(2) 556- ["pri1"]=> 557- int(3) 558- ["imp1"]=> 559- int(4) 560- ["dyn1"]=> 561- int(5) 562- } 563- ["$this"]=> 564- object(ArrayObjectEx)#%d (5) { 565- ["pub1"]=> 566- int(1) 567- ["pro1":protected]=> 568- int(2) 569- ["pri1":"ArrayObjectEx":private]=> 570- int(3) 571- ["imp1"]=> 572- int(4) 573- ["dyn1"]=> 574- int(5) 575- } 576- } 577- ArrayObjectEx::show() 578- ArrayObjectEx::getIterator() 579- ArrayIteratorEx::__construct() 580- ArrayIteratorEx::dump() 581- array(3) { 582- ["Flags"]=> 583- int(1) 584- ["OVars"]=> 585- array(5) { 586- ["pub2"]=> 587- int(1) 588- ["pro2"]=> 589- int(2) 590- ["pri2"]=> 591- int(3) 592- ["imp2"]=> 593- int(4) 594- ["dyn2"]=> 595- int(5) 596- } 597- ["$this"]=> 598- object(ArrayIteratorEx)#%d (6) { 599- ["pub2"]=> 600- int(1) 601- ["pro2":protected]=> 602- int(2) 603- ["pri2":"ArrayIteratorEx":private]=> 604- int(3) 605- ["imp2"]=> 606- int(4) 607- ["dyn2"]=> 608- int(5) 609- ["storage":"ArrayIterator":private]=> 610- object(ArrayObjectEx)#%d (5) { 611- ["pub1"]=> 612- int(1) 613- ["pro1":protected]=> 614- int(2) 615- ["pri1":"ArrayObjectEx":private]=> 616- int(3) 617- ["imp1"]=> 618- int(4) 619- ["dyn1"]=> 620- int(5) 621- } 622- } 623- } 624- array(1) { 625- ["pub1"]=> 626- int(1) 627- } 628- array(1) { 629- ["imp1"]=> 630- int(4) 631- } 632- array(1) { 633- ["dyn1"]=> 634- int(5) 635- } 636- ===FOREACH=== 637- ArrayObjectEx::getIterator() 638- ArrayIteratorEx::__construct() 639- ArrayIteratorEx::dump() 640- array(3) { 641- ["Flags"]=> 642- int(1) 643- ["OVars"]=> 644- array(5) { 645- ["pub2"]=> 646- int(1) 647- ["pro2"]=> 648- int(2) 649- ["pri2"]=> 650- int(3) 651- ["imp2"]=> 652- int(4) 653- ["dyn2"]=> 654- int(5) 655- } 656- ["$this"]=> 657- object(ArrayIteratorEx)#%d (6) { 658- ["pub2"]=> 659- int(1) 660- ["pro2":protected]=> 661- int(2) 662- ["pri2":"ArrayIteratorEx":private]=> 663- int(3) 664- ["imp2"]=> 665- int(4) 666- ["dyn2"]=> 667- int(5) 668- ["storage":"ArrayIterator":private]=> 669- object(ArrayObjectEx)#%d (5) { 670- ["pub1"]=> 671- int(1) 672- ["pro1":protected]=> 673- int(2) 674- ["pri1":"ArrayObjectEx":private]=> 675- int(3) 676- ["imp1"]=> 677- int(4) 678- ["dyn1"]=> 679- int(5) 680- } 681- } 682- } 683- array(1) { 684- ["pub1"]=> 685- int(1) 686- } 687- array(1) { 688- ["imp1"]=> 689- int(4) 690- } 691- array(1) { 692- ["dyn1"]=> 693- int(5) 694- } 695- ===PROPERTY=== 696- int(1) 697- bool(false) 698- ArrayObjectEx::setFlags(3) 699- int(1) 700- bool(false) 701- int(1) 702- bool(false) 703- ArrayIteratorEx::setFlags(3) 704- int(1) 705- bool(true) 706- ===DONE===