Annotation of embedaddon/php/ext/standard/tests/array/extract_variation1.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test extract() function (variation 1) 
                      3: --FILE--
                      4: <?php
                      5: 
                      6: $val = 4;
                      7: $str = "John";
                      8: 
                      9: debug_zval_dump($val);
                     10: debug_zval_dump($str);
                     11: 
                     12: /* Extracting Global Variables */
                     13: var_dump(extract($GLOBALS, EXTR_REFS));
                     14: debug_zval_dump($val);
                     15: debug_zval_dump($str);
                     16: 
                     17: echo "\nDone";
                     18: ?>
                     19: 
                     20: --EXPECTF--
                     21: long(4) refcount(2)
                     22: string(4) "John" refcount(2)
                     23: int(%d)
                     24: long(4) refcount(2)
                     25: string(4) "John" refcount(2)
                     26: 
                     27: Done

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