1--TEST-- 2Observer: Basic observability of functions only (with run-time swapping) 3--EXTENSIONS-- 4zend_test 5--INI-- 6zend_test.observer.enabled=1 7zend_test.observer.show_output=1 8zend_test.observer.observe_function_names=foo 9--FILE-- 10<?php 11function foo() 12{ 13 echo 'Foo' . PHP_EOL; 14} 15 16function bar() 17{ 18 echo 'Bar' . PHP_EOL; 19} 20 21foo(); 22bar(); 23 24ini_set("zend_test.observer.observe_function_names", "bar"); 25 26foo(); 27bar(); 28 29?> 30--EXPECTF-- 31<!-- init '%s%eobserver_basic_06.php' --> 32<!-- init foo() --> 33<foo> 34Foo 35</foo> 36<!-- init bar() --> 37Bar 38<!-- init ini_set() --> 39Foo 40<bar> 41Bar 42</bar> 43