Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > php4 style constructor
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 24th May 06:34
lsmith
External User
 
Posts: 1
Default php4 style constructor



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

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666