python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why is PHP 8.1.1 not loading PDO driver using Apache 2.4.52 even the modules are loaded on PHP CLI?
Why is PHP 8.1.1 not loading PDO driver using Apache 2.4.52 even the modules are loaded on PHP CLI?
I am running a window 11 64bit system
I tried Apache/2.4.52 (Win64) (Apache 2.4 VS16) and Apache 2.4...
Mehrwarz
Votes: 0
Answers: 2
PHP fibers and memory
PHP loads classes into memory and never frees them as far as I am aware. This can be problematic when using attributes.
I am wondering whether fibers could be used. How independent is a fiber? Ultimat...

chx
Votes: 0
Answers: 2
PHP public readonly properties vs private field with getter
PHP 8.1 introduces readonly class properties. For example, before I would write:
class User
{
public string $name;
public function __construct(string $name) {
$this->name = $name;
...

Duncan Lukkenaer
Votes: 0
Answers: 1
Check if PHP enum contains case, like try() method on basic (not backed) enumerations
I have basic enum
enum Fruit
{
case APPLE;
case ORANGE;
case BANANA;
}
and some function that uses typing with that enum:
function eatFruit (Fruit $fruit)
{
// do stuff
}
and variable with u...
norr
Votes: 0
Answers: 3