Date: 08/31/98
- Next message: Bug Database: "[PHP-DEV] Bug #708 Updated: assignment of a value to a one member variable of a class affects other vars."
- Previous message: ssb: "[PHP-DEV] CVS update: php31/ext/zlib"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: hughm <email protected>
Operating system: linux 2.0.35
PHP version: 3.0 Final Release
PHP Bug Type: Other
Bug description:
using apache 1.3.0 on a linux 2.0.35 libc5 setup.
(apache configure line)
./configure --prefix=/drives/web/apache_1.3.0 \
--activate-module=src/modules/extra/mod_auth_mysql.o \
--activate-module=src/modules/extra/mod_log_mysql.o \
--activate-module=src/modules/php3/libphp3.a \
--activate-module=src/modules/standard/mod_rewrite.o \
--activate-module=src/modules/extra/mod_frontpage.o
the following script gives un-expected results:
<--snip-->
<html>
<body>
<?
class simple {
var $somevar,$differvar;
function init() {
$this->$somevar=1;
echo "this->somevar: ",$this->$somevar,"<BR>";
$this->$differvar=2;
echo "this->somevar: ",$this->$somevar,"<BR>";
echo "this->differvar: ",$this->$differvar,"<BR>";
}
}
//main
$tester =new simple;
$tester->init();
?>
</body>
</html>
<--snip-->
<B>expected results:</B>
this->somevar: 1
this->somevar: 1
this->differvar: 2
<B>results obtained:</B>
this->somevar: 1
this->somevar: 2
this->differvar: 2
hashing problem ?
regex problem ?
Regards,
Hugh Madden
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: Bug Database: "[PHP-DEV] Bug #708 Updated: assignment of a value to a one member variable of a class affects other vars."
- Previous message: ssb: "[PHP-DEV] CVS update: php31/ext/zlib"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

