ID:               45160
 Comment by:       php at eklenet dot de
 Reported By:      php at eklenet dot de
 Status:           Feedback
 Bug Type:         *General Issues
 Operating System: Windows 2003 Server 32bit
 PHP Version:      5.2.6
 New Comment:

I have found a work around for my Problem. Often when i use a class
with a __tostring() function as string for a database-sql i got this
error.
so i simply make a 
$sql = "$sql "; 
before i use the sql as query. Now my script works fine, but its just a
work around.


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

[2008-07-18 02:44:03] tmstruthers at cox dot net

I am also receiving a similar "Access violation" message...(PHP has
encountered an Access Violation at 0116B74E) when trying to view a php
web page I've created.  I've got PHP 5.2.6 loaded.  My page is mostly
HTML with a PHP include for the header and a PGP include for a page
footer (which contains a date function to get the current year).  I'm
running on Windows XP Pro using IIS 5.1.  On average, I hit "refresh"
about 20 times and receive this error 19 of the 20 times.  The page only
loads correctly about 1 in 20 times.  This makes development extremely
difficult.  This appears to be a bug within PHP as the page does
eventually load (with no edits to the source) and then continues to fail
when the page is reloaded.  If you need me to do something to help
pinpoint the problem and assist, I'm willing to do so to get this
problem corrected.

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

[2008-07-11 16:19:46] [EMAIL PROTECTED]

But is that external script running on the same webserver as the one
you're accessing?

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

[2008-07-09 08:37:47] php at eklenet dot de

hello,
i dont think its a internal problem from PHP.
Becouse i need to get my script work, i have made a externel script to
fetch data from the database.
Here is sample code:
------------------------------------------------------
        public function run($sql)
        {
                echo " A";
                $this->CONNECTION['lastsql']= rawurlencode(base64_encode($sql));
                if(substr(strtoupper($sql),0,6)=="INSERT" OR
substr(strtoupper($sql),0,6)=="UPDATE")
                {
                        $type="get_field";
                        $sql = ($this->CONNECTION['lastsql']);
                        $url =
"http://192.168.224.4/bluesheet/sql.php?type=$type&sql=$sql";;
                        $data = file_get_contents($url);
                }
                echo " B";
        
        }
------------------------------------------------------
so you see here is no database connection.
The Output of the Script is just:
PHP has encountered an Access Violation at 01B849C7 A B A B A B A
As you see it ends with A and not B so there musst be an internal PHP
Problem not related to the Database !

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

[2008-07-08 07:24:21] php at eklenet dot de

now i have tried odbtp.
what i get is 
PHP has encountered an Access Violation at 01B849C7
like with pdo

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

[2008-07-07 12:42:03] php at eklenet dot de

i have changed to odbc vom pdo_odbc and i got even a similar error:
PHP has encountered an Access Violation at 01CBFC71
mybe they use the same base code ?

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

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/45160

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

Reply via email to