php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6355 mssql_query crash when I try 'insert', 'update' or 'delete'
Submitted: 2000-08-25 11:28 UTC Modified: 2000-08-30 10:23 UTC
From: lrvazquez at megared dot net dot mx Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.0.1pl2 OS: SPARC/Solaris 7
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: lrvazquez at megared dot net dot mx
New email:
PHP Version: OS:

 

 [2000-08-25 11:28 UTC] lrvazquez at megared dot net dot mx
$connection = mssql_connect($hostname,$username,$password);
mssql_select_db($dbname);

$sql_query = "insert into $tablename(politica,scope) 
values('PCConfig','PCConfig')" ;

$query_result =mssql_query($sql_query) ; <--- here crash

   It makes the query fine but after crash before the next 
line.

When I do a 'select' works fine, but with 'insert', 'update' 
and 'delete' httpd crash...

I have apache 1.3.12/PHP 4.0.1pl2/freetds 0.50 accesing MS- 
SQL 6.5

PHP configure 
./configure --with-system-regex                       
--disable-debug --enable-track-vars                         
--without-gd --without-mysql 
--with-sybase=/usr/local/freetds --disable-pear 

I compile apache with --disable-shared.

The message is 
/kernel: pid 277 (httpd), uid 65534: exited on signal 11

I try on FreeBSD with the same packages and lighly different 
configuration but crash in mssql_query, too.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-25 12:44 UTC] lrvazquez at megared dot net dot mx
The gdb says this:

Program received signal SIGSEGV, Segmentation fault.
0x282b3f7f in dbnumcols () at dblib.c:361

dblib.c is in the freetds distribution...

I compiled sqsh with this librarys and no problem is report, 
I keep debugging...
 [2000-08-30 10:23 UTC] lrvazquez at megared dot net dot mx
I try the snapshot of freetds and it work fine.

So I happy for that :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 04:01:29 2024 UTC