From: localhost dot 80 at gmail dot com
Operating system: Mac OSX 10.4 Tiger
PHP version: 5.0.4
PHP Bug Type: Scripting Engine problem
Bug description: Inovoking Parent Constructor Does Work
Description:
------------
Every Time a create a class and use a _construct()
to pass arguments it does not accept any
Reproduce code:
---------------
<?php
class book{
private $title;
private $isbn;
private $copies;
public function _construct($isbn){
$this->setIsbn($isbn);
$this->getTitle();
$this->getNumberCopies();
}
public function setIsbn($isbn){
$this->isbn = $isbn;
}
public function getTitle(){
$this->title = "Practical Python";
print("Title: " . $this->title . "<br />");
}
public function getNumberCopies(){
$this->copies = "5";
print("Number copies available: " . $this->copies . "<br />");
}
}
$book = new book("1590590066");
?>
Expected result:
----------------
Nothing
Actual result:
--------------
nothing
--
Edit bug report at http://bugs.php.net/?id=33798&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33798&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33798&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33798&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33798&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33798&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33798&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33798&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33798&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33798&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33798&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33798&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33798&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33798&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33798&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33798&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33798&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33798&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33798&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33798&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33798&r=mysqlcfg