Re: [PHP] access violation

2010-07-19 Thread SteveW
I switched to PHP 5.3.2 and to fastcgi and that seems to have cured the 
problem.


Thanks for the reply 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] access violation

2010-07-19 Thread Andrew Ballard
On Mon, Jul 19, 2010 at 9:54 AM, SteveW  wrote:
> I have various database / php apps running on a hosted windows machine.
>
> All apps run ok.
>
> We have installed a windows 2003 server machine and the apps run fine.
> However if 2 users hit the Search button at the same time we get a PHP
> access violation and I have to restart IIS.
>
> This is not happening on the hosted service.
>
>
> Where do I start to trace this error please?
>
>
> Cheers
>
>
> SteveW
>

We had frequent access violations using Windows/IIS/SQL Server, but
there was no observable pattern and we never were able to trace it to
a specific cause. It did seem to be related to traffic/load, but it
wasn't as specific as simply having two simultaneous requests. Often
the error messages would begin to appear intermittently, but
eventually the server would freeze to the point that any request
parsed by PHP would throw an access violation.

We changed things around based on advice we found on the web and have
found the following to be pretty stable:

PHP: fast-cgi instead of the ISAPI (even though the manual was still
recommending ISAPI)
Database library: Microsoft SQL Server driver for PHP
Cache: WinCache

Since we settled on these items, things have been pretty stable.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Access violation error

2009-10-16 Thread Ashley Sheridan
On Fri, 2009-10-16 at 15:52 -0700, Jim Lucas wrote:

> Marshall Burns wrote:
> > I am developing a crawler. It has worked fine throughout testing until this
> > morning, when suddenly it started yielding an access violation error. I have
> > not been able to find any explanation of this. I've reduced the script to
> > the following test code:
> > 
> > ==
> > 
> > 
> > 
> >  
> > 
> >   Test crawler
> > 
> >  
> > 
> >  
> > 
> >  > 
> >  
> > 
> > $sURL = $_GET['URL'];
> > 
> >  
> > 
> > echo('Getting ' . $sURL . '');
> > 
> > $sFileCont = file_get_contents('http://' . $sURL);
> > 
> 
> Is allow_url_fopen enabled?
> 
> http://us.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
> 
> > echo('Dump:' . $sFileCont);
> > 
> >  
> > 
> > ?>
> > 
> > 
> > 
> > 
> > 
> > ==
> > 
> > Running this with various inputs, I get:
> > 
> > ==
> > 
> > www.ennex.com/util/php/test.php?URL=www.Google.com
> > 
> > Getting www.Google.com
> > 
> > PHP has encountered an Access Violation at 0A0591E4
> 
> Not sure.  Review above suggestion.
> 
> > 
> > ==
> > 
> > www.ennex.com/util/php/test.php?URL=www.BadURL.com
> > 
> > Getting www.BadURL.com
> > 
> > Warning: file_get_contents() [function.file-get-contents]:
> > php_network_getaddresses: getaddrinfo failed: No such host is known. in
> > D:\WWWRoot\ennex.com\www\util\php\test.php on line 11
> > 
> 
> This should:
> 
> When I do this...
> # host www.badurl.com
> 
> I get this...
> Host www.badurl.com not found: 3(NXDOMAIN)
> 
> > PHP has encountered an Access Violation at 0A11B8D6
> > 
> > ==
> > 
> > The second result shows that it doesn't have to successfully open a stream
> > to yield the error. 
> > 
> > The "file_get_contents()" function was working just fine throughout
> > development of the script. Now it yields an access violation. Anybody have
> > any idea what is going on?
> > 
> > Thanks for your help.
> 
> 


Have you move servers at all, or has the server you're running the
script on now been updated recently?

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] Access violation error

2009-10-16 Thread Jim Lucas
Marshall Burns wrote:
> I am developing a crawler. It has worked fine throughout testing until this
> morning, when suddenly it started yielding an access violation error. I have
> not been able to find any explanation of this. I've reduced the script to
> the following test code:
> 
> ==
> 
> 
> 
>  
> 
>   Test crawler
> 
>  
> 
>  
> 
>  
>  
> 
> $sURL = $_GET['URL'];
> 
>  
> 
> echo('Getting ' . $sURL . '');
> 
> $sFileCont = file_get_contents('http://' . $sURL);
> 

