PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #1149

addWorksheet() causes segmentation fault

Details

Submitted2004-04-06 19:13 UTC
Fromschafft at web dot de
Assignedxnoguer
StatusNo Feedback
PackageSpreadsheet_Excel_Writer
PHP Version4.3.4
OSLinux
Roadmaps(Not assigned)

Comments

[2004-04-06 19:13 UTC] schafft at web dot de

Description:
------------
Tried around and around with litte snippets like those mentioned in the tutorial at pear.php.net.

However, addWorksheet(); causes a segmentation fault. error_log says additionally

file not found: not configured properly

That´s my pear config:

Configuration:
==============
PEAR executables directory bin_dir /usr/local/bin
PEAR documentation directory doc_dir /usr/local/lib/php/doc
PHP extension directory ext_dir /usr/local/lib/php/extensions/no-de
bug-non-zts-20020429
PEAR directory php_dir /usr/local/lib/php
PEAR Installer cache directory cache_dir /tmp/pear/cache
PEAR data directory data_dir /usr/local/lib/php/data
PHP CLI/CGI binary php_bin /usr/local/bin/php
PEAR test directory test_dir /usr/local/lib/php/test
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state beta
Unix file mask umask 22
Debug Log Level verbose 1
HTTP Proxy Server Address http_proxy <not set>
PEAR server master_server pear.php.net
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin /usr/bin/gpg
Signature Key Directory sig_keydir /etc/pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)

PHP 4.3.4 has open_base_dir_restriction zu /usr/local/lib/php

Reproduce code:
---------------
<?
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer('test.xls');
$worksheet =& $workbook->addWorksheet('My first worksheet');
$workbook->close();
?>

Expected result:
----------------
I expect to see the download file dialog when I request the script via my browser.

Actual result:
--------------
Page is not shown, script not excecuted completely. Apache´s error log says segmentation fault and that a file or directory was not found: not configured properly. Can´t get the package to work unless I uncomment addworksheet()

[2004-04-09 22:41 UTC] xnoguer at php dot net

Can you get a gdb trace for the segfault?