1--TEST--
2Observer: Basic eval observability
3--SKIPIF--
4<?php if (!extension_loaded('zend-test')) die('skip: zend-test extension required'); ?>
5--INI--
6zend_test.observer.enabled=1
7zend_test.observer.observe_all=1
8--FILE--
9<?php
10echo eval("return 'Foo eval' . PHP_EOL;");
11echo 'DONE' . PHP_EOL;
12?>
13--EXPECTF--
14<!-- init '%s%eobserver_eval_%d.php' -->
15<file '%s%eobserver_eval_%d.php'>
16  <!-- init '%s%eobserver_eval_%d.php(%d) : eval()'d code' -->
17  <file '%s%eobserver_eval_%d.php(%d) : eval()'d code'>
18  </file '%s%eobserver_eval_%d.php(%d) : eval()'d code'>
19Foo eval
20DONE
21</file '%s%eobserver_eval_%d.php'>
22