php-windows Digest 7 Jul 2004 21:11:43 -0000 Issue 2310
Topics (messages 24121 through 24127):
PHP Extension building issue on Win32
24121 by: Vincent Graux
Re: PHP extension problem in new XP site
24122 by: Jason Barnett
24123 by: George Pitcher
Re: Session On Window [Urgent]
24124 by: Rhemax
SSL setup
24125 by: dpgirago.mdanderson.org
24127 by: speedfreak.chello.be
Syslog is not writting to the Event Viewer - IIS on Win 2003 Ser ver
24126 by: Gilbert, Mark
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hello,
I followed instructions at http://www.devnewz.com/090902b.html about
setting up correctly a VC++ project for building an extension, and I tried
to build the provided "hello world" example.
Helas, I still get this "unresolved external symbol" kind of linker errors :
Compiling...
test1.cpp
[warnings about externals]
Linking...
test1.obj : error LNK2001: unresolved external symbol _zend_printf
Release_TS/php_test1.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Is there anything I missed ? Except that I use VC++ 5 SP3 and php4ts.lib of
latest 4.3.7 in stead of VC++ 6 and 4.2, I don't see any meaningful
configuration discrepancy...
Below the first message that I - apparently wrongly and to no avail - sent
to php-internals because I thought it was a Zend Engine settings problem.
Any help welcome ; I'm sure a lot of people here can help me by diverting
some ticks of their precious brain processing time :D
VGR
Envelope-to: [EMAIL PROTECTED]
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Sender: [EMAIL PROTECTED]
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Sun, 04 Jul 2004 23:00:31 +0200
To: [EMAIL PROTECTED]
From: Vincent Graux <[EMAIL PROTECTED]>
Subject: [PHP-DEV] Probable Zend Engine/PHP issue on Win32
X-Virus-Scanned: by amavisd-new
X-DCC-tiscali.be-Metrics: basil 1027; Body=1 Fuz1=1 Fuz2=1
Hello,
Althought I usually try to avoid putting my fingers in a C/C++ IDE, I'm
trying to build a DLL on Win32 via porting the code (it's the
php_bwcache.dll, if you want to know)
I managed to get rid of all compile errors & warnings, but now I have
linker errors that I feel are due to Zend Engine settings in the provided
PHP/Windows binaries.
Even when successfully linking statically to php4ts.lib from latest &
stable PHP 4.3.7, I still receive those linking errors and can't get rid
of them :
--------------------Configuration: bwcache - Win32 Release_TS
PHP--------------------
Compiling...
bware_cache.c
Linking...
Creating library php_bwcache.lib and object php_bwcache.exp
bware_cache.obj : error LNK2001: unresolved external symbol
_compiler_globals_id
bware_cache.obj : error LNK2001: unresolved external symbol
_executor_globals_id
bware_cache.obj : error LNK2001: unresolved external symbol _empty_string
bware_cache.obj : error LNK2001: unresolved external symbol _zend_compile_file
php_bwcache.dll : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
Creating browse info file...
php_bwcache.dll - 5 error(s), 0 warning(s)
----------------
I upgraded my VC++ 5.0 compiler to SP3 and don't think this is an issue
I checked that compiler_globals_id (for instance) is indeed defined in the
php4ts.dll (and so should be in the .lib import lib)
Any advice welcome on those strange "unresolved externals",
Thanks & Regards,
VGR
Il vaut mieux hasarder de sauver un coupable que de condamner un innocent.
-Zadig, Voltaire
Jean-Marie Arouet , 1694-1778
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
C'est proprement ne rien valoir que ne n'�tre utile � personne.
-Descartes
Ren� Descartes, 1596-1650
--- End Message ---
--- Begin Message ---
And the relevant bit from the php.ini
==================================
; Directory in which the loadable extensions (modules) reside.
extension_dir = ".;C:\PHP\extensions;"
==================================
You need extension_dir to point to the location where your extensions
are located. Just set the absolute path in your php.ini:
extension_dir = "c:\php\extensions"
Also is the library actually IN your extensions directory? I'm not
running php 4 or else I could give more precise answers... sorry!
--- End Message ---
--- Begin Message ---
Jason,
The revised 'path' did the trick.
Ta.
George
> -----Original Message-----
> From: Jason Barnett [mailto:[EMAIL PROTECTED]
> Sent: 7 July 2004 8:25 am
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: PHP extension problem in new XP site
>
>
> > And the relevant bit from the php.ini
> >
> > ==================================
> > ; Directory in which the loadable extensions (modules) reside.
> > extension_dir = ".;C:\PHP\extensions;"
> > ==================================
> >
>
> You need extension_dir to point to the location where your extensions
> are located. Just set the absolute path in your php.ini:
> extension_dir = "c:\php\extensions"
>
> Also is the library actually IN your extensions directory? I'm not
> running php 4 or else I could give more precise answers... sorry!
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
You must set a tmp directory for created sesssion files; edit php.ini and
look for:
session.save_path = /tmp
replace it with say:
session.save_path = C:/temp
where C:/temp must exist and must be writable by PHP user
/* Rhemax */
"M. Imran Khan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Dear Users,
Can I manage the PHP session on windows.
I am running the Apache 1.3 and PHP. I got the warning:
Warning: open(/tmp\sess_2b69db87d2a153561e2972b4fb5eac3c, O_RDWR) failed: m
(2) in c:\program files\apache group\apache\htdocs\test\sess.php on line 2
Please can some one help me regarding this.
Regards,
M. Imran Khan
--- End Message ---
--- Begin Message ---
Good Morning PHP-Windows Listers,
The Problem: I'm trying to setup SSL on my Win2K, Apache(1.3.29),
PHP(4.3.6 with OpenSSL 0.9.7c enabled) system. My version of Apache does
not have mod_ssl installed, though I have downloaded but not installed
version 1.3.31 that does include OpenSSL 0.9.7d.
The Question: Were I to install Apache 1.3.31, would the difference in
OpenSSL releases -- c. vs. d. -- cause problems ( I'm guessing _yes_
). And if it would, does anyone know where I might find a binary of
mod_ssl that includes OpenSSL 0.9.7c ? ( I have been reading through the
information at www.modssl.org but have not found a binary version of
mod_ssl with OpenSSL 0.9.7c ).
Also, I will cheerfully accept any and all advice or insight about setting
up SSL. It is turning out to be more daunting than I imagined.
Please CC me if responding as I only get the digest of this list.
Much Thanks,
dave
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote on 7/07/04 15:47:
Good Morning PHP-Windows Listers,
The Problem: I'm trying to setup SSL on my Win2K, Apache(1.3.29),
PHP(4.3.6 with OpenSSL 0.9.7c enabled) system. My version of Apache does
not have mod_ssl installed, though I have downloaded but not installed
version 1.3.31 that does include OpenSSL 0.9.7d.
The Question: Were I to install Apache 1.3.31, would the difference in
OpenSSL releases -- c. vs. d. -- cause problems ( I'm guessing _yes_
). And if it would, does anyone know where I might find a binary of
mod_ssl that includes OpenSSL 0.9.7c ? ( I have been reading through the
information at www.modssl.org but have not found a binary version of
mod_ssl with OpenSSL 0.9.7c ).
Also, I will cheerfully accept any and all advice or insight about setting
up SSL. It is turning out to be more daunting than I imagined.
Please CC me if responding as I only get the digest of this list.
Much Thanks,
dave
Hi Dave,
Let me start with acknowledging that I'm far from an expert in the
daunting world of SSL. But the good news is that it didn't stop me from
putting together a working Apache 1.3.31 / mod_ssl 2.8.18 /
OpenSSL-0.9.7d / PHP 4.3.7 (as a module) on win32, thx to much
appreciated efforts of the PHP community at large (see links below).
If you're only looking for general ssl functionality, so that your
PHP-driven website(s) are available under both HTTP and HTTPS url's,
then you don't really need the php_openssl.dll at all. Apache's mod_ssl
will take care of this. Personally I don't do key generation and
certificate signing, so I cannot give an informed answer to the 'will
differences cause problems' part of your question. However, the PHP
Manual states you are strongly encouraged to use the most recent OpenSSL
version, otherwise your web server could be vulnerable to attack.
General rule of thumb actually ... You can always obtain the latest
stable Apache / mod_ssl-openssl binaries (both 1.3.x and 2.0.x) at
http://hunter.campbus.com/ (they work fine for me).
Now if you would want to use PHP to:
(1) read remote file using HTTPS via file_get_contents()
(2) read remote file using FTPS via file_get_contents()
(3) making a POST request to an https server via fsockopen()
the plot thickens. Theses things require your PHP setup has https/ftps
streams available. To my knowledge the official PHP windows binaries
don't have this by default. You can easily check by running a phpinfo()
script, the available streams are reported there. But luckily you can
achieve this by downloading an openssl-aware phpts.dll (has to be
similar to your PHP version) and use this instead of the one you
obtained in the official release. I have been using the ones found at
http://ftp.emini.dk/pub/php/win32/openssl/ for PHP 4.3.4 and 4.3.7
without a hitch. The PHP Manual contains example code for all 3
functionalities at http://www.php.net/manual/en/ref.stream.php
Good luck,
speedfreak
--- End Message ---
--- Begin Message ---
Hi
We recently upgraded from NT server to 2003 Server. We used to be able to
post events to the event viewer (to track errors in our application). After
the upgrade the event viewer does not show any events posted in it.
Mark Gilbert
--- End Message ---