Is allow_url_fopen enabled?

http://us.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen

> echo('Dump:' . $sFileCont);
> 
>  
> 
> ?>
> 
> 
> 
> 
> 
> ==
> 
> Running this with various inputs, I get:
> 
> ==
> 
> www.ennex.com/util/php/test.php?URL=www.Google.com
> 
> Getting www.Google.com
> 
> PHP has encountered an Access Violation at 0A0591E4

Not sure.  Review above suggestion.

> 
> ==
> 
> www.ennex.com/util/php/test.php?URL=www.BadURL.com
> 
> Getting www.BadURL.com
> 
> Warning: file_get_contents() [function.file-get-contents]:
> php_network_getaddresses: getaddrinfo failed: No such host is known. in
> D:\WWWRoot\ennex.com\www\util\php\test.php on line 11
> 

This should:

When I do this...
# host www.badurl.com

I get this...
Host www.badurl.com not found: 3(NXDOMAIN)

> PHP has encountered an Access Violation at 0A11B8D6
> 
> ==
> 
> The second result shows that it doesn't have to successfully open a stream
> to yield the error. 
> 
> The "file_get_contents()" function was working just fine throughout
> development of the script. Now it yields an access violation. Anybody have
> any idea what is going on?
> 
> Thanks for your help.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] access violation

2005-03-28 Thread Rob Agar
hi Leif,

Just thought you'd like to know - I have submitted a bug report, bug
#32422.

btw, assuming it's the same bug, I can get it to happen during GET
requests, just less frequently.

Rob  

> -Original Message-
> From: Leif Gregory [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 24 March 2005 12:19 AM
> To: Rob Agar
> Subject: Re: [PHP] access violation
> 
> 
> Hello Rob,
> 
> Tuesday, March 22, 2005, 4:14:55 PM, you wrote:
> R> That's interesting - it also started happening for me after 
> R> installing PHP 5.0.3. But I have reverted to 4.3.10 for now, and I 
> R> can't see how installing 5.0.3 into an entirely separate directory 
> R> can break my old php install. Hmm..
> 
> R> Incidentally, are you using Pear at all?
> 
> No, I'm not doing anything with Pear (just haven't gotten 
> around to it).
> 
> I did the same thing you did, installed into a separate 
> directory and fixed all the references in the webserver, and 
> have deleted any PHP 4.3 files from the Windows/System folder.
> 
> Luckily it doesn't appear to be a big security problem as it 
> only displays the access violation in the browser window (no 
> paths or anything). A reboot fixes it until I do something 
> like refreshing POST data a few times again. Until I get the 
> problem resolved, I don't refresh POST data anymore on that server.
> 
> The frustrating thing is that the "crash" doesn't show up in 
> any logs. Even the Windows system logs.
> 
> I also didn't do any major changes from the default php.ini 
> except to enable some extensions I needed, set up the SMTP 
> stuff, and that's really about it.
> 
> I am running 5.0.3 on other servers (various web servers and 
> MySQL versions, but all Windows), and am not experiencing 
> this problem. The only difference with those servers is that 
> 5.0.3 was installed fresh (no previous PHP). I'm wondering if 
> I missed one of the extension files somewhere from 4.3.
> 
> 
> 
> 
> -- 
> Leif (TB lists moderator and fellow end user).
> 
> Using The Bat! 3.0.9.9 Return (pre-beta) under Windows XP 5.1 
> Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] access violation

2005-03-23 Thread Leif Gregory
Hello Rob,

Tuesday, March 22, 2005, 4:14:55 PM, you wrote:
R> That's interesting - it also started happening for me after
R> installing PHP 5.0.3. But I have reverted to 4.3.10 for now, and I
R> can't see how installing 5.0.3 into an entirely separate directory
R> can break my old php install. Hmm..

R> Incidentally, are you using Pear at all?

No, I'm not doing anything with Pear (just haven't gotten around to
it).

I did the same thing you did, installed into a separate directory and
fixed all the references in the webserver, and have deleted any PHP
4.3 files from the Windows/System folder.

