473,699 Members | 2,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP 5 Extension not loading properly.

I've got an extension that I coded as a DLL in Windows and can use the dl()
function to load it with no problem. This makes my test functions available
and everything works fine.

I'd like to keep the DLL resident in memory and tried adding it to PHP.INI
(and don't call dl() ), but the functions in my DLL aren't available to my
PHP script.

Is there something special I need to do? I don't want to recompile PHP with
my code - I can't think of a worse way to spend the holiday weekend...
Thanks,
Lee
LeeStewart @ gmail.com
Jul 17 '05 #1
2 1662
On Sun, 3 Jul 2005 18:21:13 -0400, "Lee Stewart" <leestewart@NOS PAM_gmail.com>
wrote:
I've got an extension that I coded as a DLL in Windows and can use the dl()
function to load it with no problem. This makes my test functions available
and everything works fine.

I'd like to keep the DLL resident in memory and tried adding it to PHP.INI
(and don't call dl() ), but the functions in my DLL aren't available to my
PHP script.

Is there something special I need to do? I don't want to recompile PHP with
my code - I can't think of a worse way to spend the holiday weekend...


Any errors in the Event Log during webserver startup?

--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
Thanks for the reply. It looks like my extension isn't supported properly
with threaded webservers while the Zend debugger is running. Or something
like that.

I haven't really figured out the exact cause, but somehow I got it "mostly
working"...
Thanks!
Lee
LeeStewart @ gmail.com

"Andy Hassall" <an**@andyh.co. uk> wrote in message
news:iu******** *************** *********@4ax.c om...
On Sun, 3 Jul 2005 18:21:13 -0400, "Lee Stewart"
<leestewart@NOS PAM_gmail.com>
wrote:
I've got an extension that I coded as a DLL in Windows and can use the
dl()
function to load it with no problem. This makes my test functions
available
and everything works fine.

I'd like to keep the DLL resident in memory and tried adding it to PHP.INI
(and don't call dl() ), but the functions in my DLL aren't available to my
PHP script.

Is there something special I need to do? I don't want to recompile PHP
with
my code - I can't think of a worse way to spend the holiday weekend...


Any errors in the Event Log during webserver startup?

--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1706
by: Andy G | last post by:
I hate to post just a general error like this but one of my clients that coded this system is getting an error when loading a page. I know that you can't point out the specific problem so forget about what is behind this error. Just wondering is someone can read into this error and point me the right way. Error Loading 'DesktopModules/HRSReports/HRSReports.ascx ' Message: User control source files must have a .ascx file extension.
4
6020
by: pepcag | last post by:
I used http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconalteringsoapmessageusingsoapextensions.asp as a template to create a very simple web method with soap extension. The code like this: public string HelloWorld() { return "Hello World.";
1
3568
by: Darrel | last post by:
APologies for the cross post...posted in the wrong forum the first time. I have an ASPX page on my server that isn't properly running as an ASPX page. At first, the RESX file would load. I delete the files, reuploaded, and now the ASPX file is loading as plain text in the browser (the source). This is the only ASPX file not loading properly, and it works just fine on localhost. What would be the reason for this not properly being...
1
5491
by: snapcount | last post by:
Hi, I need some help with this. I've enabled php_gd2.dll and php_mbstring.dll in the php.ini file and they're loading ok but the php_mysql.dll is not getting loaded. Apache's error.log reports: PHP Warning: PHP Startup: Unable to load dynamic library 'c:/program files/php/ext/php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 What puzzles me is that the MySQL server works ok, PHP works ok,
6
1593
by: ImOk | last post by:
I am using Windows IIS with PHP5 CGI. When I want to use an extension in PHP5 under Windows I enable the extension line in PHP.INI. (e.g. extension=php_sqlite.dll). Does PHP load all the extensions in the PHP.INI on every invocation of a request? If I have 20 different extensions not all of them are used on every page request. Is this inefficient? Would using dl() be more efficient? And why is it being depracated under 5?
1
2111
by: tyler | last post by:
I've written a small python extension but I'm having difficulty loading it at runtime. The source for my extension is a module which is a member of a package is organized as follows. test/setup.py test/myutils/__init__.py test/myutils/netmodule.c my setup.py file for building / installing looks like this
1
2316
by: Jarle Aase | last post by:
Hi, I wrote a multilanguage cms system a few years ago. Different languages are handled by loading php-files where each language-specific string is assigned to a normal php-variable ($LNG array). This loading takes place for each request. Now I'm developing a backend server in C++ that will allow some better security-checking, session management and caching. The backend server has a
15
3682
by: pdhb_1 | last post by:
I'm trying to run Apache2.2.6 with php. However, I keep getting a long list of error messages in the log file indicating that includes are failing. For example, "PHP Warning: PHP Startup: Unable to load dynamic library './ext/ php_sybase_ct.dll' - The specified module could not be found.\r\n in Unknown on line 0" I have changed the "extension_dir" line in the php.ini file every way I can think of, including the original:
5
2024
by: malkarouri | last post by:
Hi everyone, Is it possible to write a Python extension that uses the Boehm garbage collector? I have a C library written that makes use of boehm-gc for memory management. To use that, I have to call GC_INIT() at the start of the program that uses the library. Now I want to encapsulate the library as a CPython extension. The question is really is that possible? And will there be conflicts between the boehm-gc and Python memory...
0
9174
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9034
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8914
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8883
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6534
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.