# php4 style constructor

- Thread: https://externals.io/message/22340
- Original archive: https://news-web.php.net/php.internals/22340
- Started by Lukas Smith on 2006-03-11T19:16:09+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

---

## #22340 — Lukas Smith — 2006-03-11T19:16:09+00:00

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

Hi,

I am wondering why does defining a php5 style and php4 style constructor 
in a class result in an `E_STRICT` warning, where as only defining a php4 
style constructor does not?

class foo {
     function __construct() {}

     function foo() {}
}

class foo2 {
     function foo2() {}
}


I could see it make sense the other way around, or issuing an `E_STRICT` 
for both ..

regards,
Lukas
