From 7822d8f50fd28a1ec158d793757f47a021e9b50b Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Catoire Date: Tue, 21 Apr 2026 09:27:40 +0200 Subject: [PATCH 1/2] [Sync EN] quickhash: Specify correct return type and values for set() Fixes #2735 --- reference/quickhash/quickhashinthash/set.xml | 23 ++++++++++---------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/reference/quickhash/quickhashinthash/set.xml b/reference/quickhash/quickhashinthash/set.xml index db8792029c..2e3025bfc8 100644 --- a/reference/quickhash/quickhashinthash/set.xml +++ b/reference/quickhash/quickhashinthash/set.xml @@ -1,5 +1,5 @@ - + @@ -11,7 +11,7 @@ &reftitle.description; - public boolQuickHashIntHash::set + public intQuickHashIntHash::set intkey intvalue @@ -50,7 +50,7 @@ &reftitle.returnvalues; - 2 si l'entrée a été trouvée et mise à jour, 1 si l'entrée a été nouvellement ajoutée ou 0 + 2 si l'entrée a été nouvellement ajoutée, 1 si l'entrée a été trouvée et mise à jour, ou 0 s'il y a eu une erreur. @@ -62,17 +62,17 @@ Add\n"; -var_dump( $hash->get( 46692 ) ); -var_dump( $hash->set( 46692, 16091 ) ); -var_dump( $hash->get( 46692 ) ); +var_dump($hash->get(46692)); +var_dump($hash->set(46692, 16091)); +var_dump($hash->get(46692)); -echo "Set->Update\n"; -var_dump( $hash->set( 46692, 29906 ) ); -var_dump( $hash->get( 46692 ) ); -?> +echo "\n\nSet->Update\n"; +var_dump($hash->set(46692, 29906)); +var_dump($hash->get(46692)); ]]> &example.outputs.similar; @@ -82,6 +82,7 @@ Set->Add bool(false) int(2) int(16091) + Set->Update int(1) int(29906) From 3e4d9d966ed75ae349fe90107d55a6e853275277 Mon Sep 17 00:00:00 2001 From: Louis-Arnaud Date: Tue, 21 Apr 2026 09:28:25 +0200 Subject: [PATCH 2/2] Apply suggestion from @lacatoire --- reference/quickhash/quickhashinthash/set.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/quickhash/quickhashinthash/set.xml b/reference/quickhash/quickhashinthash/set.xml index 2e3025bfc8..5c2ba4d7bd 100644 --- a/reference/quickhash/quickhashinthash/set.xml +++ b/reference/quickhash/quickhashinthash/set.xml @@ -1,5 +1,5 @@ - +