|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-29 07:35 UTC] basim at basim dot co dot uk
[2007-09-30 10:09 UTC] tony at daylessday dot org
[2007-09-30 11:04 UTC] basim at basim dot co dot uk
[2007-10-01 03:10 UTC] tony at daylessday dot org
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Description: ------------ 1) Installed via pecl -v install rar 2) Added extension=rar.so to php.ini at line 597 3) Get "Segmentation fault (core dumped)" at the end of of ALL PHP files, even if they don't use the rar package Reproduce code: --------------- $rar_file = rar_open('test.rar') or die("Can't open Rar archive"); $entries = rar_list($rar_file); foreach ($entries as $entry) { echo 'Filename: ' . $entry->getName() . "\n"; echo 'Packed size: ' . $entry->getPackedSize() . "\n"; echo 'Unpacked size: ' . $entry->getUnpackedSize() . "\n"; } rar_close($rar_file); Actual result: -------------- $ php rar.php Filename: legs.jpg Packed size: 290808 Unpacked size: 290808 Filename: 10.jpg Packed size: 186886 Unpacked size: 186886 Segmentation fault (core dumped) $