Bug #68550 [NEW]: calling a field using an object type.

From: Date: Fri, 05 Dec 2014 09:47:54 +0000
Subject: Bug #68550 [NEW]: calling a field using an object type.
Groups: php.standards 
Request: Send a blank email to standards-+get-576@lists.php.net to get a copy of this message
From: rahulagr12345 at yahoo dot com Operating system: Any PHP version: 5.4.35 Package: PHP Language Specification Bug Type: Bug Bug description:calling a field using an object type. Description: ------------ Hi Sir, I want to know that if i am calling a field using object having a dot[.] in it. leads to problem for me. Test script: --------------- field name in database is "pa.ab". If we fetch data from database using mysql_fetch_object like "$database->pa.ab" It will read it as "$database->pa". First of all i want to know is this an bug, error or my mistake on it. and if it an issue to be handle differently then how to handle such cases. Expected result: ---------------- $database->pa.ab will be read and return the same value as in database Actual result: -------------- $database->pa will read by programm and nothing is returned. -- Edit bug report at https://bugs.php.net/bug.php?id=68550&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68550&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68550&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68550&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68550&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68550&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68550&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68550&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68550&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68550&r=support Expected behavior: https://bugs.php.net/fix.php?id=68550&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68550&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68550&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68550&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68550&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68550&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68550&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68550&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68550&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68550&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68550&r=mysqlcfg

« previous php.standards (#576) next »