Luckily it doesn't appear to be a big security problem as it only
displays the access violation in the browser window (no paths or
anything). A reboot fixes it until I do something like refreshing POST
data a few times again. Until I get the problem resolved, I don't
refresh POST data anymore on that server.

The frustrating thing is that the "crash" doesn't show up in any logs.
Even the Windows system logs.

I also didn't do any major changes from the default php.ini except to
enable some extensions I needed, set up the SMTP stuff, and that's
really about it.

I am running 5.0.3 on other servers (various web servers and MySQL
versions, but all Windows), and am not experiencing this problem. The
only difference with those servers is that 5.0.3 was installed fresh
(no previous PHP). I'm wondering if I missed one of the extension
files somewhere from 4.3.




-- 
Leif (TB lists moderator and fellow end user).

Using The Bat! 3.0.9.9 Return (pre-beta) under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] access violation

2005-03-22 Thread Rob Agar
hi Leif

Glad to know I'm not the only one ;)

> The only system stuff we have in common is the OS. The 
> webserver is Sambar, and PHP is 5.0.3. It didn't start having 
> this issue till I updated the PHP to 5.0.3, so I'm going to 
> reinstall it at some point to see if that helps any.

That's interesting - it also started happening for me after installing
PHP 5.0.3.  But I have reverted to 4.3.10 for now, and I can't see how
installing 5.0.3 into an entirely separate directory can break my old
php install. Hmm..

Incidentally, are you using Pear at all?

Rob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] access violation

2005-03-22 Thread Leif Gregory
Hello Rob,

Monday, March 21, 2005, 10:32:36 PM, you wrote:
R> Anyone else had a problem like this?  I couldn't find anything in the
R> php or apache bug databases that sounded like the same problem.

R> Windows XP pro SP2
R> Apache/1.3.33 (Win32)
R> PHP/4.3.10


I have something similar on one webserver where PHP is throwing the
Access Violations and it happens during refresh of POST data. It is
intermittent in terms of exactly when the first one occurs, but once
it happens then I can usually get it to throw again every 2nd or 3rd
refresh of a POST.

The only system stuff we have in common is the OS. The webserver is
Sambar, and PHP is 5.0.3. It didn't start having this issue till I
updated the PHP to 5.0.3, so I'm going to reinstall it at some point
to see if that helps any.


-- 
Leif (TB lists moderator and fellow end user).

Using The Bat! 3.0.9.7 Return (pre-beta) under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-08 Thread Ben Ramsey
So, I found a solution to my problem.  I still do not know what was 
causing the PHP Access Violation errors, but I have an idea, which I 
will relate in this message.

As many suggested, I have pared down my mail sending class by rewriting 
it down to about 250 lines of code.  Previously, the PEAR::Mail::smtp 
class had much fewer lines of code, but if you count all of the other 
files it had to include, then it was a whopping amount of code.  The 
difference here is that I am only using one class now to send mail, 
whereas the PEAR::Mail::smtp class was using about 5 different classes. 
 Let me walk you through them.

Mail::smtp included and extended the Mail class.  The Mail class 
included and extended the PEAR class.  The send() method of Mail::smtp 
included the Net::SMTP class and created an object of that class.  The 
Net::SMTP class included the PEAR and Net::Socket classes (and 
optionally checked for and included the Auth::SASL class).  The 
Net_SMTP() contstructor created a Net::Socket object.  The Net::Socket 
class included and extended the PEAR class.

So, in all, that's about 5 classes that Mail::stmp needed.  Once I got 
it down to one class, the Access Violations disappeared.  So, here's 
what I think was happening with the classes based on some of the 
information I have been told.

I've been told that the Access Violation errors are probably caused when 
PHP tries to access a space of memory that it doesn't have permission to 
access.  From this, I'm gathering that the sheer number of classes 
needed and objects and variables created confused PHP so that it wasn't 
sure what pointers pointed to the correct space in memory.  (Again, I'm 
out on a limb with this guess.)  Because the pointer lost its space in 
memory (I'm guessing that's what happened), PHP tried to access a space 
that it either no longer had permission to access or it never had 
permission to access.

Make sense?  I'm sharing this here because several people expressed an 
interest in knowing how it got resolved.

