From 2743681169081de75096b1b0c9b43aaacfb50757 Mon Sep 17 00:00:00 2001 From: Laurent Laville Date: Tue, 29 Sep 2020 08:57:37 +0000 Subject: [PATCH] add fixtures missing to fix full ParameterTest and solve issue GH-274 --- tests/fixtures/references/fputcsv.18881d.php | 15 ++++++++++++ tests/fixtures/references/fputcsv.18881o.php | 16 +++++++++++++ tests/fixtures/references/imagepng.18881d.php | 8 +++++++ tests/fixtures/references/imagepng.18881o.php | 10 ++++++++ .../references/mb_eregi_replace.18881d.php | 23 +++++++++++++++++++ .../references/mb_eregi_replace.18881o.php | 23 +++++++++++++++++++ .../references/mberegi_replace.18881d.php | 23 +++++++++++++++++++ .../references/mberegi_replace.18881o.php | 23 +++++++++++++++++++ .../mysqli_escape_string.18881d.php | 6 +++++ .../mysqli_escape_string.18881o.php | 6 +++++ .../references/mysqli_query.18881d.php | 16 +++++++++++++ .../references/mysqli_query.18881o.php | 18 +++++++++++++++ .../mysqli_real_escape_string.18881d.php | 6 +++++ .../mysqli_real_escape_string.18881o.php | 6 +++++ .../references/openssl_decrypt.18881d.php | 8 +++++++ .../references/openssl_decrypt.18881o.php | 8 +++++++ .../references/openssl_encrypt.18881d.php | 13 +++++++++++ .../references/openssl_encrypt.18881o.php | 13 +++++++++++ .../references/openssl_open.18881d.php | 16 +++++++++++++ .../references/openssl_open.18881o.php | 16 +++++++++++++ .../references/openssl_seal.18881d.php | 19 +++++++++++++++ .../references/openssl_seal.18881o.php | 19 +++++++++++++++ .../references/pg_fetch_all.18881d.php | 17 ++++++++++++++ .../references/pg_fetch_all.18881o.php | 17 ++++++++++++++ .../references/pg_last_notice.18881d.php | 9 ++++++++ .../references/pg_last_notice.18881o.php | 9 ++++++++ .../fixtures/references/pg_select.18881d.php | 13 +++++++++++ .../fixtures/references/pg_select.18881o.php | 13 +++++++++++ .../session_set_save_handler.18881d.php | 10 ++++++++ .../session_set_save_handler.18881o.php | 10 ++++++++ 30 files changed, 409 insertions(+) create mode 100644 tests/fixtures/references/fputcsv.18881d.php create mode 100644 tests/fixtures/references/fputcsv.18881o.php create mode 100644 tests/fixtures/references/imagepng.18881d.php create mode 100644 tests/fixtures/references/imagepng.18881o.php create mode 100644 tests/fixtures/references/mb_eregi_replace.18881d.php create mode 100644 tests/fixtures/references/mb_eregi_replace.18881o.php create mode 100644 tests/fixtures/references/mberegi_replace.18881d.php create mode 100644 tests/fixtures/references/mberegi_replace.18881o.php create mode 100644 tests/fixtures/references/mysqli_escape_string.18881d.php create mode 100644 tests/fixtures/references/mysqli_escape_string.18881o.php create mode 100644 tests/fixtures/references/mysqli_query.18881d.php create mode 100644 tests/fixtures/references/mysqli_query.18881o.php create mode 100644 tests/fixtures/references/mysqli_real_escape_string.18881d.php create mode 100644 tests/fixtures/references/mysqli_real_escape_string.18881o.php create mode 100644 tests/fixtures/references/openssl_decrypt.18881d.php create mode 100644 tests/fixtures/references/openssl_decrypt.18881o.php create mode 100644 tests/fixtures/references/openssl_encrypt.18881d.php create mode 100644 tests/fixtures/references/openssl_encrypt.18881o.php create mode 100644 tests/fixtures/references/openssl_open.18881d.php create mode 100644 tests/fixtures/references/openssl_open.18881o.php create mode 100644 tests/fixtures/references/openssl_seal.18881d.php create mode 100644 tests/fixtures/references/openssl_seal.18881o.php create mode 100644 tests/fixtures/references/pg_fetch_all.18881d.php create mode 100644 tests/fixtures/references/pg_fetch_all.18881o.php create mode 100644 tests/fixtures/references/pg_last_notice.18881d.php create mode 100644 tests/fixtures/references/pg_last_notice.18881o.php create mode 100644 tests/fixtures/references/pg_select.18881d.php create mode 100644 tests/fixtures/references/pg_select.18881o.php create mode 100644 tests/fixtures/references/session_set_save_handler.18881d.php create mode 100644 tests/fixtures/references/session_set_save_handler.18881o.php diff --git a/tests/fixtures/references/fputcsv.18881d.php b/tests/fixtures/references/fputcsv.18881d.php new file mode 100644 index 00000000..0a8c9526 --- /dev/null +++ b/tests/fixtures/references/fputcsv.18881d.php @@ -0,0 +1,15 @@ +"i","ц"=>"c","у"=>"u","к"=>"k","е"=>"e","н"=>"n", + "г"=>"g","ш"=>"sh","щ"=>"sh","з"=>"z","х"=>"x","ъ"=>"\'", + "ф"=>"f","ы"=>"i","в"=>"v","а"=>"a","п"=>"p","р"=>"r", + "о"=>"o","л"=>"l","д"=>"d","ж"=>"zh","э"=>"ie","ё"=>"e", + "я"=>"ya","ч"=>"ch","с"=>"c","м"=>"m","и"=>"i","т"=>"t", + "ь"=>"\'","б"=>"b","ю"=>"yu", + "Й"=>"I","Ц"=>"C","У"=>"U","К"=>"K","Е"=>"E","Н"=>"N", + "Г"=>"G","Ш"=>"SH","Щ"=>"SH","З"=>"Z","Х"=>"X","Ъ"=>"\'", + "Ф"=>"F","Ы"=>"I","В"=>"V","А"=>"A","П"=>"P","Р"=>"R", + "О"=>"O","Л"=>"L","Д"=>"D","Ж"=>"ZH","Э"=>"IE","Ё"=>"E", + "Я"=>"YA","Ч"=>"CH","С"=>"C","М"=>"M","И"=>"I","Т"=>"T", + "Ь"=>"\'","Б"=>"B","Ю"=>"YU", + ); + + foreach($replacement as $i=>$u) { + $st = mb_eregi_replace($i,$u,$st); + } + return $st; +} diff --git a/tests/fixtures/references/mb_eregi_replace.18881o.php b/tests/fixtures/references/mb_eregi_replace.18881o.php new file mode 100644 index 00000000..6c86b763 --- /dev/null +++ b/tests/fixtures/references/mb_eregi_replace.18881o.php @@ -0,0 +1,23 @@ +"i","ц"=>"c","у"=>"u","к"=>"k","е"=>"e","н"=>"n", + "г"=>"g","ш"=>"sh","щ"=>"sh","з"=>"z","х"=>"x","ъ"=>"\'", + "ф"=>"f","ы"=>"i","в"=>"v","а"=>"a","п"=>"p","р"=>"r", + "о"=>"o","л"=>"l","д"=>"d","ж"=>"zh","э"=>"ie","ё"=>"e", + "я"=>"ya","ч"=>"ch","с"=>"c","м"=>"m","и"=>"i","т"=>"t", + "ь"=>"\'","б"=>"b","ю"=>"yu", + "Й"=>"I","Ц"=>"C","У"=>"U","К"=>"K","Е"=>"E","Н"=>"N", + "Г"=>"G","Ш"=>"SH","Щ"=>"SH","З"=>"Z","Х"=>"X","Ъ"=>"\'", + "Ф"=>"F","Ы"=>"I","В"=>"V","А"=>"A","П"=>"P","Р"=>"R", + "О"=>"O","Л"=>"L","Д"=>"D","Ж"=>"ZH","Э"=>"IE","Ё"=>"E", + "Я"=>"YA","Ч"=>"CH","С"=>"C","М"=>"M","И"=>"I","Т"=>"T", + "Ь"=>"\'","Б"=>"B","Ю"=>"YU", + ); + + foreach($replacement as $i=>$u) { + $st = mb_eregi_replace($i,$u,$st,"i"); + } + return $st; +} diff --git a/tests/fixtures/references/mberegi_replace.18881d.php b/tests/fixtures/references/mberegi_replace.18881d.php new file mode 100644 index 00000000..02db6c53 --- /dev/null +++ b/tests/fixtures/references/mberegi_replace.18881d.php @@ -0,0 +1,23 @@ +"i","ц"=>"c","у"=>"u","к"=>"k","е"=>"e","н"=>"n", + "г"=>"g","ш"=>"sh","щ"=>"sh","з"=>"z","х"=>"x","ъ"=>"\'", + "ф"=>"f","ы"=>"i","в"=>"v","а"=>"a","п"=>"p","р"=>"r", + "о"=>"o","л"=>"l","д"=>"d","ж"=>"zh","э"=>"ie","ё"=>"e", + "я"=>"ya","ч"=>"ch","с"=>"c","м"=>"m","и"=>"i","т"=>"t", + "ь"=>"\'","б"=>"b","ю"=>"yu", + "Й"=>"I","Ц"=>"C","У"=>"U","К"=>"K","Е"=>"E","Н"=>"N", + "Г"=>"G","Ш"=>"SH","Щ"=>"SH","З"=>"Z","Х"=>"X","Ъ"=>"\'", + "Ф"=>"F","Ы"=>"I","В"=>"V","А"=>"A","П"=>"P","Р"=>"R", + "О"=>"O","Л"=>"L","Д"=>"D","Ж"=>"ZH","Э"=>"IE","Ё"=>"E", + "Я"=>"YA","Ч"=>"CH","С"=>"C","М"=>"M","И"=>"I","Т"=>"T", + "Ь"=>"\'","Б"=>"B","Ю"=>"YU", + ); + + foreach($replacement as $i=>$u) { + $st = mberegi_replace($i,$u,$st); + } + return $st; +} diff --git a/tests/fixtures/references/mberegi_replace.18881o.php b/tests/fixtures/references/mberegi_replace.18881o.php new file mode 100644 index 00000000..75f42e97 --- /dev/null +++ b/tests/fixtures/references/mberegi_replace.18881o.php @@ -0,0 +1,23 @@ +"i","ц"=>"c","у"=>"u","к"=>"k","е"=>"e","н"=>"n", + "г"=>"g","ш"=>"sh","щ"=>"sh","з"=>"z","х"=>"x","ъ"=>"\'", + "ф"=>"f","ы"=>"i","в"=>"v","а"=>"a","п"=>"p","р"=>"r", + "о"=>"o","л"=>"l","д"=>"d","ж"=>"zh","э"=>"ie","ё"=>"e", + "я"=>"ya","ч"=>"ch","с"=>"c","м"=>"m","и"=>"i","т"=>"t", + "ь"=>"\'","б"=>"b","ю"=>"yu", + "Й"=>"I","Ц"=>"C","У"=>"U","К"=>"K","Е"=>"E","Н"=>"N", + "Г"=>"G","Ш"=>"SH","Щ"=>"SH","З"=>"Z","Х"=>"X","Ъ"=>"\'", + "Ф"=>"F","Ы"=>"I","В"=>"V","А"=>"A","П"=>"P","Р"=>"R", + "О"=>"O","Л"=>"L","Д"=>"D","Ж"=>"ZH","Э"=>"IE","Ё"=>"E", + "Я"=>"YA","Ч"=>"CH","С"=>"C","М"=>"M","И"=>"I","Т"=>"T", + "Ь"=>"\'","Б"=>"B","Ю"=>"YU", + ); + + foreach($replacement as $i=>$u) { + $st = mberegi_replace($i,$u,$st,"i"); + } + return $st; +} diff --git a/tests/fixtures/references/mysqli_escape_string.18881d.php b/tests/fixtures/references/mysqli_escape_string.18881d.php new file mode 100644 index 00000000..5a14c55f --- /dev/null +++ b/tests/fixtures/references/mysqli_escape_string.18881d.php @@ -0,0 +1,6 @@ +