Re: [PHP4BETA] PHP4 vs PHP3

From: Date: Tue, 08 Feb 2000 16:34:15 +0000
Subject: Re: [PHP4BETA] PHP4 vs PHP3
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9944@lists.php.net to get a copy of this message
Hi, As described in the INSTALL file it is possible to use them together as apache modules under some operating systems. This is due to a feature which exists on some where the shared library (dynamically loadable apache modules are shared libraries) can have a version tag on them. This way if you have two functions with the same name in two libraries they will have the version number ammended to them and thus they won't collide. We had a list of difference up a while ago. I think we will put it back up when our new site goes live. Your code doesn't work because in PHP 4 you can only use constant values like (1, "foo", array(1,2,3)) to initialize class members. You can always move this code into the constructor. Andi On Tue, 8 Feb 2000, Yury Bokhoncovich wrote: > hi, folks! > Can anybody explain to me how is possible concurrent running of both > PHP4 and PHP3 as > Apache's module (as described in INSTALL file)? I can't imagine how the > PHP engine solves, which codebase is old, whih is new. > Well, second question follows: where is the place I could know about > REAL differences > between php3 and Zend? > I have the following code: > > class tableCalendar { > var $defaultPath = $GLOBALS["PathData"]; > ... > PHP4 reports about "parse error". > If I comment out $GLOBALS and assign "PathData" later, then it > complains: > "Parse error: parse error, expecting T_OLD_FUNCTION' or > T_FUNCTION' or > T_VAR' or '}'' in > /usr/local/apache/lib/.date_time.lib on line 146" > It sounds perfectly weird to me.:( >

« previous php.version4 (#9944) next »