Bug #67584 [Asn->Csd]: Misleading error in pecl_http 2.0.x

From: Date: Wed, 17 Aug 2016 09:43:17 +0000
Subject: Bug #67584 [Asn->Csd]: Misleading error in pecl_http 2.0.x
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203341@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67584&edit=1 ID: 67584 Updated by: mike@php.net Reported by: marcus at synchromedia dot co dot uk Summary: Misleading error in pecl_http 2.0.x -Status: Assigned +Status: Closed Type: Bug Package: HTTP related Operating System: OS X PHP Version: 5.4.30 Assigned To: mike Block user comment: N Private report: N New Comment: Please create a report at https://github.com/m6w6/ext-http/issues if this issue still exists. Thank you! Previous Comments: ------------------------------------------------------------------------ [2014-07-11 17:49:24] marcus at synchromedia dot co dot uk That worked - I can now run my original script without those type errors - thanks. Still two things outstanding. If a request fails for a non-HTTP reason (e.g. DNS failure), I can see that it populates the transferinfo error property - is there an error code property so I don't have to rely on string matching here? As far as I can see everything else is 0 or -1. Also, the script is still giving me 139 error codes, segfaulting at the same point as before. ------------------------------------------------------------------------ [2014-07-11 09:18:43] mike@php.net Sorry, I stumbled over this PHP-5.4 incompatibility the other day. The current HEADs shouldn't suffer from this issue! ------------------------------------------------------------------------ [2014-07-11 08:19:34] marcus at synchromedia dot co dot uk That doesn't quite work - it's assuming the includes are in the ext/ folder under a PHP source tree, not built independently. I worked around that by making an ext folder containing a symlink back to its parent folder and then it found them ok, but then it fails with this error, which seems unrelated: /Users/marcus/Sites/pecl_http/php_http_params.c:714:5: error: use of undeclared identifier 'HASH_KEY_NON_EXISTENT' && HASH_KEY_NON_EXISTENT != (key.type = zend_hash_get_current_key_ex(ht, &key.str, &key.len, &key.num, key.dup, NULL)) ^ 1 error generated. make: *** [php_http_params.lo] Error 1 `make' failed ------------------------------------------------------------------------ [2014-07-10 12:06:47] mike@php.net Doh. You could try with a CFLAGS env like: CFLAGS="-I/usr/local/Cellar/php54-raphf/1.0.4/include -I/usr/local/Cellar/php54-propro/1.0.0/include" pecl build ------------------------------------------------------------------------ [2014-07-08 15:39:42] marcus at synchromedia dot co dot uk I've managed to grab your latest code from the git repo, but I don't know how to tell it where to find the raphf header files so it's failing when I do a 'pecl build'. I installed raphf and propro from source via homebrew, so their header files are in /usr/local/Cellar/php54-raphf/1.0.4/include and /usr/local/Cellar/php54-propro/1.0.0/include. ------------------------------------------------------------------------ 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=67584 -- Edit this bug report at https://bugs.php.net/bug.php?id=67584&edit=1

« previous php.bugs (#203341) next »