PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_AJAX » Bug #9316

Incompatibility with PHP 4.x

Details

Submitted2006-11-13 06:38 UTC
Fromtobias at senzalimiti dot sk
Assignedauroraeosrose
StatusClosed
PackageHTML_AJAX
PHP Version4.3.0
Roadmaps(Not assigned)

Comments

[2006-11-13 06:38 UTC] tobias at senzalimiti dot sk

Description:
------------
The following lines (356-359) seem to be responsible for an incompatibility with PHP 4.x. HTML_AJAX.replace() leads to an Unknown method error in our tests.

if (!in_array($method,$this->_exportedInstances[$class]['exportedMethods'])) {
// handle error
trigger_error('Unknown method: ' . $method);
}

Commenting them out resolves the problem.

This was reported by users of slGrid from http://www.senzalimiti.sk/slgrid/

[2006-11-16 10:47 UTC] buhmann at teqneers dot de

Using PHP 4.4.0 on a Windows IIS (production) results in the same error messages using HTML_AJAX.call(). We also commented out these lines, and it's working now.
Running on IIS on Windows and Apache on Linux both with PHP 4.4.4 (development) has worked correctly.

[2006-11-16 15:14 UTC] buhmann at teqneers dot de

i tried it on our production system, and it will end in the same error. perhaps i will be able to downgrade our developing environment to 4.4.0 to make some tests, why this happens.

[2006-11-30 02:27 UTC] auroraeosrose at php dot net

Applied arpad's fix to svn, Works for Me - reopen if the svn version is still broken