1--TEST--
2Test OnUpdateStr and OnUpdateStrNotEmpty validators.
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7echo 'str_test INI', PHP_EOL;
8var_dump(ini_get("zend_test.str_test"));
9var_dump(ini_set("zend_test.str_test", "Test"));
10var_dump(ini_get("zend_test.str_test"));
11var_dump(ini_set("zend_test.str_test", ""));
12var_dump(ini_get("zend_test.str_test"));
13
14echo 'not_empty_str_test INI', PHP_EOL;
15var_dump(ini_get("zend_test.not_empty_str_test"));
16var_dump(ini_set("zend_test.not_empty_str_test", "Test"));
17var_dump(ini_get("zend_test.not_empty_str_test"));
18var_dump(ini_set("zend_test.not_empty_str_test", ""));
19var_dump(ini_get("zend_test.not_empty_str_test"));
20?>
21--EXPECT--
22str_test INI
23string(0) ""
24string(0) ""
25string(4) "Test"
26string(4) "Test"
27string(0) ""
28not_empty_str_test INI
29string(3) "val"
30string(3) "val"
31string(4) "Test"
32bool(false)
33string(4) "Test"
34