#11101 [Com]: Php has caused an error in PHP4TS.DLL
| From: | denver dot prophit at cox dot net | Date: | Thu, 16 Jan 2003 08:00:32 +0000 |
| Subject: | #11101 [Com]: Php has caused an error in PHP4TS.DLL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30230@lists.php.net to get a copy of this message | ||
ID: 11101
Comment by: denver.prophit@cox.net
Reported By: admin@webfroggie.com
Status: Closed
Bug Type: Reproducible crash
Operating System: Windows ME
PHP Version: 4.0.5
New Comment:
I have vers 4.3.0 of the thread safe php dll file php4ts.dll I also
have the modules mycrypt installed could that have an affect?
Previous Comments:
------------------------------------------------------------------------
[2001-07-22 13:00:23] andy@php.net
no feedback after 35+ days.
------------------------------------------------------------------------
[2001-06-14 22:34:11] sniper@php.net
Does this happen with other scripts?
Have you tried reinstalling? I had troubles with
having two different versions of php4ts.dll in my system..
--Jani
------------------------------------------------------------------------
[2001-05-24 19:00:35] admin@webfroggie.com
Hi,
I have the following machine:
- Windows ME
- Xitami server(just installed)
- PHP 4.05 (just installed)
When running this script:
-------------------------
<?php
// Class Made By Mukul Sabharwal [mukulsabharwal@yahoo.com]
// http://www.devhome.net/php/
// On October 21, 2000
// Updated February 24, 2001
// Now passes RC4 Vector Harness
class rc4crypt {
function endecrypt ($pwd, $data, $case) {
if ($case == 'de') {
$data = urldecode($data);
}
$key[] = "";
$box[] = "";
$temp_swap = "";
$pwd_length = 0;
$pwd_length = strlen($pwd);
for ($i = 0; $i <= 255; $i++) {
$key[$i] = ord(substr($pwd, ($i % $pwd_length), 1));
$box[$i] = $i;
}
$x = 0;
for ($i = 0; $i <= 255; $i++) {
$x = ($x + $box[$i] + $key[$i]) % 256;
$temp_swap = $box[$i];
$box[$i] = $box[$x];
$box[$x] = $temp_swap;
}
$temp = "";
$k = "";
$cipherby = "";
$cipher = "";
$a = 0;
$j = 0;
for ($i = 0; $i < strlen($data); $i++) {
$a = ($a + 1) % 256;
$j = ($j + $box[$a]) % 256;
$temp = $box[$a];
$box[$a] = $box[$j];
$box[$j] = $temp;
$k = $box[(($box[$a] + $box[$j]) % 256)];
$cipherby = ord(substr($data, $i, 1)) ^ $k;
$cipher .= chr($cipherby);
}
if ($case == 'de') {
$cipher = urldecode(urlencode($cipher));
} else {
$cipher = urlencode($cipher);
}
return $cipher;
}
}
$rc4 = new rc4crypt;
echo "<BR><BR>";
$msg="mmmmmmmmmmmmmmmmmmmmmmm3mmmmmmmmmmmm";
$d = $rc4->endecrypt("hi div", $msg, "");
echo $d;
?>
--------------------------
I get the following error:
--------------------------
"Php has caused an error in PHP4TSDLL.
Php will now close.
If you continue to experience problems,
try restarting your computer."
--------------------------
...and I did restart... but the message wont go away! I uploaded the
script to a unix server running apache with PHP v. 4.01pl and it works
fine...
Also, if we change the variable $msg to, for example, "abc" it
works...
Any ideas?!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=11101&edit=1