1. Scott
  2. Other Discussions
  3. Thursday, April 22 2021, 12:06 AM
  4.  Subscribe via email
I upgraded our development Windows Server 2019 machine to PHP 8.0.3 and installed the latest VPHP NTS_x64 ADK.

Set all the Fast_CGI settings for this build in IIS.

The only way to display records from the valentina_query is to use the valentina_result() like this:


$companies = getCompanyNames();
$numrows = valentina_num_rows($companies);

for ($x = 1; $x <= $numrows; $x++){
echo valentina_result($companies, $x) . '<br>';
};


Using the fetch_assoc (or any other resource method) results in a 500 error. Event Viewer displays:

Faulting application name: php-cgi.exe, version: 8.0.3.0, time stamp: 0x5ff4ebf4
Faulting module name: ucrtbase.dll, version: 10.0.17763.1490, time stamp: 0x48ac8393
Exception code: 0xc0000409
Fault offset: 0x000000000006e77e
Faulting process id: 0x15c8
Faulting application start time: 0x01d7370830d78741
Faulting application path: C:\Program Files\PHP\v8.0.3\php-cgi.exe
Faulting module path: C:\Windows\System32\ucrtbase.dll
Report Id: 4b3dda78-7a64-4b90-b7ed-1056810633ec
Faulting package full name:
Faulting package-relative application ID:

Most other VPHP functions work.

It's worth noting that I also received similar 500 errors from XAMMP on a Windows 10 Enterprise machine and MAMP on the same machine (this time using the thread safe ADK).

Any ideas?

Scott
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
Hello Scott,

No, that's something new, we'll check it.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 1
Sergey Pashkov Accepted Answer
Still unable to reproduce, valentina_fetch_assoc works in the example select_assoc.php.
But I tried on Windows 10 with XAMPP, IIS, PHP installed from WebPlatform.

I'm going to check it with Windows Server and install PHP manually.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 2
Scott Accepted Answer
Thanks, Sergey. I will give that one a try as well to see if it works,
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 3
Sergey Pashkov Accepted Answer
Ok, Windows Server 2019 setup works for me.
Probably there is something else. Does it happen each time, even in the simplest scripts?
Maybe you can build a minimal script and see if it crash on IIS or directly on PHP, without any web server.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Other Discussions
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.