Package: php-codeigniter-framework / 3.1.13+dfsg1-6

Metadata

Package Version Patches format
php-codeigniter-framework 3.1.13+dfsg1-6 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
01 debian log.patch | (download)

application/config/config.php | 3 2 + 1 - 0 !
system/core/Log.php | 2 1 + 1 - 0 !
2 files changed, 3 insertions(+), 2 deletions(-)

 set log path out of web dir
02 debian system location.patch | (download)

index.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 define location of system directory
02 debian application location.patch | (download)

index.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 define location of application directory
11 debian use builtin sphinx_rtd_theme.patch | (download)

user_guide_src/source/conf.py | 8 5 + 3 - 0 !
1 file changed, 5 insertions(+), 3 deletions(-)

 use debian's built-in sphinx-rtd-theme
 Permits one to get rid of the copy shipped by upstream
 and fix some lintian issues.
10 php81_Fixes_XML RPC_compatibility_with_PHP_8.patch | (download)

system/libraries/Xmlrpc.php | 161 77 + 84 - 0 !
system/libraries/Xmlrpcs.php | 13 6 + 7 - 0 !
2 files changed, 83 insertions(+), 91 deletions(-)

 [patch 1/2] fixes xml-rpc compatibility with php 8
10 php82_support.patch | (download)

system/core/Controller.php | 1 1 + 0 - 0 !
system/core/Loader.php | 1 1 + 0 - 0 !
system/core/Router.php | 7 7 + 0 - 0 !
system/core/URI.php | 7 7 + 0 - 0 !
system/database/DB_driver.php | 1 1 + 0 - 0 !
system/libraries/Driver.php | 1 1 + 0 - 0 !
system/libraries/Image_lib.php | 8 8 + 0 - 0 !
system/libraries/Table.php | 4 2 + 2 - 0 !
8 files changed, 28 insertions(+), 2 deletions(-)

 [patch] adding php 8.2 support


10 php82_support part3 fix_string_interpolation.patch | (download)

system/database/DB_query_builder.php | 6 3 + 3 - 0 !
system/libraries/Xmlrpc.php | 2 1 + 1 - 0 !
system/libraries/Xmlrpcs.php | 4 2 + 2 - 0 !
3 files changed, 6 insertions(+), 6 deletions(-)

 [patch] fixes #6149 remove deprecated variable variables / string
 interpolation in variable names
11 php84_support_E_STRICT.patch | (download)

index.php | 6 5 + 1 - 0 !
system/core/Exceptions.php | 6 5 + 1 - 0 !
tests/Bootstrap.php | 7 6 + 1 - 0 !
3 files changed, 16 insertions(+), 3 deletions(-)

 remove deprecation notice on php8.4 for e_strict
From 831108645a2b68150471035a7e5ced5086da2c51 Mon Sep 17 00:00:00 2001
11 php84_support_session.sid_length_INI_setting_is_deprecated.patch | (download)

system/libraries/Session/Session.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 skip deprecated setting of session.sid_length on php8.4
 On php 8.4, this will use the default values of php 8.4
 as per the recommended way to do it.
Bug: https://github.com/bcit-ci/CodeIgniter/issues/6300
11 php84_support_fix_implicit_nullable_type_error.patch | (download)

system/libraries/Encryption.php | 8 4 + 4 - 0 !
1 file changed, 4 insertions(+), 4 deletions(-)

 [patch] fixes a few more php 8.4 compatibility issues.
11 php84_xmlrpc.patch | (download)

system/libraries/Xmlrpc.php | 5 2 + 3 - 0 !
system/libraries/Xmlrpcs.php | 7 3 + 4 - 0 !
2 files changed, 5 insertions(+), 7 deletions(-)

 [patch] fix php 8.4 deprecated warnings github issue 6306
20 reinit_static_variable_when_switching_db_in_tests.patch | (download)

system/database/DB_driver.php | 8 8 + 0 - 0 !
1 file changed, 8 insertions(+)

 reinitialize static variable when switching database
 In the tests, we run each test on the three supported DBMS (database systems)
 namely pgsql, mysql & sqlite3.
 .
 Codeigniter stores the escape characters in a static variable which never
 changes even when switching driver and hence use another DBMS. So it would
 use the escape character of the 1st DBMS with all subsequent engines.
 .
 This will reset the static variable when in testing environment and when
 the DBMS changed.
10 php82_support part2.patch | (download)

system/database/drivers/postgre/postgre_forge.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] fixes the usage of `_create_table_if` in postgres forge class


tests/01 debian unit_tests.patch | (download)

tests/Bootstrap.php | 14 11 + 3 - 0 !
tests/codeigniter/helpers/security_helper_test.php | 2 1 + 1 - 0 !
tests/mocks/ci_testcase.php | 6 3 + 3 - 0 !
3 files changed, 15 insertions(+), 7 deletions(-)

 adapt unit tests so that they can run on debian systems
tests/02 unit_test encryption.patch | (download)

