Changeset 319 for trunk/ext

Show
Ignore:
Timestamp:
06/02/2008 05:57:42 (6 months ago)
Author:
indeyets
Message:

proper check for type

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ext/php/phpext.c

    r318 r319  
    415415                case syck_seq_kind: 
    416416                { 
    417                         if (strncmp(n->type_id, "php/array::", 11) == 0) { 
     417                        if (NULL != n->type_id && strncmp(n->type_id, "php/array::", 11) == 0) { 
    418418                                /* some class which implements ArrayAccess */ 
    419419                                size_t i; 
     
    485485                case syck_map_kind: 
    486486                { 
    487                         if (strncmp(n->type_id, "php/hash::", 10) == 0) { 
     487                        if (NULL != n->type_id && strncmp(n->type_id, "php/hash::", 10) == 0) { 
    488488                                /* some class which implements ArrayAccess */ 
    489489                                SYMID oid;