From: Operating system: Windows 7 PHP version: 5.3.6 Package: OCI8 related Bug Type: Bug Bug description:Warning oci_fetch_object() -->Trying to get property of non-object
Description: ------------ --- >From manual page: http://www.php.net/function.oci-fetch-object#Description --- Env:Joomla [begin] Warning: oci_fetch_object() [function.oci-fetch-object]: ORA-24374: define not done before fetch or execute and fetch in O.php on line 587 Notice: Trying to get property of non-object in X.php on line 78 [end] Test script: --------------- if (!($cur = $this->query())) return null; if ($object =oci_fetch_object($cur)) $ret = $object; ocifreestatement($cur); ... $this->_oradb->setQuery($query); $result = $this->_oradb->loadObject(); $this->DesireProp = $result->FromOra; Expected result: ---------------- $this->DesireProp is not null (a year number) Actual result: -------------- Notice: Trying to get property of non-object -- Edit bug report at http://bugs.php.net/bug.php?id=54664&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54664&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54664&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54664&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54664&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54664&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54664&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54664&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54664&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54664&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54664&r=support Expected behavior: http://bugs.php.net/fix.php?id=54664&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54664&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54664&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54664&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54664&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54664&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54664&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54664&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54664&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54664&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54664&r=mysqlcfg
