mirror of
https://github.com/php/php-src.git
synced 2026-03-27 09:42:22 +01:00
Fixed mess between BOOL and SUCCESS/FAILURE
This commit is contained in:
@@ -168,7 +168,7 @@ PDO_API int php_pdo_register_driver(const pdo_driver_t *driver) /* {{{ */
|
||||
return FAILURE; /* NOTREACHED */
|
||||
}
|
||||
|
||||
return zend_hash_str_add_ptr(&pdo_driver_hash, (char*)driver->driver_name, driver->driver_name_len, (void*)driver) != NULL;
|
||||
return zend_hash_str_add_ptr(&pdo_driver_hash, (char*)driver->driver_name, driver->driver_name_len, (void*)driver) != NULL ? SUCCESS : FAILURE;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user