Edit report at https://bugs.php.net/bug.php?id=55719&edit=1

 ID:                 55719
 Updated by:         larue...@php.net
 Reported by:        larue...@php.net
 Summary:            Argument restriction should come with a more
                     specific error message
 Status:             Open
 Type:               Feature/Change Request
 Package:            Unknown/Other Function
 PHP Version:        trunk-SVN-2011-09-18 (SVN)
 Block user comment: N
 Private report:     N

 New Comment:

and anyway, I really think a FATAL ERROR(for abstract class) is too radical, a 
STRICT or DEPREACTE warning is better.


Previous Comments:
------------------------------------------------------------------------
[2011-09-18 13:11:17] larue...@php.net

Description:
------------
as discussed in ML,
now PHP will trigger a FATAL or STRICT warning for incompatible arguments 
between a class and a subclass method,

Test script:
---------------
<?php  
  class XSoapClient extends SoapClient {
        function __doRequest($request, $location, $action, $version) {
        }   
    }  

Expected result:
----------------
Declaration of XSoapClient::__doRequest() should be compatible with 
SoapClient::__doRequest($request, $location, $action, $version, $one_way = NULL)

Actual result:
--------------
Declaration of XSoapClient::__doRequest() should be compatible with that of 
SoapClient::__doRequest() 


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55719&edit=1

Reply via email to