Doc #65625 [NEW]: Ambiguous text
| From: | dn dot permyakov at gmail dot com | Date: | Thu, 05 Sep 2013 19:19:18 +0000 |
| Subject: | Doc #65625 [NEW]: Ambiguous text | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-10237@lists.php.net to get a copy of this message | ||
From: dn dot permyakov at gmail dot com
Operating system: MacOSX Mountain Lion 10.8
PHP version: 5.5.3
Package: *General Issues
Bug Type: Documentation Problem
Bug description:Ambiguous text
Description:
------------
---
From manual page: http://www.php.net/language.oop5.overloading
---
-__isset() is triggered by calling isset() or empty() on inaccessible
properties.
but
Note:
It is not possible to use overloaded properties in other language
constructs than
isset(). This means if empty() is called on an overloaded property, the
overloaded
method is not called.
I have checked - both constructions trigger __isset. So you should fix the
text
on this page.(My php version is last stable 5.3.25 and no notes about
difference
between my version and last 5.5)
Test script:
---------------
<?php
error_reporting(E_ALL | E_STRICT);
class A{
public function __isset($v) {
echo "ISSET triggered!\n";
}
}
$var = new A;
empty($var->xyz);
isset($var->xyz);
?>
Expected result:
----------------
ISSET triggered!
Actual result:
--------------
ISSET triggered!
ISSET triggered!
--
Edit bug report at https://bugs.php.net/bug.php?id=65625&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65625&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65625&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65625&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65625&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65625&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65625&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65625&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65625&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65625&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65625&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65625&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65625&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65625&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65625&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65625&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65625&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65625&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65625&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65625&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65625&r=mysqlcfg