php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2439 Invalid library (maybe not a PHP3 library) 'calendar.so'
Submitted: 1999-10-04 16:52 UTC Modified: 2000-08-20 02:18 UTC
From: gorm at insolwwb dot net Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 3.0.12 OS: FreeBSD 3.1
Private report: No CVE-ID: None
 [1999-10-04 16:52 UTC] gorm at insolwwb dot net
I've followed the directions in dl/README
to a T trying to compile calendar.so

I did run into Bug id #2208, but got around that.
calendar.so seems to compile fine.

phpinfo() indicates that dynamic loading is enabled...

I copied the calendar.so file to the web doc tree, where
i've also created the following php3 script:

<?
dl("calendar.so");
phpinfo();
echo jdmonthname(1,3);
?>

When I try to access the php3 doc, I get the error\
Warning: Invalid library (maybe not a PHP3 library) 'calendar.so' in (null) on line 2

I've also tried to force it to load inside the php3.ini file. I don't get the above error message, but it doesnt see the jdmonthname function either...

I know php4 is supposed to handle dynamic loading better, but another individual who I've been working with to solve this problem had the same problem with 4.0b2.  Incidentally, he is usuing FreeBSD 3.2

Since I havent recieved any response in the mailing list about this, I figure if nothing else, it should be brought to the team's attention.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-20 02:18 UTC] sas@php.net
IIRC FreeBSD 3.x prepends _ to symbols. PHP 3.0 now looks for _get_module as well, so this can be considered fixed. Please ugprade to a later release.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 07:01:28 2024 UTC