From: admin at iut-info dot ens dot univ-reims dot fr
Operating system: HP-UX 11.11
PHP version: 4.3.2RC1
PHP Bug Type: OCI8 related
Bug description: OCIParse: ORA-00001
----- CONFIGURE ------
./configure \
--with-oci8 \
--with-apache=../apache_1.3.27 \
--with-gd \
--with-pdflib=/opt/pdflib \
--with-jpeg-dir \
--with-png-dir \
--with-tiff-dir \
--with-zlib \
--with-bz2 \
--enable-sigchild \
--with-mysql=/opt/mysql4 \
--with-pgsql=/opt/pgsql \
--with-tsrm-pthreads \
--with-dom \
--enable-ftp \
--enable-sockets
----- testoci8.php ----------------------------------
<HTML><HEAD><TITLE>Test de connexion PHP - Oracle 8i</TITLE></HEAD>
<BODY>
<PRE><?php
putenv("ORACLE_HOME=/oracle/app/oracle/product/8.1.7");
$conn = OCILogon("collet", "pass", "bd8");
if ($conn ) {
echo "OCILogon Ok\n";
echo "Server Version: " . OCIServerVersion($conn) . "\n";
$st=OCIParse($conn, "SELECT * FROM essai");
if (OCIExecute($st))
{
$nrows = OCIFetchStatement($st,$results);
print "<BR>$nrows Records Selected<BR>\n";
}
OCILogOff($conn);
}
else echo " OCILogon ERREUR\n";
?>
</PRE></BODY></HTML>
---- Result with PHP-4.3.0 -------
OCILogon Ok
Server Version: Oracle8i Enterprise Edition Release 8.1.7.0.0 -
Production
JServer Release 8.1.7.0.0 - Production
2 Records Selected
---- Result with PHP-4.3.2 -----
OCILogon Ok
Server Version: Oracle8i Enterprise Edition Release 8.1.7.0.0 -
Production
JServer Release 8.1.7.0.0 - Production
Warning: ociparse() [function.ociparse]: OCIParse: ORA-00001: unique
constraint (%s.%s) violated
in /home/prof/collet/public_html/testoci8.php on line 12
Warning: ociexecute(): supplied argument is not a valid OCI8-Statement
resource in /home/prof/collet/public_html/testoci8.php on line 13
------------------
Cordialy.
--
Edit bug report at http://bugs.php.net/?id=22724&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22724&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22724&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22724&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22724&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22724&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22724&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22724&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22724&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22724&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22724&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22724&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22724&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22724&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22724&r=gnused