--
Regards,
 Ben Ramsey
 http://benramsey.com
 http://www.phpcommunity.org/wiki/People/BenRamsey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread Ben Ramsey
Let me point something out here: I was a goof and had an authentication 
setting wrong.  When I changed it back to LOGIN, it sends e-mail just 
fine.  So, all is well... sort of.  Every 3rd or 4th run of the script 
still generates the Access Violation message.  However, since it happens 
intermittently, it makes it a pain in the rear to track down.

DVD> Also, you don't need a mailserver on localhost to use mail()

I'm on Windows Server 2003...
Here's the error I get when I use mail() and no SMTP authentication:
Code:
mail("[EMAIL PROTECTED]","This is a test","This is the message");
Error:
Warning: mail() [function.mail]: Failed to connect to mailserver at 
"localhost" port 25, verify your "SMTP" and "smtp_port" setting in 
php.ini or use ini_set() in E:\path\to\test.php on line 5

When I explicitly set the correct mail server with ini_set(), I get:

Warning: mail() [function.mail]: SMTP server response: 550 Relaying is 
prohibited in E:\path\to\test.php on line 6

This is why I've gone with using the PEAR class Mail_smtp.  It seems the 
easiest thing to use without having to write a whole lot of socket 
connection code.

--
Regards,
 Ben Ramsey
 http://benramsey.com
 http://www.phpcommunity.org/wiki/People/BenRamsey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread DvDmanDT
Well, the reason noone replies I guess, is that noone knows.. I think your
best bets are to echo the steps in the class, and find exactly what causes
it to crash.. Also, you don't need a mailserver on localhost to use mail()..
I use mail() with my ISP's SMTP server, and I'm on XP (same thing work on
windows Me)..

Post when you find a solution, draws my intrest..

-- 
// DvDmanDT
MSN: dvdmandt¤hotmail.com
Mail: dvdmandt¤telia.com
"Ben Ramsey" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I've asked about PHP Access Violation errors before (this very same
> error, as a matter of fact), and every time I ask, I get no response.
> It's been 24 hours, and no one on php-general, pear-general, or #php and
> #pear in Freenode IRC has responded to this particular post.
>
> Do I smell bad?
>
> Please forgive me for refreshing my own post to the list, but this is an
> important question, and it is time-sensitive.  Any help or pointers
> would be greatly appreciated, as I cannot get around this issue at all.
>
> Thanks,
> Ben
>
>
> Ben Ramsey wrote:
>
> > I'm getting the following error when using the Mail_smtp package from
PEAR:
> >
> > PHP has encountered an Access Violation at 0177A8B4
> >
> > It does not occur everytime I use it, but even when send() returns true,
> > e-mail messages are not being sent.  However, it all worked fine a week
> > ago when I was testing it, and I don't think anything has changed to my
> > installation of PHP.
> >
> > I'm using PHP 5RC1 on a Windows Server 2003.  The localhost has no
> > built-in mail functionality, so I cannot use mail().  I must use
> > Mail_smtp to log in to the mail server.  I also have Net_SMTP and
> > Net_Socket installed, and, like I said, when I first dropped in my code,
> > all was working fine.
> >
> > My code is, as follows:
> >
> > 
> > require_once 'Mail/smtp.php';
> >
> > $smtp_settings = array(
> > 'host' => 'localhost',
> > 'port' => '25',
> > 'auth' => 'LOGIN',
> > 'username' => 'username',
> > 'password' => 'password'
> > );
> >
> > $to = "[EMAIL PROTECTED]";
> > $msg = "Line 1\nLine 2\nLine 3";
> > $headers = array(
> > 'Subject'  => "My Subject",
> > 'From' => "[EMAIL PROTECTED]",
> > 'Date' => date('r'),
> > 'Content-Type' => 'text/plain',
> > 'X-Mailer' => "PHP/" . phpversion()
> > );
> >
> > $mail = new Mail_smtp($smtp_settings);
> >
> > if ($mail->send($to, $headers, $msg)) {
> > echo "Sent successfully";
> > } else {
> > echo "Not sent";
> > }
> > 
> >
> > If I don't get the access violation error, I get the message "Sent
> > successfully."  Yet, I don't receive any messages.
> >
> > In the code for Mail_smtp (in Mail/smtp.php), I have added the following
> > line just under the function declaration line for the send() method:
> >
> > echo "test";
> >
> > When the access violation occurs, I get this line:
> >
> > PHP has encountered an Access Violation at 0177A8B4test
> >
> >  From this, it appears to me that the access violation is not occurring
> > when the class tries to send mail, but sometime earlier than that.
> > However, I do not know much more about these Access Violoations, other
> > than PHP is trying to access memory that it doesn't have permission to
> > access.  I couldn't find anything at bugs.php.net or through Google that
> > helped much with this problem.
> >
> > Any help would be greatly appreciated.  I am on a tight deadline, so any
> > help ASAP would be even more greatly appreciated.  ;-)
> >
>
> -- 
> Regards,
>   Ben Ramsey
>   http://benramsey.com
>   http://www.phpcommunity.org/wiki/People/BenRamsey

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread Tyler Replogle
hey, i think the reason you get no reply is becauase no one knows why it 
happens




