php-windows | 2001042
Date: 04/17/01
- Next message: Dickerson, Monty: "[PHP-WIN] function email_robustly($recipient, $subject, $message, $headers, $smtp)"
- Previous message: Frank M. Kromann: "Re: [PHP-WIN] Class Constructors And PHP on Win2K"
- In reply to: Frank M. Kromann: "Re: [PHP-WIN] Class Constructors And PHP on Win2K"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The code also works fine on my Win98 box with PHP 4.0.4pl1.
Not sure why your code isn't working...maybe you just got a wacky install?
-- Plutarck Should be working on something... ...but forgot what it was.""Frank M. Kromann"" <frank <email protected>> wrote in message news:200104172156.WAA01789 <email protected> > Just tested your code > > <?php > > class Foo { > > var $classVariable; > > function Foo ( $var1 ) { > $this->classVariable = $var1; > } > } > > $anotherVariable = 5; > > $objFoo = new Foo ( $anotherVariable ); > > > ?> > > > This works fine on my W2K box. There should be no problems uses classes and this way on any Windows platform. I'm using php4.0.5-dev though. Not sure if that can have anything to do with your errors. > > - Frank > > > I've a bad headache here. > > > > I have a some class Foo with constructor Foo like this: > > > > class Foo { > > > > var $classVariable; > > > > function Foo ( $var1 ) { > > $this->classVariable = $var1; > > } > > > > and furthermore i have a class call like this: > > > > $objFoo = new Foo ( $anotherVariable ); > > > > i think this is a perfectly legal piece of code, and it works just fine on > > FreeBSD/Apache/PHP 4.0.4pl1 > > > > but on Win2K Server and IIS5 with PHP 4.0.4pl1 running as CGI, this code > > makes php.exe crash. > > windows says that that the referenced memory could not be "written". > > > > what's this all about? in classes without any contructors i do not get any > > errors. Does the windows PHP have some imcompability with class > > constructors?!? > > > > please help and thanks in advance. > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-windows-unsubscribe <email protected> > > For additional commands, e-mail: php-windows-help <email protected> > > To contact the list administrators, e-mail: php-list-admin <email protected> > > > > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe <email protected> > For additional commands, e-mail: php-windows-help <email protected> > To contact the list administrators, e-mail: php-list-admin <email protected> >
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe <email protected> For additional commands, e-mail: php-windows-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Dickerson, Monty: "[PHP-WIN] function email_robustly($recipient, $subject, $message, $headers, $smtp)"
- Previous message: Frank M. Kromann: "Re: [PHP-WIN] Class Constructors And PHP on Win2K"
- In reply to: Frank M. Kromann: "Re: [PHP-WIN] Class Constructors And PHP on Win2K"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

