ID: 45907 Updated by: [EMAIL PROTECTED] Reported By: olivier at ajeux dot com -Status: Verified +Status: Closed Bug Type: PHAR related Operating System: Linux i686 2.6.17 PHP Version: 5.3CVS-2008-09-29 (snap) Assigned To: cellog New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Unfortunately, the fix is removing support for ext/hash if it is built shared. This could be revisited in a future release, but would involve extensive code changes to call the PHP versions of hash_init() rather than the C versions, something I don't want to do until 5.3.0 is released. Previous Comments: ------------------------------------------------------------------------ [2008-09-30 11:25:29] [EMAIL PROTECTED] Sorry Greg, would if I could but still have no way to build 5.3. I'll poke Marcus. ------------------------------------------------------------------------ [2008-09-30 00:02:30] [EMAIL PROTECTED] another update: this should be completely unnecessary as we include ext/hash/php_hash_sha.h which has: PHP_HASH_API void PHP_SHA256Init(PHP_SHA256_CTX *); all defined properly I wonder if building hash shared prevents the proper export of this function? ------------------------------------------------------------------------ [2008-09-29 23:57:03] [EMAIL PROTECTED] I think we can fix this by using php_hash_sha256_ops and php_hash_sha512_ops to extract the actual address of PHP_SHA512Init and company, will try a fix later if I have time, otherwise tomorrow. Unless Steph beats me to it (check php_hash.h and hash_sha.c, searching for php_hash_sha256_ops to see what I'm talking about) ------------------------------------------------------------------------ [2008-09-29 14:31:31] [EMAIL PROTECTED] Greg, please have a look. Phar should properly check for the existence of hash imo. ------------------------------------------------------------------------ [2008-09-29 12:44:24] olivier at ajeux dot com New configure/make without "--enable-hash=shared" (replaced with "--enable-hash"): OK Build complete. ------------------------------------------------------------------------ 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 http://bugs.php.net/45907 -- Edit this bug report at http://bugs.php.net/?id=45907&edit=1