tests/codeigniter/libraries/Encryption_test.php | 6 5 + 1 - 0 !
1 file changed, 5 insertions(+), 1 deletion(-)

 adapt unit tests so that they can run with openssl3
 With OpenSSL3, some ciphers are not available anymore when the legacy
 provider is not enabled. Especially, 'des' cypher is provided by the legacy
 provider in OpenSSL3, and the legacy provider is not enabled by default.
 So change the cypher to "tripledes" instead of "des".
 .
 When running OpenSSL < 3, use the old behavior
tests/03 unit_test log.patch | (download)

tests/codeigniter/core/Log_test.php | 6 3 + 3 - 0 !
tests/mocks/ci_testcase.php | 2 2 + 0 - 0 !
2 files changed, 5 insertions(+), 3 deletions(-)

 [patch] fixes #6174

Improves Log_test::test_configuration() test

tests/04 unit_test security regex.patch | (download)

tests/codeigniter/core/Security_test.php | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 [patch] adapt unit tests so as not to fail with phpunit 8.5

When the phpunit tests are run with phpunit 8.5, they will fail because
the test would call assertMatchesRegularExpression which doesn't exists in
that version.

So check the existence of the method instead of checking the class
'PHPUnit_Runner_Version'.

tests/0001 Fix phpunit 9 deprecation warning.patch | (download)

tests/phpunit.xml | 36 13 + 23 - 0 !
1 file changed, 13 insertions(+), 23 deletions(-)

 [patch 1/8] fix phpunit 9 deprecation warning

 Output was produced with:
 .
   phpunit --migrate-configuration
 .
 Error was:
 .
 Warning:       Your XML configuration validates against a deprecated schema.
 Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

tests/10 php81_Add_tests_for_XML RPC_compatibility_with_PHP_8.patch | (download)

tests/codeigniter/libraries/Xmlrpc_test.php | 130 130 + 0 - 0 !
tests/mocks/autoloader.php | 1 1 + 0 - 0 !
tests/mocks/libraries/xmlrpc.php | 33 33 + 0 - 0 !
tests/mocks/libraries/xmlrpcs.php | 23 23 + 0 - 0 !
4 files changed, 187 insertions(+)

 [patch] adds phpunit test for xml-rpc lib


tests/10 fix patch php81_Add_tests_for_XML RPC_compatibility_with_PHP_8.patch | (download)

tests/codeigniter/libraries/Xmlrpc_test.php | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
tests/10 unit_tests php82.patch | (download)

tests/codeigniter/core/Loader_test.php | 2 1 + 1 - 0 !
tests/codeigniter/libraries/Upload_test.php | 7 4 + 3 - 0 !
tests/mocks/ci_testcase.php | 1 1 + 0 - 0 !
3 files changed, 6 insertions(+), 4 deletions(-)

 [patch] adding php 8.2 support


tests/11 php84_xmlrpc.patch | (download)

tests/mocks/libraries/xmlrpcs.php | 28 28 + 0 - 0 !
1 file changed, 28 insertions(+)

 [patch] fix php 8.4 deprecated warnings github issue 6306
tests/0004 fix error with phpunit10 cannot override runBare.patch | (download)

tests/mocks/ci_testcase.php | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 [patch 4/8] fix error with phpunit10 (cannot override runbare())

 Fatal error: Cannot override final method PHPUnit\Framework\TestCase::runBare() in tests/mocks/ci_testcase.php on line 351

tests/0005 fix error with phpunit10 undefined method setMethods.patch | (download)

tests/codeigniter/core/Loader_test.php | 4 2 + 2 - 0 !
tests/codeigniter/helpers/language_helper_test.php | 2 1 + 1 - 0 !
tests/codeigniter/helpers/number_helper_test.php | 2 1 + 1 - 0 !
tests/codeigniter/libraries/Calendar_test.php | 4 2 + 2 - 0 !
tests/codeigniter/libraries/Driver_test.php | 2 1 + 1 - 0 !
tests/codeigniter/libraries/Form_validation_test.php | 4 2 + 2 - 0 !
tests/codeigniter/libraries/Upload_test.php | 2 1 + 1 - 0 !
7 files changed, 10 insertions(+), 10 deletions(-)

 [patch 5/8] fix error with phpunit10 (undefined method setmethods())

 Was removed in phpunit10

 Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()

tests/0006 fix error with phpunit10 security_helper_test class .patch | (download)

tests/codeigniter/helpers/security_helper_test.php | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 [patch 6/8] fix error with phpunit10 (security_helper_test class not
 found)

 1) Class security_helper_test cannot be found in tests/codeigniter/helpers/security_helper_test.php

tests/0008 fix error with phpunit10 assertObjectHasAttribute de.patch | (download)

tests/codeigniter/core/Loader_test.php | 36 22 + 14 - 0 !
tests/codeigniter/libraries/Driver_test.php | 17 13 + 4 - 0 !
2 files changed, 35 insertions(+), 18 deletions(-)

 [patch 8/8] fix error with phpunit10 (assertobjecthasattribute
 deprecated)


tests/20 fix ftbfs with php8.3 update expectation for highlight code.patch | (download)

tests/codeigniter/helpers/text_helper_test.php | 9 8 + 1 - 0 !
1 file changed, 8 insertions(+), 1 deletion(-)

 [patch] test: update expectation for highlight code in php 8.3