|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-09 04:18 UTC] derick@php.net
[2003-06-09 04:28 UTC] bartosz at webcity dot pl
[2003-06-09 05:12 UTC] neon at neon-line dot net
[2003-06-09 12:15 UTC] bartosz at webcity dot pl
[2003-06-09 12:47 UTC] neon at neon-line dot net
[2003-06-09 13:39 UTC] bartosz at webcity dot pl
[2003-06-09 22:56 UTC] sniper@php.net
[2003-06-15 07:23 UTC] stas@php.net
[2003-06-15 10:16 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 19:00:01 2025 UTC |
Analyse code below, it makes parse error: <?php class foobar2 { function foobar2() { echo phpversion(); } } class foobar { var $classname = 'foobar2'; var $obj; function foobar() { // it works: // // $classname = $this -> classname; // $this -> obj = new $classname; // // but it doesn't work: $this -> obj = new $this -> classname; } } $obj = new foobar; ?> ---------------------------------------- My configure command: './configure' '--with-mysql=/usr' '--with-gd2' '--disable-xml' '--with-apxs=/usr/sbin/apxs'