# php5 class initialization

- Thread: https://externals.io/message/8638
- Original archive: https://news-web.php.net/php.internals/8638
- Started by tress@b0g.org on 2004-03-22T00:31:40+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #8638 — tress@b0g.org — 2004-03-22T00:31:40+00:00

URL: https://externals.io/message/8638#8638

The below code outputs ... a() ... when I would expect ... __construct() ...
is this a bug,
some sort of new (only seeing this occur since RC1) feature, or some option
I'm supposed to switch off ?


<?php
class a
{
function __construct()
{
echo '__construct()';
}

function a()
{
echo 'a()';
}
}

$a=new a;
?
