Annotation of embedaddon/php/tests/lang/028.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Testing calling user-level functions from C
! 3: --FILE--
! 4: <?php
! 5:
! 6: error_reporting(1023);
! 7:
! 8: function print_stuff($stuff)
! 9: {
! 10: print $stuff;
! 11: }
! 12:
! 13:
! 14: function still_working()
! 15: {
! 16: return "I'm still alive";
! 17: }
! 18:
! 19: function dafna()
! 20: {
! 21: static $foo = 0;
! 22:
! 23: print "Dafna!\n";
! 24: print call_user_func("still_working")."\n";
! 25: $foo++;
! 26: return (string) $foo;
! 27: }
! 28:
! 29:
! 30: class dafna_class {
! 31: function dafna_class() {
! 32: $this->myname = "Dafna";
! 33: }
! 34: function GetMyName() {
! 35: return $this->myname;
! 36: }
! 37: function SetMyName($name) {
! 38: $this->myname = $name;
! 39: }
! 40: };
! 41:
! 42: for ($i=0; $i<200; $i++):
! 43: print "$i\n";
! 44: call_user_func("dafna");
! 45: call_user_func("print_stuff","Hey there!!\n");
! 46: print "$i\n";
! 47: endfor;
! 48:
! 49:
! 50: $dafna = new dafna_class();
! 51:
! 52: print $name=call_user_func(array(&$dafna,"GetMyName"));
! 53: print "\n";
! 54:
! 55: ?>
! 56: --EXPECT--
! 57: 0
! 58: Dafna!
! 59: I'm still alive
! 60: Hey there!!
! 61: 0
! 62: 1
! 63: Dafna!
! 64: I'm still alive
! 65: Hey there!!
! 66: 1
! 67: 2
! 68: Dafna!
! 69: I'm still alive
! 70: Hey there!!
! 71: 2
! 72: 3
! 73: Dafna!
! 74: I'm still alive
! 75: Hey there!!
! 76: 3
! 77: 4
! 78: Dafna!
! 79: I'm still alive
! 80: Hey there!!
! 81: 4
! 82: 5
! 83: Dafna!
! 84: I'm still alive
! 85: Hey there!!
! 86: 5
! 87: 6
! 88: Dafna!
! 89: I'm still alive
! 90: Hey there!!
! 91: 6
! 92: 7
! 93: Dafna!
! 94: I'm still alive
! 95: Hey there!!
! 96: 7
! 97: 8
! 98: Dafna!
! 99: I'm still alive
! 100: Hey there!!
! 101: 8
! 102: 9
! 103: Dafna!
! 104: I'm still alive
! 105: Hey there!!
! 106: 9
! 107: 10
! 108: Dafna!
! 109: I'm still alive
! 110: Hey there!!
! 111: 10
! 112: 11
! 113: Dafna!
! 114: I'm still alive
! 115: Hey there!!
! 116: 11
! 117: 12
! 118: Dafna!
! 119: I'm still alive
! 120: Hey there!!
! 121: 12
! 122: 13
! 123: Dafna!
! 124: I'm still alive
! 125: Hey there!!
! 126: 13
! 127: 14
! 128: Dafna!
! 129: I'm still alive
! 130: Hey there!!
! 131: 14
! 132: 15
! 133: Dafna!
! 134: I'm still alive
! 135: Hey there!!
! 136: 15
! 137: 16
! 138: Dafna!
! 139: I'm still alive
! 140: Hey there!!
! 141: 16
! 142: 17
! 143: Dafna!
! 144: I'm still alive
! 145: Hey there!!
! 146: 17
! 147: 18
! 148: Dafna!
! 149: I'm still alive
! 150: Hey there!!
! 151: 18
! 152: 19
! 153: Dafna!
! 154: I'm still alive
! 155: Hey there!!
! 156: 19
! 157: 20
! 158: Dafna!
! 159: I'm still alive
! 160: Hey there!!
! 161: 20
! 162: 21
! 163: Dafna!
! 164: I'm still alive
! 165: Hey there!!
! 166: 21
! 167: 22
! 168: Dafna!
! 169: I'm still alive
! 170: Hey there!!
! 171: 22
! 172: 23
! 173: Dafna!
! 174: I'm still alive
! 175: Hey there!!
! 176: 23
! 177: 24
! 178: Dafna!
! 179: I'm still alive
! 180: Hey there!!
! 181: 24
! 182: 25
! 183: Dafna!
! 184: I'm still alive
! 185: Hey there!!
! 186: 25
! 187: 26
! 188: Dafna!
! 189: I'm still alive
! 190: Hey there!!
! 191: 26
! 192: 27
! 193: Dafna!
! 194: I'm still alive
! 195: Hey there!!
! 196: 27
! 197: 28
! 198: Dafna!
! 199: I'm still alive
! 200: Hey there!!
! 201: 28
! 202: 29
! 203: Dafna!
! 204: I'm still alive
! 205: Hey there!!
! 206: 29
! 207: 30
! 208: Dafna!
! 209: I'm still alive
! 210: Hey there!!
! 211: 30
! 212: 31
! 213: Dafna!
! 214: I'm still alive
! 215: Hey there!!
! 216: 31
! 217: 32
! 218: Dafna!
! 219: I'm still alive
! 220: Hey there!!
! 221: 32
! 222: 33
! 223: Dafna!
! 224: I'm still alive
! 225: Hey there!!
! 226: 33
! 227: 34
! 228: Dafna!
! 229: I'm still alive
! 230: Hey there!!
! 231: 34
! 232: 35
! 233: Dafna!
! 234: I'm still alive
! 235: Hey there!!
! 236: 35
! 237: 36
! 238: Dafna!
! 239: I'm still alive
! 240: Hey there!!
! 241: 36
! 242: 37
! 243: Dafna!
! 244: I'm still alive
! 245: Hey there!!
! 246: 37
! 247: 38
! 248: Dafna!
! 249: I'm still alive
! 250: Hey there!!
! 251: 38
! 252: 39
! 253: Dafna!
! 254: I'm still alive
! 255: Hey there!!
! 256: 39
! 257: 40
! 258: Dafna!
! 259: I'm still alive
! 260: Hey there!!
! 261: 40
! 262: 41
! 263: Dafna!
! 264: I'm still alive
! 265: Hey there!!
! 266: 41
! 267: 42
! 268: Dafna!
! 269: I'm still alive
! 270: Hey there!!
! 271: 42
! 272: 43
! 273: Dafna!
! 274: I'm still alive
! 275: Hey there!!
! 276: 43
! 277: 44
! 278: Dafna!
! 279: I'm still alive
! 280: Hey there!!
! 281: 44
! 282: 45
! 283: Dafna!
! 284: I'm still alive
! 285: Hey there!!
! 286: 45
! 287: 46
! 288: Dafna!
! 289: I'm still alive
! 290: Hey there!!
! 291: 46
! 292: 47
! 293: Dafna!
! 294: I'm still alive
! 295: Hey there!!
! 296: 47
! 297: 48
! 298: Dafna!
! 299: I'm still alive
! 300: Hey there!!
! 301: 48
! 302: 49
! 303: Dafna!
! 304: I'm still alive
! 305: Hey there!!
! 306: 49
! 307: 50
! 308: Dafna!
! 309: I'm still alive
! 310: Hey there!!
! 311: 50
! 312: 51
! 313: Dafna!
! 314: I'm still alive
! 315: Hey there!!
! 316: 51
! 317: 52
! 318: Dafna!
! 319: I'm still alive
! 320: Hey there!!
! 321: 52
! 322: 53
! 323: Dafna!
! 324: I'm still alive
! 325: Hey there!!
! 326: 53
! 327: 54
! 328: Dafna!
! 329: I'm still alive
! 330: Hey there!!
! 331: 54
! 332: 55
! 333: Dafna!
! 334: I'm still alive
! 335: Hey there!!
! 336: 55
! 337: 56
! 338: Dafna!
! 339: I'm still alive
! 340: Hey there!!
! 341: 56
! 342: 57
! 343: Dafna!
! 344: I'm still alive
! 345: Hey there!!
! 346: 57
! 347: 58
! 348: Dafna!
! 349: I'm still alive
! 350: Hey there!!
! 351: 58
! 352: 59
! 353: Dafna!
! 354: I'm still alive
! 355: Hey there!!
! 356: 59
! 357: 60
! 358: Dafna!
! 359: I'm still alive
! 360: Hey there!!
! 361: 60
! 362: 61
! 363: Dafna!
! 364: I'm still alive
! 365: Hey there!!
! 366: 61
! 367: 62
! 368: Dafna!
! 369: I'm still alive
! 370: Hey there!!
! 371: 62
! 372: 63
! 373: Dafna!
! 374: I'm still alive
! 375: Hey there!!
! 376: 63
! 377: 64
! 378: Dafna!
! 379: I'm still alive
! 380: Hey there!!
! 381: 64
! 382: 65
! 383: Dafna!
! 384: I'm still alive
! 385: Hey there!!
! 386: 65
! 387: 66
! 388: Dafna!
! 389: I'm still alive
! 390: Hey there!!
! 391: 66
! 392: 67
! 393: Dafna!
! 394: I'm still alive
! 395: Hey there!!
! 396: 67
! 397: 68
! 398: Dafna!
! 399: I'm still alive
! 400: Hey there!!
! 401: 68
! 402: 69
! 403: Dafna!
! 404: I'm still alive
! 405: Hey there!!
! 406: 69
! 407: 70
! 408: Dafna!
! 409: I'm still alive
! 410: Hey there!!
! 411: 70
! 412: 71
! 413: Dafna!
! 414: I'm still alive
! 415: Hey there!!
! 416: 71
! 417: 72
! 418: Dafna!
! 419: I'm still alive
! 420: Hey there!!
! 421: 72
! 422: 73
! 423: Dafna!
! 424: I'm still alive
! 425: Hey there!!
! 426: 73
! 427: 74
! 428: Dafna!
! 429: I'm still alive
! 430: Hey there!!
! 431: 74
! 432: 75
! 433: Dafna!
! 434: I'm still alive
! 435: Hey there!!
! 436: 75
! 437: 76
! 438: Dafna!
! 439: I'm still alive
! 440: Hey there!!
! 441: 76
! 442: 77
! 443: Dafna!
! 444: I'm still alive
! 445: Hey there!!
! 446: 77
! 447: 78
! 448: Dafna!
! 449: I'm still alive
! 450: Hey there!!
! 451: 78
! 452: 79
! 453: Dafna!
! 454: I'm still alive
! 455: Hey there!!
! 456: 79
! 457: 80
! 458: Dafna!
! 459: I'm still alive
! 460: Hey there!!
! 461: 80
! 462: 81
! 463: Dafna!
! 464: I'm still alive
! 465: Hey there!!
! 466: 81
! 467: 82
! 468: Dafna!
! 469: I'm still alive
! 470: Hey there!!
! 471: 82
! 472: 83
! 473: Dafna!
! 474: I'm still alive
! 475: Hey there!!
! 476: 83
! 477: 84
! 478: Dafna!
! 479: I'm still alive
! 480: Hey there!!
! 481: 84
! 482: 85
! 483: Dafna!
! 484: I'm still alive
! 485: Hey there!!
! 486: 85
! 487: 86
! 488: Dafna!
! 489: I'm still alive
! 490: Hey there!!
! 491: 86
! 492: 87
! 493: Dafna!
! 494: I'm still alive
! 495: Hey there!!
! 496: 87
! 497: 88
! 498: Dafna!
! 499: I'm still alive
! 500: Hey there!!
! 501: 88
! 502: 89
! 503: Dafna!
! 504: I'm still alive
! 505: Hey there!!
! 506: 89
! 507: 90
! 508: Dafna!
! 509: I'm still alive
! 510: Hey there!!
! 511: 90
! 512: 91
! 513: Dafna!
! 514: I'm still alive
! 515: Hey there!!
! 516: 91
! 517: 92
! 518: Dafna!
! 519: I'm still alive
! 520: Hey there!!
! 521: 92
! 522: 93
! 523: Dafna!
! 524: I'm still alive
! 525: Hey there!!
! 526: 93
! 527: 94
! 528: Dafna!
! 529: I'm still alive
! 530: Hey there!!
! 531: 94
! 532: 95
! 533: Dafna!
! 534: I'm still alive
! 535: Hey there!!
! 536: 95
! 537: 96
! 538: Dafna!
! 539: I'm still alive
! 540: Hey there!!
! 541: 96
! 542: 97
! 543: Dafna!
! 544: I'm still alive
! 545: Hey there!!
! 546: 97
! 547: 98
! 548: Dafna!
! 549: I'm still alive
! 550: Hey there!!
! 551: 98
! 552: 99
! 553: Dafna!
! 554: I'm still alive
! 555: Hey there!!
! 556: 99
! 557: 100
! 558: Dafna!
! 559: I'm still alive
! 560: Hey there!!
! 561: 100
! 562: 101
! 563: Dafna!
! 564: I'm still alive
! 565: Hey there!!
! 566: 101
! 567: 102
! 568: Dafna!
! 569: I'm still alive
! 570: Hey there!!
! 571: 102
! 572: 103
! 573: Dafna!
! 574: I'm still alive
! 575: Hey there!!
! 576: 103
! 577: 104
! 578: Dafna!
! 579: I'm still alive
! 580: Hey there!!
! 581: 104
! 582: 105
! 583: Dafna!
! 584: I'm still alive
! 585: Hey there!!
! 586: 105
! 587: 106
! 588: Dafna!
! 589: I'm still alive
! 590: Hey there!!
! 591: 106
! 592: 107
! 593: Dafna!
! 594: I'm still alive
! 595: Hey there!!
! 596: 107
! 597: 108
! 598: Dafna!
! 599: I'm still alive
! 600: Hey there!!
! 601: 108
! 602: 109
! 603: Dafna!
! 604: I'm still alive
! 605: Hey there!!
! 606: 109
! 607: 110
! 608: Dafna!
! 609: I'm still alive
! 610: Hey there!!
! 611: 110
! 612: 111
! 613: Dafna!
! 614: I'm still alive
! 615: Hey there!!
! 616: 111
! 617: 112
! 618: Dafna!
! 619: I'm still alive
! 620: Hey there!!
! 621: 112
! 622: 113
! 623: Dafna!
! 624: I'm still alive
! 625: Hey there!!
! 626: 113
! 627: 114
! 628: Dafna!
! 629: I'm still alive
! 630: Hey there!!
! 631: 114
! 632: 115
! 633: Dafna!
! 634: I'm still alive
! 635: Hey there!!
! 636: 115
! 637: 116
! 638: Dafna!
! 639: I'm still alive
! 640: Hey there!!
! 641: 116
! 642: 117
! 643: Dafna!
! 644: I'm still alive
! 645: Hey there!!
! 646: 117
! 647: 118
! 648: Dafna!
! 649: I'm still alive
! 650: Hey there!!
! 651: 118
! 652: 119
! 653: Dafna!
! 654: I'm still alive
! 655: Hey there!!
! 656: 119
! 657: 120
! 658: Dafna!
! 659: I'm still alive
! 660: Hey there!!
! 661: 120
! 662: 121
! 663: Dafna!
! 664: I'm still alive
! 665: Hey there!!
! 666: 121
! 667: 122
! 668: Dafna!
! 669: I'm still alive
! 670: Hey there!!
! 671: 122
! 672: 123
! 673: Dafna!
! 674: I'm still alive
! 675: Hey there!!
! 676: 123
! 677: 124
! 678: Dafna!
! 679: I'm still alive
! 680: Hey there!!
! 681: 124
! 682: 125
! 683: Dafna!
! 684: I'm still alive
! 685: Hey there!!
! 686: 125
! 687: 126
! 688: Dafna!
! 689: I'm still alive
! 690: Hey there!!
! 691: 126
! 692: 127
! 693: Dafna!
! 694: I'm still alive
! 695: Hey there!!
! 696: 127
! 697: 128
! 698: Dafna!
! 699: I'm still alive
! 700: Hey there!!
! 701: 128
! 702: 129
! 703: Dafna!
! 704: I'm still alive
! 705: Hey there!!
! 706: 129
! 707: 130
! 708: Dafna!
! 709: I'm still alive
! 710: Hey there!!
! 711: 130
! 712: 131
! 713: Dafna!
! 714: I'm still alive
! 715: Hey there!!
! 716: 131
! 717: 132
! 718: Dafna!
! 719: I'm still alive
! 720: Hey there!!
! 721: 132
! 722: 133
! 723: Dafna!
! 724: I'm still alive
! 725: Hey there!!
! 726: 133
! 727: 134
! 728: Dafna!
! 729: I'm still alive
! 730: Hey there!!
! 731: 134
! 732: 135
! 733: Dafna!
! 734: I'm still alive
! 735: Hey there!!
! 736: 135
! 737: 136
! 738: Dafna!
! 739: I'm still alive
! 740: Hey there!!
! 741: 136
! 742: 137
! 743: Dafna!
! 744: I'm still alive
! 745: Hey there!!
! 746: 137
! 747: 138
! 748: Dafna!
! 749: I'm still alive
! 750: Hey there!!
! 751: 138
! 752: 139
! 753: Dafna!
! 754: I'm still alive
! 755: Hey there!!
! 756: 139
! 757: 140
! 758: Dafna!
! 759: I'm still alive
! 760: Hey there!!
! 761: 140
! 762: 141
! 763: Dafna!
! 764: I'm still alive
! 765: Hey there!!
! 766: 141
! 767: 142
! 768: Dafna!
! 769: I'm still alive
! 770: Hey there!!
! 771: 142
! 772: 143
! 773: Dafna!
! 774: I'm still alive
! 775: Hey there!!
! 776: 143
! 777: 144
! 778: Dafna!
! 779: I'm still alive
! 780: Hey there!!
! 781: 144
! 782: 145
! 783: Dafna!
! 784: I'm still alive
! 785: Hey there!!
! 786: 145
! 787: 146
! 788: Dafna!
! 789: I'm still alive
! 790: Hey there!!
! 791: 146
! 792: 147
! 793: Dafna!
! 794: I'm still alive
! 795: Hey there!!
! 796: 147
! 797: 148
! 798: Dafna!
! 799: I'm still alive
! 800: Hey there!!
! 801: 148
! 802: 149
! 803: Dafna!
! 804: I'm still alive
! 805: Hey there!!
! 806: 149
! 807: 150
! 808: Dafna!
! 809: I'm still alive
! 810: Hey there!!
! 811: 150
! 812: 151
! 813: Dafna!
! 814: I'm still alive
! 815: Hey there!!
! 816: 151
! 817: 152
! 818: Dafna!
! 819: I'm still alive
! 820: Hey there!!
! 821: 152
! 822: 153
! 823: Dafna!
! 824: I'm still alive
! 825: Hey there!!
! 826: 153
! 827: 154
! 828: Dafna!
! 829: I'm still alive
! 830: Hey there!!
! 831: 154
! 832: 155
! 833: Dafna!
! 834: I'm still alive
! 835: Hey there!!
! 836: 155
! 837: 156
! 838: Dafna!
! 839: I'm still alive
! 840: Hey there!!
! 841: 156
! 842: 157
! 843: Dafna!
! 844: I'm still alive
! 845: Hey there!!
! 846: 157
! 847: 158
! 848: Dafna!
! 849: I'm still alive
! 850: Hey there!!
! 851: 158
! 852: 159
! 853: Dafna!
! 854: I'm still alive
! 855: Hey there!!
! 856: 159
! 857: 160
! 858: Dafna!
! 859: I'm still alive
! 860: Hey there!!
! 861: 160
! 862: 161
! 863: Dafna!
! 864: I'm still alive
! 865: Hey there!!
! 866: 161
! 867: 162
! 868: Dafna!
! 869: I'm still alive
! 870: Hey there!!
! 871: 162
! 872: 163
! 873: Dafna!
! 874: I'm still alive
! 875: Hey there!!
! 876: 163
! 877: 164
! 878: Dafna!
! 879: I'm still alive
! 880: Hey there!!
! 881: 164
! 882: 165
! 883: Dafna!
! 884: I'm still alive
! 885: Hey there!!
! 886: 165
! 887: 166
! 888: Dafna!
! 889: I'm still alive
! 890: Hey there!!
! 891: 166
! 892: 167
! 893: Dafna!
! 894: I'm still alive
! 895: Hey there!!
! 896: 167
! 897: 168
! 898: Dafna!
! 899: I'm still alive
! 900: Hey there!!
! 901: 168
! 902: 169
! 903: Dafna!
! 904: I'm still alive
! 905: Hey there!!
! 906: 169
! 907: 170
! 908: Dafna!
! 909: I'm still alive
! 910: Hey there!!
! 911: 170
! 912: 171
! 913: Dafna!
! 914: I'm still alive
! 915: Hey there!!
! 916: 171
! 917: 172
! 918: Dafna!
! 919: I'm still alive
! 920: Hey there!!
! 921: 172
! 922: 173
! 923: Dafna!
! 924: I'm still alive
! 925: Hey there!!
! 926: 173
! 927: 174
! 928: Dafna!
! 929: I'm still alive
! 930: Hey there!!
! 931: 174
! 932: 175
! 933: Dafna!
! 934: I'm still alive
! 935: Hey there!!
! 936: 175
! 937: 176
! 938: Dafna!
! 939: I'm still alive
! 940: Hey there!!
! 941: 176
! 942: 177
! 943: Dafna!
! 944: I'm still alive
! 945: Hey there!!
! 946: 177
! 947: 178
! 948: Dafna!
! 949: I'm still alive
! 950: Hey there!!
! 951: 178
! 952: 179
! 953: Dafna!
! 954: I'm still alive
! 955: Hey there!!
! 956: 179
! 957: 180
! 958: Dafna!
! 959: I'm still alive
! 960: Hey there!!
! 961: 180
! 962: 181
! 963: Dafna!
! 964: I'm still alive
! 965: Hey there!!
! 966: 181
! 967: 182
! 968: Dafna!
! 969: I'm still alive
! 970: Hey there!!
! 971: 182
! 972: 183
! 973: Dafna!
! 974: I'm still alive
! 975: Hey there!!
! 976: 183
! 977: 184
! 978: Dafna!
! 979: I'm still alive
! 980: Hey there!!
! 981: 184
! 982: 185
! 983: Dafna!
! 984: I'm still alive
! 985: Hey there!!
! 986: 185
! 987: 186
! 988: Dafna!
! 989: I'm still alive
! 990: Hey there!!
! 991: 186
! 992: 187
! 993: Dafna!
! 994: I'm still alive
! 995: Hey there!!
! 996: 187
! 997: 188
! 998: Dafna!
! 999: I'm still alive
! 1000: Hey there!!
! 1001: 188
! 1002: 189
! 1003: Dafna!
! 1004: I'm still alive
! 1005: Hey there!!
! 1006: 189
! 1007: 190
! 1008: Dafna!
! 1009: I'm still alive
! 1010: Hey there!!
! 1011: 190
! 1012: 191
! 1013: Dafna!
! 1014: I'm still alive
! 1015: Hey there!!
! 1016: 191
! 1017: 192
! 1018: Dafna!
! 1019: I'm still alive
! 1020: Hey there!!
! 1021: 192
! 1022: 193
! 1023: Dafna!
! 1024: I'm still alive
! 1025: Hey there!!
! 1026: 193
! 1027: 194
! 1028: Dafna!
! 1029: I'm still alive
! 1030: Hey there!!
! 1031: 194
! 1032: 195
! 1033: Dafna!
! 1034: I'm still alive
! 1035: Hey there!!
! 1036: 195
! 1037: 196
! 1038: Dafna!
! 1039: I'm still alive
! 1040: Hey there!!
! 1041: 196
! 1042: 197
! 1043: Dafna!
! 1044: I'm still alive
! 1045: Hey there!!
! 1046: 197
! 1047: 198
! 1048: Dafna!
! 1049: I'm still alive
! 1050: Hey there!!
! 1051: 198
! 1052: 199
! 1053: Dafna!
! 1054: I'm still alive
! 1055: Hey there!!
! 1056: 199
! 1057: Dafna
! 1058:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>