diff options
author | Mike Buland <eichlan@xagasoft.com> | 2017-10-19 22:48:40 -0600 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2017-10-19 22:48:40 -0600 |
commit | 78a6b37b5cef55dc6d0f7120ff2a1f914375fe70 (patch) | |
tree | d59222d22d96318948b52329e2ee4ec0e0745d1a /php | |
parent | 4eb8c125754c1c1e2b90547abdf255aee7e4eb04 (diff) | |
parent | 19223f8527ef1c0d36cf8b40b9f8d093ea702ca5 (diff) | |
download | libgats-78a6b37b5cef55dc6d0f7120ff2a1f914375fe70.tar.gz libgats-78a6b37b5cef55dc6d0f7120ff2a1f914375fe70.tar.bz2 libgats-78a6b37b5cef55dc6d0f7120ff2a1f914375fe70.tar.xz libgats-78a6b37b5cef55dc6d0f7120ff2a1f914375fe70.zip |
Merge branch 'master' of xagasoft.com:git/libgats
Diffstat (limited to 'php')
-rw-r--r-- | php/phpgats2.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/php/phpgats2.php b/php/phpgats2.php index effaa78..f97bd89 100644 --- a/php/phpgats2.php +++ b/php/phpgats2.php | |||
@@ -237,7 +237,11 @@ function _phpgats2_writeDictionary( $d ) | |||
237 | 237 | ||
238 | function _phpgats2__write( $unknown ) | 238 | function _phpgats2__write( $unknown ) |
239 | { | 239 | { |
240 | if( is_bool( $unknown ) ) | 240 | if( is_null( $unknown ) ) |
241 | { | ||
242 | return 'n'; | ||
243 | } | ||
244 | else if( is_bool( $unknown ) ) | ||
241 | { | 245 | { |
242 | return _phpgats2_writeBoolean( $unknown ); | 246 | return _phpgats2_writeBoolean( $unknown ); |
243 | } | 247 | } |
@@ -462,7 +466,10 @@ function _phpgats2_parseMaster( $str_data, &$offset, $dbg=0 ) | |||
462 | case '0': | 466 | case '0': |
463 | //echo "false\n"; | 467 | //echo "false\n"; |
464 | return false; | 468 | return false; |
465 | break; | 469 | break; |
470 | case 'n': | ||
471 | return null; | ||
472 | break; | ||
466 | default: | 473 | default: |
467 | //echo "str:"; | 474 | //echo "str:"; |
468 | $obj = _phpgats2_parseString( $str_data, $offset, $dbg ); | 475 | $obj = _phpgats2_parseString( $str_data, $offset, $dbg ); |