php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32682 php5activescript doesn't work with php_mssql.dll
Submitted: 2005-04-12 14:52 UTC Modified: 2005-04-12 19:47 UTC
From: ondrej77 at centrum dot cz Assigned: fmk (profile)
Status: Closed Package: MSSQL related
PHP Version: 5.0.4 OS: Window XP
Private report: No CVE-ID: None
 [2005-04-12 14:52 UTC] ondrej77 at centrum dot cz
Description:
------------
I've registered php5activescript.dll (located in directory c:\php), put php-activescript.ini in directory c:\windows\system32 (where is located wscript.exe) and switched on extensions that I want use. 
I dont't have problem with php_gd2.dll, php_mysql.dll, php_pdf.dll, php_zip.dll. But when I uncomment php_mssql.dll and run any script I recieve error message:
Instruction on address 0x733276ac is pointing at address in memory 0x00ff21a8. It is not possible to make operation: read. Press the OK button to end the program.
(I tried to translate it - it's written in czech language ... language of my Windows)
Note, that I haven't changed any parameters in MSSQL section - there are default values from php-recomended.ini. I also use php in common way (as a SAPI modul on Apache) and I dont have any problems with mssql library.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-12 19:24 UTC] fmk@php.net
I'm getting the same error on PHP 5.1-dev, but only if I'm not using the extension. It looks like a problem on shutdown and I'll take a closer look. If you start using the extensin there is no errors/warnings and everything works fine. I've tested it wit this example:

  <job id="test">
    <script language="PHPScript">
	  $WScript->Echo("Hello from " . phpversion());
	  $con = mssql_connect('localhost', 'sa', '');
	  $rs = mssql_query("select * from test", $con);
	  if ($rs) {
	  	while ($row = mssql_fetch_assoc($rs)) {
	  		$WScript->Echo($row['a']);
	  	}
	  	mssql_free_result($rs);
	  }
	</script>
  </job>

 [2005-04-12 19:47 UTC] fmk@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC