Ticket #6784: bug.php
| File bug.php, 314 bytes (added by , 18 years ago) |
|---|
| Line | |
|---|---|
| 1 | $test = get_option('my_test'); |
| 2 | if ( 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 |