From: Ben Ramsey <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP Access Violation using PEAR::Mail_smtp
Date: Tue, 06 Apr 2004 14:27:08 -0400
I've asked about PHP Access Violation errors before (this very same error, 
as a matter of fact), and every time I ask, I get no response. It's been 24 
hours, and no one on php-general, pear-general, or #php and #pear in 
Freenode IRC has responded to this particular post.

Do I smell bad?

Please forgive me for refreshing my own post to the list, but this is an 
important question, and it is time-sensitive.  Any help or pointers would 
be greatly appreciated, as I cannot get around this issue at all.

Thanks,
Ben
Ben Ramsey wrote:

I'm getting the following error when using the Mail_smtp package from 
PEAR:

PHP has encountered an Access Violation at 0177A8B4

It does not occur everytime I use it, but even when send() returns true, 
e-mail messages are not being sent.  However, it all worked fine a week 
ago when I was testing it, and I don't think anything has changed to my 
installation of PHP.

I'm using PHP 5RC1 on a Windows Server 2003.  The localhost has no 
built-in mail functionality, so I cannot use mail().  I must use Mail_smtp 
to log in to the mail server.  I also have Net_SMTP and Net_Socket 
installed, and, like I said, when I first dropped in my code, all was 
working fine.

My code is, as follows:


require_once 'Mail/smtp.php';
$smtp_settings = array(
'host' => 'localhost',
'port' => '25',
'auth' => 'LOGIN',
'username' => 'username',
'password' => 'password'
);
$to = "[EMAIL PROTECTED]";
$msg = "Line 1\nLine 2\nLine 3";
$headers = array(
'Subject'  => "My Subject",
'From' => "[EMAIL PROTECTED]",
'Date' => date('r'),
'Content-Type' => 'text/plain',
'X-Mailer' => "PHP/" . phpversion()
);
$mail = new Mail_smtp($smtp_settings);

if ($mail->send($to, $headers, $msg)) {
echo "Sent successfully";
} else {
echo "Not sent";
}

If I don't get the access violation error, I get the message "Sent 
successfully."  Yet, I don't receive any messages.

In the code for Mail_smtp (in Mail/smtp.php), I have added the following 
line just under the function declaration line for the send() method:

echo "test";

When the access violation occurs, I get this line:

PHP has encountered an Access Violation at 0177A8B4test

 From this, it appears to me that the access violation is not occurring 
when the class tries to send mail, but sometime earlier than that. 
However, I do not know much more about these Access Violoations, other 
than PHP is trying to access memory that it doesn't have permission to 
access.  I couldn't find anything at bugs.php.net or through Google that 
helped much with this problem.

Any help would be greatly appreciated.  I am on a tight deadline, so any 
help ASAP would be even more greatly appreciated.  ;-)

--
Regards,
 Ben Ramsey
 http://benramsey.com
 http://www.phpcommunity.org/wiki/People/BenRamsey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Tax headache? MSN Money provides relief with tax tips, tools, IRS forms and 
more! http://moneycentral.msn.com/tax/workshop/welcome.asp

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP Access Violation using PEAR::Mail_smtp

