1--TEST--
2Observer: Retvals are observable that are: IS_CV, IS_UNDEF
3--EXTENSIONS--
4zend_test
5--INI--
6zend_test.observer.enabled=1
7zend_test.observer.show_output=1
8zend_test.observer.observe_all=1
9zend_test.observer.show_return_value=1
10--FILE--
11<?php
12function foo() {
13    return $i_do_not_exist; // IS_CV && IS_UNDEF
14}
15
16$res = foo(); // Retval used
17foo(); // Retval unused
18
19echo 'Done' . PHP_EOL;
20?>
21--EXPECTF--
22<!-- init '%s%eobserver_retval_%d.php' -->
23<file '%s%eobserver_retval_%d.php'>
24  <!-- init foo() -->
25  <foo>
26
27Warning: Undefined variable $i_do_not_exist in %s on line %d
28  </foo:NULL>
29  <foo>
30
31Warning: Undefined variable $i_do_not_exist in %s on line %d
32  </foo:NULL>
33Done
34</file '%s%eobserver_retval_%d.php'>
35