File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,11 @@ static bool php_phongo_objectid_init(php_phongo_objectid_t *intern)
6262
6363/* Initialize the object from a hex string and return whether it was successful.
6464 * An exception will be thrown on error. */
65- static bool php_phongo_objectid_init_from_hex_string (php_phongo_objectid_t * intern , const char * oid , phongo_zpp_char_len oid_len TSRMLS_DC )
65+ static bool php_phongo_objectid_init_from_hex_string (php_phongo_objectid_t * intern , const char * hex , phongo_zpp_char_len hex_len TSRMLS_DC )
6666{
67- char * tid = zend_str_tolower_dup (oid , oid_len );
67+ char * tid = zend_str_tolower_dup (hex , hex_len );
6868
69- if (bson_oid_is_valid (tid , oid_len )) {
69+ if (bson_oid_is_valid (tid , hex_len )) {
7070 bson_oid_t oid ;
7171
7272 bson_oid_init_from_string (& oid , tid );
@@ -77,7 +77,7 @@ static bool php_phongo_objectid_init_from_hex_string(php_phongo_objectid_t *inte
7777 return true;
7878 }
7979
80- phongo_throw_exception (PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC , "Error parsing ObjectID string: %s" , oid );
80+ phongo_throw_exception (PHONGO_ERROR_INVALID_ARGUMENT TSRMLS_CC , "Error parsing ObjectID string: %s" , hex );
8181
8282 efree (tid );
8383 return false;
You can’t perform that action at this time.
0 commit comments