This repository was archived by the owner on Apr 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
This repository was archived by the owner on Apr 5, 2020. It is now read-only.
PHP 5.5.0RC3 & GD Extension: stream_cast() undefined #310
Copy link
Copy link
Closed
Description
With ext/gd2 enabled, we're seeing errors for calls to stream_cast():
friebe@thekid ~/devel/xp.public [master]
$ XP_RT=5.5 unittest core/src/test/config/unittest/imaging.ini
[..............EEEFF.....................N...............................
...........]
F unittest.TestError(test= net.xp_framework.unittest.img.ImageReaderTest::readGif, time= 0.001 seconds) {
Exception lang.Error (Call to undefined method io.streams.Streams▒6::stream_cast() from scope img.io.GifStreamReader)
at lang.Object::__call((0xb)'stream_cast', array[1]) [line 0 of StackTraceElement.class.php]
at io.streams.Streams▒6::stream_cast(0) [line 0 of StackTraceElement.class.php]
at <main>::imagecreatefromgif((0x20)'iostrr://51c09e85095d49.76516421') [line 27 of GifStreamReader.class.php]
at img.io.GifStreamReader::readImage0((0x20)'iostrr://51c09e85095d49.76516421') [line 53 of GifStreamReader.class.php]
at img.io.GifStreamReader::readImage() [line 96 of StreamReader.class.php]
at img.io.StreamReader::getResource() [line 113 of Image.class.php]
at img.Image::loadFrom(img.io.GifStreamReader{}) [line 59 of ImageReaderTest.class.php]
at net.xp_framework.unittest.img.ImageReaderTest::readGif() [line 0 of StackTraceElement.class.php]
at php.ReflectionMethod::invokeArgs(net.xp_framework.unittest.img.ImageReaderTest{}, array[0]) [line 95 of Method.class.php]
at lang.reflect.Method::invoke(net.xp_framework.unittest.img.ImageReaderTest{}, array[0]) [line 315 of TestSuite.class.php]
at unittest.TestSuite::runInternal(net.xp_framework.unittest.img.ImageReaderTest{}, unittest.TestResult{}) [line 533 of TestSuite.class.php]
at unittest.TestSuite::run() [line 348 of Runner.class.php]
at xp.unittest.Runner::run(array[1]) [line 359 of Runner.class.php]
at xp.unittest.Runner::main(array[1]) [line 0 of StackTraceElement.class.php]
at php.ReflectionMethod::invokeArgs(NULL, array[1]) [line 95 of Method.class.php]
at lang.reflect.Method::invoke(NULL, array[1]) [line 54 of class.php]
}
# ...On Linux, this possibly leads to a segmentation fault (see Travis-CI).