Bug #71175 [Ver->Csd]: Crash when use ibase_blob_echo
| From: | mariuz@php.net | Date: | Mon, 06 Feb 2017 14:09:18 +0000 |
| Subject: | Bug #71175 [Ver->Csd]: Crash when use ibase_blob_echo | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207200@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71175&edit=1
ID: 71175
Updated by: mariuz@php.net
Reported by: zedex at rambler dot ru
Summary: Crash when use ibase_blob_echo
-Status: Verified
+Status: Closed
Type: Bug
Package: InterBase related
Operating System: Linux SLES-11 SP2
PHP Version: 7.0.1
-Assigned To:
+Assigned To: mariuz
Block user comment: N
Private report: N
New Comment:
Fixed by this commit https://github.com/php/php-src/commit/8bfa5193d55f1287aaa996abfbd1b40af564fdec
Previous Comments:
------------------------------------------------------------------------
[2015-12-22 00:20:11] lester at lsces dot co dot uk
If I apply the patch then I get a compile failure with ....
In file included from /opt/php-7.0.1/Zend/zend_API.h:28:0,
from /opt/php-7.0.1/main/php.h:39,
from /opt/php-7.0.1/ext/interbase/interbase.c:27:
/opt/php-7.0.1/Zend/zend_list.h:66:16: note: expected âstruct zval *â but argument is of
type âstruct zend_resource *â
ZEND_API void *zend_fetch_resource2_ex(zval *res, const char *resource_type_name, int
resource_type, int resource_type2);
http://php7.lsces.org.uk/ is now running with 7.0.1 quite
happily but it took a while to sort out compiling the update. I can now check out the test script
...
------------------------------------------------------------------------
[2015-12-21 16:29:38] zedex at rambler dot ru
TO: lester at lsces dot co dot uk
I'm don't saying what extention not workin. I'm have a trouble only at this function
:)
TO: laruence@php.net
I'm appling your patch and function begin workin ! Thank you very much !
------------------------------------------------------------------------
[2015-12-21 14:57:48] lester at lsces dot co dot uk
Try again from phone ...
Extension is working fine for me in PHP7 ... looks like it's simply returning the blob ID
rather than the text, so suspect the default setting changed? There are warnings compiling, but it
passes all of the test suite and the firebird test suite so don't understand why there is a
problem here.
------------------------------------------------------------------------
[2015-12-21 14:24:14] laruence@php.net
sorry, it turns out this extension is broken, far away from working..
it's no need to test the patch I paste... thanks :<
------------------------------------------------------------------------
[2015-12-21 14:10:12] laruence@php.net
Hmm, seems this is broken, I doubt it even work at the first step...
anyway, I made a patch, but I don't have env to test it, could you please check whether it
works?
https://gist.github.com/laruence/f3af903012902818d7da
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=71175
--
Edit this bug report at https://bugs.php.net/bug.php?id=71175&edit=1