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

 ID:                 64217
 Updated by:         johan...@php.net
 Reported by:        jana dot sriramulu at gmail dot com
 Summary:            Method Declared with one parameter, Called with Two
                     parameter , No warnings.
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            Class/Object related
 Operating System:   Windows xp
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This is documented behavior and a feature which won't be changed in the 
foreseeable future.

See also func_get_args().


Previous Comments:
------------------------------------------------------------------------
[2013-02-15 13:46:57] jana dot sriramulu at gmail dot com

Description:
------------
<?php
// PHP Version 5.3.3
ini_set('display_errors', '1');
error_reporting(-1);

class a {
    
    public function func1($a)
    {
        echo "<br>A = " . $a;
    }
    
    public function func2()
    {
        $this->func1(5, 6);
    }
    
}


$c = new a();
$c->func2();

Test script:
---------------
<?php
// PHP Version 5.3.3
ini_set('display_errors', '1');
error_reporting(-1);

class a {
    
    public function func1($a)
    {
        echo "<br>A = " . $a;
    }
    
    public function func2()
    {
        $this->func1(5, 6);
    }
    
}


$c = new a();
$c->func2();

Expected result:
----------------
Fatal Error / Warning / Notices.

Actual result:
--------------
No Warnings/ Notices/ Fatal error.


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



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

Reply via email to