Hi, I think he was referring to the fact that most problably your setup is using .dlls from different php versions. I guess your problems will go away if you remove all traces of old php versions, and install the latest one. Edin ----- Original Message ----- From: "Georgio" <egeorge@xxxxxxxxxxxx> To: <php-windows@xxxxxxxxxxxxx> Sent: Friday, June 24, 2005 10:32 AM Subject: Re: Re: PHP 4.3.2-Win32 - This Program has Performed anIllegal Operation > Hi Yong, I do not think I understand your response. > > PHP4TS.DLL was the referenced file/module in which PHP-4.3.2-Win32 was said > to have caused invalid page fault. > > PHP_MBSTRING.DLL was the referenced file/module in which PHP-4.3.11-Win32 > was said to have caused invalid page fault. > > The "PHP - This program has performed an illegal operation..." error > messages were produced in two different versions of PHP. The error message > first showed up when I tried to run a particular script after a long use of > PHP-4.3.2-Win32 and when I upgraded to PHP-4.3.11-Win32, situation was > rather worse. No script that had earlier been successfully run by the former > could be run by PHP-4.3.11-Win32. > > Consistency, therefore, does not come in here I think. > > Thanks, > Georgio > > > ""Wu, Jin Yong"" <jinyong.wu@xxxxxxxxxxxxx> wrote in message > news:76130D07EA63B945B35125D7BCDEAE5F083DDCB8@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx > | > | Maybe PHP_MBSTRING.DLL is not compatible with php4ts.dll. > | Make sure to keep them consistence. > | > | Yong > | > | -----Original Message----- > | From: GKE [mailto:egeorge@xxxxxxxxxxxx] > | Sent: Thursday, June 23, 2005 5:31 AM > | To: php-windows@xxxxxxxxxxxxx > | Subject: Re: PHP 4.3.2-Win32 - This Program has Performed an > | Illegal Operation > | > | > | Wanting to stay within PHP4, I downloaded version 4.3.11-Win32 and this > time > | it was rather worse. No script could be run. A simple test program (and > not > | even the sophisticated one) like: > | > | ++++++ > | <?php > | print ("Hello, World!"); > | ?> > | ++++++ > | > | could be parsed but produced similar PHP error with details as follows: > | > | ++++++ > | PHP caused an invalid page fault in > | module PHP_MBSTRING.DLL at 0167:0166b0d6. > | Registers: > | EAX=0165a824 CS=0167 EIP=0166b0d6 EFLGS=00010202 > | EBX=00762d30 SS=016f ESP=0063f93c EBP=00765c70 > | ECX=00000081 DS=016f ESI=0000000b FS=49e7 > | EDX=007d8d50 ES=016f EDI=0165a830 GS=0000 > | Bytes at CS:EIP: > | 8b 51 44 8b 79 48 8a 08 89 54 24 14 80 f9 22 89 > | Stack dump: > | 0165a830 0165a824 00765c70 00000001 00000001 0063fe28 7800f56a 78033238 > | 0166b093 0165a824 0000000b 00000000 00000000 00000000 00762d30 00762d30 > | ++++++ > | > | and the web page result was: > | > | ++++++ > | CGI Error > | The specified CGI application misbehaved by not returning a complete set > of > | HTTP headers. The headers it did return are: > | ++++++ > | > | As can be seen, the "invalid page fault" is in module PHP_MBSTRING.DLL and > | NOT in module PHP4TS.DLL > | > | I'll now try the PHP5 version to see how I come out of this; but if there > is > | any solution to this, it will be highly appreciated. Thanks > | > | GKE > | > | ""M. Sokolewicz"" <tularis@xxxxxxx> wrote in message > | news:70.0D.20931.FD1A2B24@xxxxxxxxxxxxxxx > | | hello, > | | > | | this is not a problem with the script, which I'll try not to criticise > | | here; instead it's a problem with your php installation. Since this is > | | PHP 4.3.2, I would suggest you redownload/reinstall PHP, and preferably > | | do that with the *latest* version. There's a big chance that the bug you > | | ran into has already been fixed. > | | > | | hope that helps, > | | - tul > | | > | | GKE wrote: > | | > I am learning the PHP programming using Larry Ullman's book "PHP > | Advanced > | | > for the World Wide Web". After successfully going through a few > scripts > | one > | | > script kept producing error message whenever I ran it. The script is > | | > provided herebelow: > | | > > | | > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > | | > > | | > > | > "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> > | | > <html xmlns="http://www.w3.org/1999/xhtml"> > | | > <title>Football Picks</title> > | | > </head> > | | > <body> > | | > <?php # Script 1.11 > | | > > | | > /* ------------------------------- */ > | | > /* Calculate the season standings. */ > | | > /* ------------------------------- */ > | | > > | | > function do_the_math ($value, $key, $total) { // This function adds up > | the > | | > wins and losses. > | | > > | | > if ($key != 0) { // Ignore the first dummy line. > | | > > | | > $line = explode ("\t", $value); // Separate out the > | | > username, wins, and losses. > | | > $_REQUEST['username'] = $line[0]; > | | > $total["{$_REQUEST['username']}"]["wins"] += $line[1]; > | | > $total["{$_REQUEST['username']}"]["losses"] += > $line[2]; > | | > } > | | > } > | | > > | | > function read_results ($dp, $directory, &$total) { > | | > > | | > if ($file_name = readdir ($dp)) { // Search through the > | directory. > | | > if (substr($file_name, 0, 8) == "results_") { // If > it's > | a > | | > results file ... > | | > $the_file = $directory . $file_name; > | | > array_walk (file ($the_file), 'do_the_math', > | | > &$total); // Do the math on all the data. > | | > } > | | > read_results ($dp, $directory, $total); // Repeat > | through > | | > the directory. > | | > } > | | > } > | | > > | | > $total = array(); // Initialize the main variable. > | | > > | | > $directory = '2001/'; > | | > $dp = opendir ($directory); > | | > read_results ($dp, $directory, $total); // Start the process. > | | > closedir ($dp); > | | > echo "<pre>\n"; > | | > var_dump ($total); // Quickly print out the results. > | | > echo "</pre>\n"; > | | > ?> > | | > </body> > | | > </html> > | | > > | | > The error message is: "PHP - This program has performe an illegal > | operation > | | > and will be shut down....." > | | > Details of the error are as follows: > | | > > | | > PHP caused an invalid page fault in > | | > module PHP4TS.DLL at 0167:100b8beb. > | | > Registers: > | | > EAX=00638528 CS=0167 EIP=100b8beb EFLGS=00010246 > | | > EBX=00000000 SS=016f ESP=00638420 EBP=00000010 > | | > ECX=00000007 DS=016f ESI=00761010 FS=5b97 > | | > EDX=007637c0 ES=016f EDI=01182e28 GS=0000 > | | > Bytes at CS:EIP: > | | > 8a 45 08 3c 04 57 89 5c 24 54 89 5c 24 5c 89 5c > | | > Stack dump: > | | > 00761010 00000003 00000001 011827cc 00000001 00000000 0118316c > 0000000b > | | > 00010003 100ba272 100bf1b0 00000000 00638580 00000000 81847340 > 0248c270 > | | > > | | > Could anyone help me resolve this problem. > | | > > | | > Thanks > | | > > | | > GKE > | > | -- > | PHP Windows Mailing List (http://www.php.net/) > | To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php