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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
31 - 4 = ?
Subscribe to this entry?

 
 [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: Sat May 18 23:01:31 2024 UTC