File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang / 018.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    1: --TEST--
    2: eval() test
    3: --FILE--
    4: <?php 
    5: 
    6: error_reporting(0);
    7: 
    8: $message = "echo \"hey\n\";";
    9: 
   10: for ($i=0; $i<10; $i++) {
   11:   eval($message);
   12:   echo $i."\n";
   13: }
   14: --EXPECT--
   15: hey
   16: 0
   17: hey
   18: 1
   19: hey
   20: 2
   21: hey
   22: 3
   23: hey
   24: 4
   25: hey
   26: 5
   27: hey
   28: 6
   29: hey
   30: 7
   31: hey
   32: 8
   33: hey
   34: 9

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>