Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Is it possible to run CI3 unit tests without sudo privileges?
Post: RE: Is it possible to run CI3 unit tests without s...

kenjis Wrote: (03-21-2023, 05:24 PM) -- ci-phpunit-test replaces some files in CI3, because CI3 app is basically untestable without modifications. All these files are located in tests/_ci_phpunit_t...
3,600 Views
10 Replies
03-22-2023, 12:41 PM
sneakyimp
    Thread: Is it possible to run CI3 unit tests without sudo privileges?
Post: RE: Is it possible to run CI3 unit tests without s...

kenjis Wrote: (03-21-2023, 04:59 PM) -- ci-phpunit-test works with release versions of CI3. If APIs change in develop branch, it probably does not work. -- Sad! Seems to me that the dev branch is ...
3,600 Views
10 Replies
03-21-2023, 05:08 PM
sneakyimp
    Thread: Is it possible to run CI3 unit tests without sudo privileges?
Post: RE: Is it possible to run CI3 unit tests without s...

kenjis Wrote: (03-21-2023, 04:09 PM) -- See https://stackoverflow.com/questions/73130126/codeigniter-3-composer-update-error-vfsstream -- I had seen a lot of posts instructing one to change various l...
3,600 Views
10 Replies
03-21-2023, 04:44 PM
sneakyimp
    Thread: Is it possible to run CI3 unit tests without sudo privileges?
Post: RE: Is it possible to run CI3 unit tests without s...

kenjis Wrote: (03-07-2023, 06:06 PM) -- See https://github.com/kenjis/ci-phpunit-test -- Thank you, @kenjis, for this suggestion. I'm finally getting around to trying it. I note that the steps y...
3,600 Views
10 Replies
03-21-2023, 02:31 PM
sneakyimp
    Thread: Is it possible to run CI3 unit tests without sudo privileges?
Post: Is it possible to run CI3 unit tests without sudo ...

I don't know how extensively unit testing was used in CI3, but I was reading the instructions in the tests/README.md file (https://github.com/bcit-ci/CodeIgniter/blob/develop/tests/README.md) and they...
3,600 Views
10 Replies
02-28-2023, 05:13 PM
sneakyimp
    Thread: working on php 8.2 compat for CI3, phpstan errors different on macos
Post: RE: working on php 8.2 compat for CI3, phpstan err...

