#17563 [Opn]: PHP has encountered an Access Violation at 77XXXXX

From: Date: Mon, 26 Aug 2002 03:54:30 +0000
Subject: #17563 [Opn]: PHP has encountered an Access Violation at 77XXXXX
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17815@lists.php.net to get a copy of this message
 ID:               17563
 User updated by:  stanley@in2nett.com
 Reported By:      stanley@in2nett.com
 Status:           Open
 Bug Type:         MSSQL related
 Operating System: WIN2K
 PHP Version:      4.2.1
 New Comment:

Yes, try that first, after recreate the data field, I have no problem
afterwards. You can use the mssql.dll if you 
want~ I use that in all time, I don't like ODBC,


Previous Comments:
------------------------------------------------------------------------

[2002-08-25 00:51:28] ali_ashrafzadeh@hotmail.com

Hi

I Have this problem Too

I use an Odbc conennection on Win2000 prof and IIS ver 5
I try to fetch some data from my database by this lines :
      $query="Select username,name,family,Sex,pic,pic_type 
      ,about from [users]";   
      ...........
      ........... 
      $username = odbc_result($result, 1);
      $name     = odbc_result($result, 2);
      ............
this page is work probebly at first time but after some refreshing I
recive "PHP has encountered an Access Violation at XXXXX" only at this
page and other .php page is work probebly;
I install PHP on my computer in ISAPI mode
in my users table "Pic_type" and "about" allow null 
I rename these fieldes but not effect .
you say  I remove this field's and add them again  ?
is it effective?
I try it but not sure
thank's

------------------------------------------------------------------------

[2002-06-08 20:28:34] stanley@in2nett.com

Server Version:  MSSQL Server 2000
Operating System: WIN2K Server

Database Details:
   The error field is smallmoney, allow null.

Error Solution:
   I've tried rename it with other field which is also 'smallmoney' and
'allow null', but problem does not solve this way. The only way to
solve this problem is to remove that field and create another new field
again.

Notice:
   Notice that the field works fine inside the MSSQL server's 'Query
Analyzer', no error occur inside MSSQL server itself, but it produce
error with the PHP engine.

How does the bug act like:
   This error might not hang the whole php engine in first few times
you recieve the message "PHP has encountered an Access Violation at
########", but it will eventually hang when you load that page few more
times.

------------------------------------------------------------------------

[2002-06-08 05:05:19] mfischer@php.net

That's  a start (and probably not a duplicte). But we need more
information. What vrsion of MSSQL ? And type was this field of ? Can
you reproduce this by creating a second field exactly as the first
which crashes, which crashes too ? Please be as detailed as possible
about the database setup and the field in general (so someone with the
appropriate environment can rebuild this scenery), thx.

------------------------------------------------------------------------

[2002-06-08 04:54:26] stanley@in2nett.com

GUYS!!!!!! Found it, as I said, there is one field have error, I remove
that field and add another field that is exactly the same datatype and
everything and the problem solved.

Try it out.

------------------------------------------------------------------------

[2002-06-08 04:46:44] stanley@in2nett.com

Ok, I found this error more specifically.
This error is actually from one of my database field, is "smallmoney"
allow null. but I have no idea why it have this error, because there
are exactly same datatype in the same table. I'll try to test more and
see.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/17563

-- 
Edit this bug report at http://bugs.php.net/?id=17563&edit=1



Thread (15 messages)

« previous php.bugs (#17815) next »