aboutsummaryrefslogtreecommitdiff
path: root/php/phpgats2.php
diff options
context:
space:
mode:
Diffstat (limited to 'php/phpgats2.php')
-rw-r--r--php/phpgats2.php11
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
238function _phpgats2__write( $unknown ) 238function _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 );