php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57639 Segmentation fault while trying to execute the following code
Submitted: 2007-04-27 00:36 UTC Modified: 2007-04-27 03:43 UTC
From: leela dot ratna at cognizant dot com Assigned: grantc@php.net (profile)
Status: Closed Package: ingres (PECL)
PHP Version: 5.1.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: leela dot ratna at cognizant dot com
New email:
PHP Version: OS:

 

 [2007-04-27 00:36 UTC] leela dot ratna at cognizant dot com
Description:
------------
While trying to execute the ingres_query() iam encountering with the segmentation fault.
This statement works fine while executing other queries like select, create, insert.
while executing the copy command iam encountering this error.
I dont know where the segmentaion fault occured.
but this copy command works fine when executed in the ingres command prompt.
I had given all the permissions to that file.

Operating system: Linux
Database        : Ingres9i
Server          : Apache2
Php             : Php5.1.6

Reproduce code:
---------------
<html>
<head>
</head>
<body>
<?php
 ingres_connect("iidbdb", "root", "redhat")
		or die("Connection to db failed");

$query = "copy table test() into 'test4.out'";
	echo "<p>" . $query . "</p>";
	ingres_query($query);
         ingres_commit();
         ingres_close();

?>

</body>

</html>

Expected result:
----------------
No errors

Actual result:
--------------
Segmentation Fault.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-27 03:04 UTC] grant dot croker at ingres dot com
Hi Leela,

'copy into/from' is not supported via this extension at the current time and requires additional steps which have not been implemented. That said the extension should not SEGV. For the time being I will fix the SEGV. Support for 'copy' will come at a later date.

regards

grant
 [2007-04-27 03:43 UTC] grant dot croker at ingres dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 07:01:27 2025 UTC