ID: 23273 Updated by: [EMAIL PROTECTED] Reported By: tim at timcrider dot com -Status: Open +Status: Closed Bug Type: Zend Engine 2 problem Operating System: Red Hat 8.0 PHP Version: 5CVS-2003-04-18 (dev) New Comment:
Works in Cvs. Previous Comments: ------------------------------------------------------------------------ [2003-04-18 10:47:39] tim at timcrider dot com -----[ output ]----- Trying <br /> <b>Fatal error</b>: Unknown function: print_r() in <b>/php5/bugz/get_set/run.php</b> on line <b>10</b><br /> ------------------------------------------------------------------------ [2003-04-18 10:46:22] tim at timcrider dot com Whenever you define a __set or __get inside of a class within a namespace seems to undefine print_r -----[ class.php ]----- <?php namespace foo { class bar { function __construct() { } function __set($k, $v) { } function __get($k) { } } } ?> -----[ run.php ]----- #!/php5/bin/php -q <?php require_once "class.php"; $a = New foo::bar; print "Trying ".$a->testing."\n"; $a->abc = 123; print_r($a); ?> -----[ config ]----- ./configure --prefix=/php5 \ --with-gettext \ --with-gd=/usr \ --with-jpeg-dir=/usr/local \ --with-mcrypt=/usr/local \ --with-mcal=/usr/local \ --with-ming=/usr/local \ --with-mhash=/usr/local \ --with-mysql=/usr/local/mysql \ --with-zlib=/usr/local \ --with-ncurses \ --with-tiff-dir="/usr/local" \ --with-unixODBC=/usr/local/unixODBC \ --with-xml \ --with-calendar=shared \ --with-png-dir=/usr/local \ --with-freetype=/usr/local \ --with-freetype-dir=/usr/local \ --with-ttf=/usr/local \ --with-openssl=/usr/local \ --with-bz2 \ --with-dom \ --enable-bcmath \ --enable-calendar \ --enable-dio \ --enable-exif \ --enable-ftp \ --enable-gd-native-ttf \ --enable-pcntl \ --enable-shmop \ --enable-sigchild \ --enable-sockets \ --enable-track-vars \ --enable-magic-quotes \ --enable-trans-sid \ --enable-libgcc \ --enable-wddx \ --enable-sysvshm \ --enable-sysvsem \ --enable-sysvmsg ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23273&edit=1