WordPress.org

Make WordPress Core

Ticket #6784: bug.php

File bug.php, 314 bytes (added by Olav Kolbu, 13 years ago)

Short php file to reproduce the bug

Line 
1$test = get_option('my_test');
2if ( is_bool($test) ) {
3   print "1st time<br>";
4   $test = array();
5   $test[] = 'ي';
6   update_option('my_test', $test);
7   print 'Arabic : '.gettype(get_option('my_test')).'<br>';
8} else {
9   print "2nd time<br>";
10   print "got a ".gettype($test)." which looks like '$test'";
11}
12