Re: PHP 4.0 Bug #4154: sapi_starup() uses gcc-only semantic, may break for other compilers

From: Date: Sun, 16 Apr 2000 13:58:43 +0000
Subject: Re: PHP 4.0 Bug #4154: sapi_starup() uses gcc-only semantic, may break for other compilers
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-17945@lists.php.net to get a copy of this message
On Sat, Apr 15, 2000 at 09:45:56PM -0000, dolecek@ics.muni.cz wrote: > From: dolecek@ics.muni.cz > Operating system: NetBSD (1.4.1 userland, 1.4X kernel) > PHP version: 4.0 Release Candidate 1 > PHP Bug Type: Compile Failure > Bug description: sapi_starup() uses gcc-only semantic, may break for other compilers > > sapi_startup() uses gcc feature - implicit copying > of whole structures (see the very first line, "sapi_module = *sf). > > This is nonstandard feature and should be avoided, > otherwise the code won't be complable with compilers > not supporting this feature. This is a standard feature. I had a quick look at K&R and there we find in 7.14. Assignment Operators: "In the simple assignment with =, the value of the expression replaces that of the object referred to by the lvalue. [..] Second, both operands may be structures or unions of the same type." - Sascha

« previous php.dev (#17945) next »