ID: 22214 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Zend Engine 2 problem Operating System: Linux PHP Version: 5CVS-2003-02-13 (dev) New Comment:
UPS. there is a PHP5 Module in CVS ? That's new or ? :) Previous Comments: ------------------------------------------------------------------------ [2003-02-13 16:38:17] [EMAIL PROTECTED] - recheckout CVS source (php & Zend2) - check right bianry: is OK. - have disabled all uneeded Modules My Configure String: ./configure \ --with-pgsql \ --without-mysql \ --prefix=/usr/local/php5 \ --enable-sockets \ --enable-bcmath \ --enable-dbase \ --enable-dbx \ --enable-ftp \ --enable-dio \ --enable-dbx \ --enable-gd-native-ttf \ --with-zlib \ --with-bz2 \ --with-gmp \ --with-readline \ --enable-embed \ --with-apxs2 \ --with-pspell # --enable-license # --enable-pcntl \ # --disable-overload \ # --enable-exif \ My Output: /usr/local/php5/bin/php varbug.php test1:b Content of t1:This is a simple Variable test2:a Content of t1: test1:b Content of t1: My php -v : /usr/local/php5/bin/php -v PHP 5.0.0-dev (cli) (built: Feb 13 2003 22:34:16) Copyright (c) 1997-2003 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies The Next try with ./configure PHP 5.0.0-dev (cli) (built: Feb 13 2003 23:39:03) Copyright (c) 1997-2003 The PHP Group Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies The Same. php -i sapi/cli/php -i phpinfo() PHP Version => 5.0.0-dev System => Linux app-server.inter-data.prv 2.4.18-17.8.0smp-appserver #1 SMP Die Okt 22 09:48:23 CEST 2002 i686 Build Date => Feb 13 2003 23:38:01 Configure Command => './configure' Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /usr/local/lib PHP API => 20020918 PHP Extension => 20020429 Zend Extension => 90021012 Debug Build => no Thread Safety => disabled Registered PHP Streams => php, http, ftp This program makes use of the Zend Scripting Language Engine: Zend Engine v2.0.0-dev, Copyright (c) 1998-2003 Zend Technologies Do You need More Infos ? What should i try at next ? ------------------------------------------------------------------------ [2003-02-13 16:14:11] [EMAIL PROTECTED] Be sure you use the correct binary (if you use CLI) with ZE2 and tell us. (php -v might help in that case) Thank you. ------------------------------------------------------------------------ [2003-02-13 16:09:48] [EMAIL PROTECTED] Yes. updated 5 minutes ago. I Will checkout my sources new... perhaps... ------------------------------------------------------------------------ [2003-02-13 16:06:02] [EMAIL PROTECTED] I can't reproduce this with ZE2, it works just fine... Output: test1:b Content of t1:This is a simple Variable test2:a Content of t1:This is a simple Variable test1:b Content of t1:This is a simple Variable Which is just nice. Are you sure you are using latest CVS? ------------------------------------------------------------------------ [2003-02-13 16:00:34] [EMAIL PROTECTED] To Reproduce call the following code: <?php class test1 { var $t1 = "This is a simple Variable"; function b() { echo "test1:b Content of t1:".$this->t1."\n"; } } class test2 extends test1 { function a() { echo "test2:a Content of t1:".$this->t1."\n"; } } $a = new test1; $a->b(); $a = new test2; $a->a(); $a->b(); php?> In My opinnion the Text must be printet 3 times.. But only in the first Method it will be printed. In the class test2 it is empty --> not declared ... It this a Bug or a feature ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22214&edit=1