2004-04-06 Thread Ben Ramsey
I've asked about PHP Access Violation errors before (this very same 
error, as a matter of fact), and every time I ask, I get no response. 
It's been 24 hours, and no one on php-general, pear-general, or #php and 
#pear in Freenode IRC has responded to this particular post.

Do I smell bad?

Please forgive me for refreshing my own post to the list, but this is an 
important question, and it is time-sensitive.  Any help or pointers 
would be greatly appreciated, as I cannot get around this issue at all.

Thanks,
Ben
Ben Ramsey wrote:

I'm getting the following error when using the Mail_smtp package from PEAR:

PHP has encountered an Access Violation at 0177A8B4

It does not occur everytime I use it, but even when send() returns true, 
e-mail messages are not being sent.  However, it all worked fine a week 
ago when I was testing it, and I don't think anything has changed to my 
installation of PHP.

I'm using PHP 5RC1 on a Windows Server 2003.  The localhost has no 
built-in mail functionality, so I cannot use mail().  I must use 
Mail_smtp to log in to the mail server.  I also have Net_SMTP and 
Net_Socket installed, and, like I said, when I first dropped in my code, 
all was working fine.

My code is, as follows:


require_once 'Mail/smtp.php';
$smtp_settings = array(
'host' => 'localhost',
'port' => '25',
'auth' => 'LOGIN',
'username' => 'username',
'password' => 'password'
);
$to = "[EMAIL PROTECTED]";
$msg = "Line 1\nLine 2\nLine 3";
$headers = array(
'Subject'  => "My Subject",
'From' => "[EMAIL PROTECTED]",
'Date' => date('r'),
'Content-Type' => 'text/plain',
'X-Mailer' => "PHP/" . phpversion()
);
$mail = new Mail_smtp($smtp_settings);

if ($mail->send($to, $headers, $msg)) {
echo "Sent successfully";
} else {
echo "Not sent";
}

If I don't get the access violation error, I get the message "Sent 
successfully."  Yet, I don't receive any messages.

In the code for Mail_smtp (in Mail/smtp.php), I have added the following 
line just under the function declaration line for the send() method:

echo "test";

When the access violation occurs, I get this line:

PHP has encountered an Access Violation at 0177A8B4test

 From this, it appears to me that the access violation is not occurring 
when the class tries to send mail, but sometime earlier than that. 
However, I do not know much more about these Access Violoations, other 
than PHP is trying to access memory that it doesn't have permission to 
access.  I couldn't find anything at bugs.php.net or through Google that 
helped much with this problem.

Any help would be greatly appreciated.  I am on a tight deadline, so any 
help ASAP would be even more greatly appreciated.  ;-)

--
Regards,
 Ben Ramsey
 http://benramsey.com
 http://www.phpcommunity.org/wiki/People/BenRamsey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Access Violation at 77XXXXX on Windows

2003-09-11 Thread Evan Nemerson
Perhaps you should re-open the bug report. It was closed due to lack of 
feedback, so it's prolly not fixed yet. Can you get a backtrace? Reproducing 
code? Need more details...

With regard to the second paragraph, the obvious solution is to use Linux...

Evan Nemerson



On Thursday 11 September 2003 01:08 am, Mats Dahlgren wrote:
> Hello,
>
> I have encountered the error message PHP has encountered an Access
> Violation at 77X as described in the
> http://bugs.php.net/bug.php?id=17563 bug.  The reported bug only relates
> to MSSQL, but the application I'm working on uses MySQL.  Could this
> error occur due to other Win-related probelms?  Like file locking or
> cacheing?  The problematic application runs on Win2000, IIS 5 and PHP
> 4.3.2.
>
> (I have never run across the problem on any of several Linux-hosted
> applications.)
>
> Thanks for all help,
>  mats d.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] access violation

2001-02-21 Thread Phil Driscoll

If you are using the ISAPI module, try changing to the cgi version and see
if the problem goes away.

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org


-Original Message-
From: Wade Halsey <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Wednesday, February 21, 2001 10:59 AM
Subject: [PHP] access violation


hi

im running iis5 and php 4.04

i get the following error :
PHP has encountered an Access Violation at 78003ABF

im pretty sure its a server problem, can anyone confirm this or help out? if
it is a server error how can it be fixed?

this is quite urgent

thanks
Wade



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]