FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Loading missing extensions in Windows
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Loading missing extensions in Windows [message #170769] Mon, 22 November 2010 15:02 Go to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
I had the assumption that, when running PHP as Apache module in a
Windows box, trying to load an invalid extension (e.g., a missing DLL
file) would prevent Apache from loading. I've just tested in my own PC
(Windows XP, PHP/5.3.3 as Apache/2.2.8 module) and that's how it is; I
write this...

extension=php_does_not_exist.dll

.... and Apache will no longer start.

However, in the system of a client (Windows 2003 Server, PHP/5.2.9-2
running as Apache/2.2.11 module) that's not true. Missing DLLs are
logged but that's all: Apache starts normally and missing extensions are
simply not available.

What piece of knowledge am I missing?


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: Loading missing extensions in Windows [message #170771 is a reply to message #170769] Mon, 22 November 2010 16:28 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/22/2010 10:02 AM, "Álvaro G. Vicario" wrote:
> I had the assumption that, when running PHP as Apache module in a
> Windows box, trying to load an invalid extension (e.g., a missing DLL
> file) would prevent Apache from loading. I've just tested in my own PC
> (Windows XP, PHP/5.3.3 as Apache/2.2.8 module) and that's how it is; I
> write this...
>
> extension=php_does_not_exist.dll
>
> ... and Apache will no longer start.
>
> However, in the system of a client (Windows 2003 Server, PHP/5.2.9-2
> running as Apache/2.2.11 module) that's not true. Missing DLLs are
> logged but that's all: Apache starts normally and missing extensions are
> simply not available.
>
> What piece of knowledge am I missing?
>
>

Maybe that you should be asking in an Apache newsgroup?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Loading missing extensions in Windows [message #170772 is a reply to message #170771] Mon, 22 November 2010 17:11 Go to previous messageGo to next message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 22/11/2010 17:28, Jerry Stuckle escribió/wrote:
> On 11/22/2010 10:02 AM, "Álvaro G. Vicario" wrote:
>> I had the assumption that, when running PHP as Apache module in a
>> Windows box, trying to load an invalid extension (e.g., a missing DLL
>> file) would prevent Apache from loading. I've just tested in my own PC
>> (Windows XP, PHP/5.3.3 as Apache/2.2.8 module) and that's how it is; I
>> write this...
>>
>> extension=php_does_not_exist.dll
>>
>> ... and Apache will no longer start.
>>
>> However, in the system of a client (Windows 2003 Server, PHP/5.2.9-2
>> running as Apache/2.2.11 module) that's not true. Missing DLLs are
>> logged but that's all: Apache starts normally and missing extensions are
>> simply not available.
>>
>> What piece of knowledge am I missing?
>>
>>
>
> Maybe that you should be asking in an Apache newsgroup?

Or maybe in "comp.infosystems.www". Why not? PHP won't be more off-topic
there than in your suggestion.



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Re: Loading missing extensions in Windows [message #170773 is a reply to message #170772] Mon, 22 November 2010 18:12 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/22/2010 12:11 PM, "Álvaro G. Vicario" wrote:
> El 22/11/2010 17:28, Jerry Stuckle escribió/wrote:
>> On 11/22/2010 10:02 AM, "Álvaro G. Vicario" wrote:
>>> I had the assumption that, when running PHP as Apache module in a
>>> Windows box, trying to load an invalid extension (e.g., a missing DLL
>>> file) would prevent Apache from loading. I've just tested in my own PC
>>> (Windows XP, PHP/5.3.3 as Apache/2.2.8 module) and that's how it is; I
>>> write this...
>>>
>>> extension=php_does_not_exist.dll
>>>
>>> ... and Apache will no longer start.
>>>
>>> However, in the system of a client (Windows 2003 Server, PHP/5.2.9-2
>>> running as Apache/2.2.11 module) that's not true. Missing DLLs are
>>> logged but that's all: Apache starts normally and missing extensions are
>>> simply not available.
>>>
>>> What piece of knowledge am I missing?
>>>
>>>
>>
>> Maybe that you should be asking in an Apache newsgroup?
>
> Or maybe in "comp.infosystems.www". Why not? PHP won't be more off-topic
> there than in your suggestion.
>
>
>

Ah, you're loading a PHP extension - not an Apache extension. My mistake.

It looks like your client's system is working correctly (see bug 37428,
fixed in PHP 5.1.4) and your system may have a bug.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Loading missing extensions in Windows [message #170774 is a reply to message #170773] Tue, 23 November 2010 09:13 Go to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma: 0
Senior Member
El 22/11/2010 19:12, Jerry Stuckle escribió/wrote:
> On 11/22/2010 12:11 PM, "Álvaro G. Vicario" wrote:
>>>> I had the assumption that, when running PHP as Apache module in a
>>>> Windows box, trying to load an invalid extension (e.g., a missing DLL
>>>> file) would prevent Apache from loading. I've just tested in my own PC
>>>> (Windows XP, PHP/5.3.3 as Apache/2.2.8 module) and that's how it is; I
>>>> write this...
>>>>
>>>> extension=php_does_not_exist.dll
>>>>
>>>> ... and Apache will no longer start.
>>>>
>>>> However, in the system of a client (Windows 2003 Server, PHP/5.2.9-2
>>>> running as Apache/2.2.11 module) that's not true. Missing DLLs are
>>>> logged but that's all: Apache starts normally and missing extensions
>>>> are
>>>> simply not available.
>>>>
>>>> What piece of knowledge am I missing?


> It looks like your client's system is working correctly (see bug 37428,
> fixed in PHP 5.1.4) and your system may have a bug.

Yep, that sounds sensible. Perhaps they fixed it in PHP/5.1 and broke it
again some releases later...



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to get real debug_backtrace using register_tick_function
Next Topic: Find out number of pages in a file (doc,docx,txt,pdf,ppt .etc)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 18 10:04:29 GMT 2024

Total time taken to generate the page: 0.02489 seconds