From: atila at nutroeste dot com dot br Operating system: RHEL 5.2 64 BITS PHP version: 5.2.12 PHP Bug Type: OCI8 related Bug description: OciFetchStatement
Description: ------------ Dears, The function is OciFetchStatement. Since I have more than 2 times the same problem, and the task to resolve this was to hard. I have to report that every time I use a complex sql using operator union or union all, the return message is Notice: Undefined offset: 0 in /usr/local/apache/html/pedidos/teste_union.php on line 19 numero de linhas: As you can see the "Undefined offset: 0" means that there is no record to be retrived from a query, but if I run this same query using my database tool, a result could be seen. To resolve this I had to create temporary tables to insert the data into it's own structure using my sql union/union all query to became only one table and force the OciFetchStatement to retrive the results I wanted. My database is Oracle 10.2.04 running on Linux rhel 5.2 64bits. My php version is source 5.2.9 running in the same host. Thanks an advance Atila Santos mail: at...@nutroeste.com.br Country Brazil State Goias, city: Goiania +5562-30962539/2500 System Analist/Dba Oracle/Web Developer Reproduce code: --------------- Notice: Undefined offset: 0 in /usr/local/apache/html/pedidos/teste_union.php on line 19 Expected result: ---------------- The result should bring me up values of rows. -- Edit bug report at http://bugs.php.net/?id=50978&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50978&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50978&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50978&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50978&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50978&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50978&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50978&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50978&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50978&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50978&r=support Expected behavior: http://bugs.php.net/fix.php?id=50978&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50978&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50978&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50978&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50978&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50978&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50978&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50978&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50978&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50978&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50978&r=mysqlcfg