From: daemorhedron at siliconjesters dot com Operating system: mdk 9.2 and win xp PHP version: 5.0.0RC1 PHP Bug Type: Class/Object related Bug description: php5 undefined function aggregate()
Description: ------------ Whenever trying to use aggregate() under php5b3, b4 or rc1, I just get Fatal error: Call to undefined function aggregate() in /dir/file on line 666 The above code works fine on php4 of various types. I've searched bugs.php.net, news.php.net and google to no avail and wondering how to proceed from here. Is there a required configure switch to enable aggregation in php5? Since it doesn't produce an actual error, I've not provided a gdb backtrace. ** CONFIGURE LINE ** ./configure --with-config-file-path=/usr/local/apache2/conf --with-apxs2=/usr/local/apache2/bin/apxs --enable-session --enable-pcntl --with-mm=/usr/local/lib --enable-exif --with-gd=/usr/include --with-jpeg --with-jpeg-dir=/usr/lib --with-png --with-png-dir=/usr/lib --with-freetype --with-freetype-dir=/usr/lib --with-mcrypt --with-opensl --with-pspell --with-gdbm --enable-dbx --with-mysql=/usr/local/mysql --with-sqlite --with-gmp --enable-bcmath --with-zlib --with-bz2 --enable-ftp --enable-sockets --with-xml-rpc --with-xsl --with-java --without-pear --disable-cli Tried with php5b3, b4 and rc1 on both apache 1.x and 2.x, and on both windows xp, and mandrake 9.2 (whew). I'll be happy to post any relevant information required, TIA. Reproduce code: --------------- class cybernetics { function augment() { echo "cybernetics added....release the winged monkeys!\n"; } } class monkeys { function monkeys() { echo "monkeys loaded\n"; echo "loading cybernetics...\n"; aggregate(&$this,'cybernetics'); $this->augment(); } } $monkeys=&new monkeys(); Expected result: ---------------- Should output : monkeys loaded loading cybernetics... cybernetics added....release the winged monkeys! Actual result: -------------- monkeys loaded loading cybernetics... Fatal error: Call to undefined function aggregate() in /dir/file on line 12 -- Edit bug report at http://bugs.php.net/?id=28052&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28052&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28052&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28052&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28052&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28052&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28052&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28052&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28052&r=support Expected behavior: http://bugs.php.net/fix.php?id=28052&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28052&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28052&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28052&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28052&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28052&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28052&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28052&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28052&r=float