Doc #65261 [NEW]: documentation needs updating
| From: | knight_adi2000 at yahoo dot com | Date: | Sun, 14 Jul 2013 11:10:18 +0000 |
| Subject: | Doc #65261 [NEW]: documentation needs updating | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-10069@lists.php.net to get a copy of this message | ||
From: knight_adi2000 at yahoo dot com
Operating system: win 7 ultimate 32 bits
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:documentation needs updating
Description:
------------
---
From manual page: http://www.php.net/language.oop5.decon
---
An issue that is not present anywhere in the documentation , please have an
official stand regarding this .
Test script:
---------------
<?php
class testing_name
{
/*
public function __construct() { echo "Constructor function"; }
*/
public function testing_name()
{
echo "Function testing_name";
}
} //End of class
$var = new testing_name();
?>
Expected result:
----------------
When the object testing_name is created nothing else should happen .
Actual result:
--------------
In php 5.4.7 on windows 7 ultimate 32 bits , because the constructor is not
present and the function name matches the class name , when the object is
created
, the function automaticly is called .
If the constructor is present , than the result is a natural result and
everything
works fine .
--
Edit bug report at https://bugs.php.net/bug.php?id=65261&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65261&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65261&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65261&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65261&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65261&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65261&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65261&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65261&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65261&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65261&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65261&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65261&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65261&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65261&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65261&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65261&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65261&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65261&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65261&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65261&r=mysqlcfg