File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -478,8 +478,7 @@ static void php_dba_update(INTERNAL_FUNCTION_PARAMETERS, int mode)
478478 if (key_ht ) {
479479 key_str = php_dba_make_key (key_ht );
480480 if (!key_str ) {
481- // TODO ValueError?
482- RETURN_FALSE ;
481+ RETURN_THROWS ();
483482 }
484483 }
485484
@@ -1003,8 +1002,7 @@ PHP_FUNCTION(dba_exists)
10031002 if (key_ht ) {
10041003 key_str = php_dba_make_key (key_ht );
10051004 if (!key_str ) {
1006- // TODO ValueError?
1007- RETURN_FALSE ;
1005+ RETURN_THROWS ();
10081006 }
10091007 }
10101008
@@ -1050,8 +1048,7 @@ PHP_FUNCTION(dba_fetch)
10501048 if (key_ht ) {
10511049 key_str = php_dba_make_key (key_ht );
10521050 if (!key_str ) {
1053- // TODO ValueError?
1054- RETURN_FALSE ;
1051+ RETURN_THROWS ();
10551052 }
10561053 }
10571054
@@ -1184,8 +1181,7 @@ PHP_FUNCTION(dba_delete)
11841181 if (key_ht ) {
11851182 key_str = php_dba_make_key (key_ht );
11861183 if (!key_str ) {
1187- // TODO ValueError?
1188- RETURN_FALSE ;
1184+ RETURN_THROWS ();
11891185 }
11901186 }
11911187
You can’t perform that action at this time.
0 commit comments