Re: PHP 4.0.6 + Oracle9i + CPDF lib - large file problem (segmentation fault)

From: Date: Sat, 22 Sep 2001 02:42:19 +0000
Subject: Re: PHP 4.0.6 + Oracle9i + CPDF lib - large file problem (segmentation fault)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68284@lists.php.net to get a copy of this message
Wild Hypothesis: If all else fails, it may be possible to create a bunch of one-page PDF files, and then concatenate them with some external weapon... -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Marcin Floryan <mfloryan@intercontrol.es> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Wednesday, September 19, 2001 9:44 AM Subject: PHP 4.0.6 + Oracle9i + CPDF lib - large file problem (segmentation fault) > Hello! > > I have a problem with my php script. I am creating a report in PDF based on > data in the Oracle9i database. To access Oracle I use OCI and to create PDF > files I use ClibPDF 2.02. > > The problem is with the ammount of data - there are currently some 2000 > records and are expected to be some 12000. This means that the output report > has now 100 pages and may have much more (up to, say, 500). > > With that ammount of data I naturally create the PDF as a file (not in > memory). As a result the file seems to be created properly but the output > from PHP script (which is simply the link to the created file) does not > appear. The browser displays an error message and in my httpd error_log I > get: > [Wed Sep 19 14:12:25 2001] [notice] child pid 14090 exit signal Segmentation > fault (11) > > Have any Ideas? What is the sorce of the problem. It doesn't appear if I > limit the number of selected records. > > I have already done the following: > > * Set cpdf global limits to satisfy my needs: > cpdf_global_set_document_limits(500,5,1,5,2); > > * Open pdf document as a file > $PDF = cpdf_open(1,$file); > > * Finalize each page (what cost me not having the total number of pages > printed on each page) > cpdf_finalize_page ($GLOBALS[PDF], $pages-1); > > Any thing more I could do? Unfortunatelly there is no PHP error shown or > logged. > > Best regards. > > Marcin Floryan mfloryan@bigfoot.com > >

« previous php.general (#68284) next »