I have not been able to isolate why the number of errors is different on MacOS versus Ubuntu, but I made a small change to system/database/DB.php (https://github.com/sneakyimp/CodeIgniter/blob/develop...
2,192 Views
1 Replies
02-28-2023, 05:10 PM
sneakyimp
    Thread: working on php 8.2 compat for CI3, phpstan errors different on macos
Post: working on php 8.2 compat for CI3, phpstan errors ...

Because CI4 is such a huge leap from CI3, I am trying to expedite the work to make CI3 compatible with PHP 8.2. This is mostly about fixing dynamically assigned class properties, which were deprecated...
2,192 Views
1 Replies
02-24-2023, 11:05 AM
sneakyimp
    Thread: how to throw exception that returns 400 HTTP response code
Post: RE: how to throw exception that returns 400 HTTP r...

kenjis Wrote: (02-18-2023, 06:40 PM) -- Implement an Exception class that implements HTTPExceptionInterface, and set the error code 400. And throw it. I think this is not good, but try: PHP Cod...
3,662 Views
3 Replies
02-21-2023, 04:35 PM
sneakyimp
    Thread: New more Secure Auto Routing
Post: RE: New more Secure Auto Routing

kenjis Wrote: (02-08-2023, 08:57 PM) -- The controller filters being bypassed is the most obvious risk and the most significant. -- As I stated in my post, I don't use filters explicitly, it is helpf...
5,937 Views
10 Replies
02-20-2023, 04:49 PM
sneakyimp
    Thread: how to throw exception that returns 400 HTTP response code
Post: how to throw exception that returns 400 HTTP respo...

I have some Codeigniter 4 projects where I extend the base controller with my own base controller. I have a function in this base controller that I call from my various autorouted controller methods ...
3,662 Views
3 Replies
02-18-2023, 03:35 PM
sneakyimp
    Thread: Let's make auto routes disable
Post: RE: Let's make auto routes disable

kenjis Wrote: (03-25-2022, 04:15 AM) -- Auto routing is very dangerous, because it is very difficult to know all routes for human beings. That is some unexpected routes to developers are automatical...
16,225 Views
24 Replies
02-08-2023, 06:50 PM
sneakyimp
    Thread: New more Secure Auto Routing
Post: RE: New more Secure Auto Routing

I am trying to upgrade some CI4 websites from 4.1 to 4.3 and was startled to see that _remap was removed and that instead of index we must define getIndex method. This requires extensive changes to my...
5,937 Views
10 Replies
02-08-2023, 06:32 PM
sneakyimp
    Thread: Deprecated dynamic properties in PHP 8.2
Post: RE: Deprecated dynamic properties in PHP 8.2

ubeljan Wrote: (01-19-2023, 06:53 AM) -- Codeigniter 3 and PHP 8.2To get rid of the error messages you have to change some variables in the system map. With this changes I could access the database ...
24,179 Views
18 Replies
01-19-2023, 02:19 PM
sneakyimp
    Thread: Deprecated dynamic properties in PHP 8.2
Post: RE: Deprecated dynamic properties in PHP 8.2

Is there any plan to fix this in CI3? From what I recall, CI uses dynamically assigned properties rampantly. I'm trying to upgrade a site running on PHP 7 (which is EOL as of 2022/11/28 (https://ww...
24,179 Views
18 Replies
01-17-2023, 03:58 PM
sneakyimp
    Thread: problems passing base64_encoded value
Post: RE: problems passing base64_encoded value

craig Wrote: (03-25-2021, 02:50 AM) -- I would use the Text helper for this purpose to avoid URL issues with Base64; it uses bin2hex() on the result of random_bytes() instead of base64_encode(). ...
1,762 Views
2 Replies
03-26-2021, 03:24 PM
sneakyimp
    Thread: problems passing base64_encoded value
Post: problems passing base64_encoded value

I'm trying to pass a password reset token as part of a CI4 url --it's 32 random bytes encoded using base64_encode. Suppose the token was generated this way: PHP Code: -- // returns LGziiALPuVrzIru...
1,762 Views
2 Replies
03-24-2021, 09:10 PM
sneakyimp
    Thread: source code says Request::getMethod() is deprecated, what to use?
Post: RE: source code says Request::getMethod() is depre...

mlurie Wrote: (02-25-2021, 06:01 PM) -- The method is not deprecated, the optional [$upper] parameter is deprecated.  -- Perhaps someone needs to change the comments and remove that @deprecated bit t...
14,569 Views
15 Replies
02-25-2021, 06:06 PM
sneakyimp
    Thread: source code says Request::getMethod() is deprecated, what to use?
Post: source code says Request::getMethod() is deprecate...

The source code (https://github.com/codeigniter4/CodeIgniter4/blob/403be20d013199babf6fe439c305437b5b229b4f/system/HTTP/Request.php#L85) says Request::getMethod() is deprecated. What should we use ins...
14,569 Views
15 Replies
02-25-2021, 05:42 PM
sneakyimp
    Thread: what does fourth parameter ($escape) actually do for $builder->like?
Post: what does fourth parameter ($escape) actually do f...

I was expecting that the fourth parameter for the Builder::like function would cause special characters in the $match parameter to be escaped. I was quite surprised to see that supplying FALSE for thi...
976 Views
1 Replies
02-24-2021, 05:31 PM
sneakyimp
    Thread: CI4 doesn't support hyphens/dashes in controller subdirectories
Post: RE: CI4 doesn't support hyphens/dashes in controll...

I have submitted pull request #4307 (https://github.com/codeigniter4/CodeIgniter4/pull/4307) to fix this issue.
5,268 Views
8 Replies
02-18-2021, 11:05 PM
sneakyimp

Theme © iAndrew 2016 - Forum software by © MyBB