php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9152 undefined function not signaled
Submitted: 2001-02-07 11:24 UTC Modified: 2001-03-06 08:23 UTC
From: carmelo at akooe dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.4pl1 OS: suse7.0
Private report: No CVE-ID: None
 [2001-02-07 11:24 UTC] carmelo at akooe dot com
this construct doesn't yeld an error.
it should no???
<?php

class titi {
}

$ti=new titi( $p1,$p2,a());

?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-06 08:23 UTC] stas@php.net
That's not a bug, that's a feature. Since you have no
constructor, you need no arguments for it. Since you do not
need them, they are never evaluaed. So, a() call is never
called, and since functions in PHP are runtime-bound, it
never needs to discover that a() does not exist.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC