PHP 4.0 Bug #9189: Cannot use bitwise operators in class initilization

From: Date: Fri, 09 Feb 2001 10:15:20 +0000
Subject: PHP 4.0 Bug #9189: Cannot use bitwise operators in class initilization
Groups: php.dev 
Request: Send a blank email to php-dev+get-46072@lists.php.net to get a copy of this message
From: yohgaki@dd.iij4u.or.jp Operating system: RedHat Linux 7.0.1/j PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: Cannot use bitwise operators in class initilization Initilizing class var as "var $varname = intval | intval;" causes error. Both & and | gives the same error. I'm using sevral non-standard extentions for Japanese language support. These extensions should be nothing to do with this problem. (These extentions do not patch to core distribution) Please let me know if you need more info. == PHP SOURCE == <?php define('C1',1); define('C2',2); class foo { var $b = C1 | C2; function foo() { echo "Called Constructor<br>\n"; $this->b = C1 | C2; } } $c = new foo; echo $c->b; ?> ==== PHP SOURCE END ====== ==== ERROR MSG ===== Parse error: parse error, expecting ','' or ';'' in /home/httpd/httpd/html/tmp/test.html on line 6 ==== ERROR MSG END ===== ==== CONGIURE ==== ./configure --with-apxs --disable-short-tags --enable-bcmath --with-zlib-dir --enable-ftp --with-imap --with-mhash --with-mcrypt --with-pgsql --with-swf --enable-sysvsem --enable-sysvshm --with-zlib --enable-iconv --with-kakasi --enable-jstring --enable-mbregex --with-namazu --with-gd=../gd-1.8.3/ --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6 ===== CONGIURE END ==== -- Edit Bug report at: http://bugs.php.net/?id=9189&edit=1

« previous php.dev (#46072) next »