<?php
class Foo
{
function __construct()
{
echo 'a';
$this->Foo();
}
function Foo()
{
echo 'b';
}
}
class Bar extends Foo
{
function Bar() {
echo 'c';
$this->Foo();
}
}
new Foo();
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
ab
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Bar has a deprecated constructor in /in/UsEFJ on line 17
ab