#45160 [NEW]: PHP has encountered an Access Violation at 01B849C7

From: Date: Tue, 03 Jun 2008 12:57:56 +0000
Subject: #45160 [NEW]: PHP has encountered an Access Violation at 01B849C7
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-125451@lists.php.net to get a copy of this message
From:             php at eklenet dot de
Operating system: Windows 2003 Server 32bit
PHP version:      5.3CVS-2008-06-03 (CVS)
PHP Bug Type:     Unknown/Other Function
Bug description:  PHP has encountered an Access Violation at 01B849C7

Description:
------------
hi,
i got the error :
  PHP has encountered an Access Violation at 01B849C7
on some sqls.
i have tried some php-version, 5.2.4, 5.2.5, 5.2.6 and
php5.2-win32-latest.zip, on IIS ISAPI and Apache2 Mod, all the same. 

i think the the error must be in the PDO prepare statement, as you see a
"A" is show with the SQL in the actual result, but never a "B" at the last
line
The attatched output is complete.
The reproduce code is just a part of a big script.

Reproduce code:
---------------
...
$this->CONNECTION['handle'] =$dbh = new PDO('odbc:bluesheet',
"sa","xxxx");
...
echo "A:$sql:";
$this->CONNECTION['response'] =
$this->CONNECTION['handle']->prepare($sql);
echo "B";
$this->CONNECTION['response']->execute();
echo "C";

...

Expected result:
----------------
no error and correctly executed sqls.

Actual result:
--------------
PHP has encountered an Access Violation at 01B849C7A:SELECT id,name FROM
bs_companies;:BCA:SELECT

 id,name FROM bs_users;:BCA:SELECT * FROM bs_salesmans;:BCA:INSERT INTO 

	bs_access_log

( 

	func , 

	ip , 

	ip_for , 

	session , 

	php_session , 

	browser , 

	login , 

	date

) VALUES ( 

	'muster_stueckliste_edit'	/* func */ , 

	'192.168.224.4'	/* ip */ , 

	''	/* ip_for */ , 

	'e9bc10605d413039c338efeaef5abef0'	/* session */ , 

	'8b1q4n09vhpvba2dqgfl7sh6t5'	/* php_session */ , 

	'Mozilla/5.0 (Windows; U; Windows NT 5.2; de; rv:1.8.1.14) Gecko/20080404
Firefox/2.0.0.14'	/* browser

 */ , 

	'1'	/* login */ , 

	getdate()	/* date */

)

:BCA:SELECT 

	[function]

FROM 

	bs_functions4user

WHERE 

	user_id = '1'

:BCA:UPDATE 

	bs_stueckliste

SET 

	parent_id = '32' , 

	stueck = '2' , 

	details = '2' , 

	einheit = '2' , 

	verbrauch = DEFAULT , 

	groese = '2' , 

	farbe = DEFAULT , 

	positions = DEFAULT , 

	anz = DEFAULT

WHERE 

	id = '5' AND 

	ident = '64'

:

-- 
Edit bug report at http://bugs.php.net/?id=45160&edit=1
-- 
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45160&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45160&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45160&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45160&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=45160&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45160&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45160&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45160&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45160&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45160&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=45160&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=45160&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45160&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45160&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45160&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45160&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45160&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45160&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45160&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45160&r=mysqlcfg



Thread (15 messages)

« previous php.bugs (#125451) next »