Re: [PHP-DEV] linking librarys into php4 extensions

2002-07-04 Thread David Eriksson

On Wed, 3 Jul 2002, Ron Lange wrote:

 Hi,
 I have set additional headers and AC_ADD_LIBRARY_WITH_PATH in the config.m4 
 of my extension to link with external libs. The php 'make --with-extension 
 --with-apache=[pathtoapache]' builds w/o errors, but at the following 
 apache 'configure --activate-module=src/modules/php4/libphp4.a' I get 
 follwing message:
  Error Output for sanity check 
 cd ..; gcc  -DLINUX=22 -I/usr/src/php-4.2.1 -I/usr/src/php-4.2.1/main 
 -I/usr/src/php-4.2.1/main -I/usr/src/php-4.2.1/Zend 
 -I/usr/src/php-4.2.1/Zend -I/usr/src/php-4.2.1/TSRM 
 -I/usr/src/php-4.2.1/TSRM -I/usr/src/php-4.2.1 -DNO_DL_NEEDED `./apaci` 
 -o helpers/dummy helpers/dummy.c   -Wl,-rpath,/usr/src/INDI/lib  
 -rdynamic -L/usr/src/INDI/lib -Lmodules/php4 -L../modules/php4
 -L../../modules/php4 -lmodphp4   -llibmmem -llibndr -llibIndiComm -lcrypt 
 -lresolv -lm -ldl -lnsl
  -lresolv -lcrypt   -lm -lcrypt -lexpat
 /usr/i486-suse-linux/bin/ld: cannot find -llibmmem
 collect2: ld returned 1 exit status
 make: *** [dummy] Error 1
 = End of Error Report =
 
  Aborting!
 I wonder since the libs libmmem, libIndiComm and libndr(*.a and *.so) 
 laying in the dirs which are set by -L. Any idea?

Omit lib. For a library called libmmem.so, you should use -lmmem as a
linker parameter.

-\- David Eriksson -/-

I personally refuse to use inferior tools because of ideology.
- Linus Torvalds 


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] SAPI/CGI from HEAD (on Win32)

2002-07-04 Thread Sebastian Bergmann

?php
  phpinfo();
?

  lets Mozilla download the file.

?php
  header('Content-Type: text/html; charset=iso-8859-1');
  phpinfo();
?

  lets Mozilla show the file.

  The latter is intended behaviour, I think.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] SAPI/CGI from HEAD (on Win32)

2002-07-04 Thread derick

On Thu, 4 Jul 2002, Sebastian Bergmann wrote:

 ?php
   phpinfo();
 ?
 
   lets Mozilla download the file.
 
 ?php
   header('Content-Type: text/html; charset=iso-8859-1');
   phpinfo();
 ?
 
   lets Mozilla show the file.
 
   The latter is intended behaviour, I think.

I have some idea who fucked this up :) :
http://cvs.php.net/diff.php/php4/sapi/cgi/cgi_main.c?r1=1.174r2=1.175ty=h

Derick

---
 Did I help you?   http://www.derickrethans.nl/link.php?url=giftlist
 Frequent ranting: http://www.derickrethans.nl/
---
 PHP: Scripting the Web - [EMAIL PROTECTED]
All your branches are belong to me!
SRM: Script Running Machine - www.vl-srm.net
---


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] SAPI/CGI from HEAD (on Win32)

2002-07-04 Thread Edin Kadribasic

 On Thu, 4 Jul 2002, Sebastian Bergmann wrote:

  ?php
phpinfo();
  ?
 
lets Mozilla download the file.
 
  ?php
header('Content-Type: text/html; charset=iso-8859-1');
phpinfo();
  ?
 
lets Mozilla show the file.
 
The latter is intended behaviour, I think.

 I have some idea who fucked this up :) :

http://cvs.php.net/diff.php/php4/sapi/cgi/cgi_main.c?r1=1.174r2=1.1
75ty=h

 Derick

Confirmed on Linux as well. PHP now prints only:

Status: 200
X-Powered-By: PHP/4.3.0-dev

The content-type header is missing.

Edin



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] extension problem

2002-07-04 Thread adel

hi
I have an extension problem.
i have wrote this exemple
#include...
char* xx(){

return true;


}
it's a simple example.
I have compiled it into .SO dynamic library.
when I try to load it into PHP i get this message
cannot include .(may be not php extension).
CAN YOU HELP ME PLEASE.




[PHP-DEV] Zend Engine Alpha 2 and ADOdb

2002-07-04 Thread John Lim

Well I just ran ZE Alpha 2 and the ADOdb regression tests (connecting to
MySQL) and it passed once or twice. However it crashes with bad memory
accesses the rest of the time (eg. 99% of the time).

I'm still pleased as I presume that ADOdb was correctly parsed by ZE2 and
its other bugs that caused the crash.



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] PEAR on Windows

2002-07-04 Thread Jonas Koch Bentzen

[This is a continuation of the thread named PEAR on Windows in 
php.pear.general]

Hi,

Regarding the Windows version of PHP: Is there any way you could make 
the include_path include the pear directory by default? That way, people 
could just require_once(DB.php) without changing include_path in their 
php.ini. I don't use Windows myself, but from what I've heard, the pear 
directory is inside the base PHP directory, so it shouldn't be hard for 
the PHP binary to figure out where the PEAR directory is, or...?


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Output Buffering and error messages?

2002-07-04 Thread Kristian Koehntopp


How does PHP handle error messages when some ob_handler is 
engaged? Are they caught as well? If so, why?

Kristian


--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] linking librarys into php4 extensions

2002-07-04 Thread Ron Lange

Hi David, 
thanks a lot!
Regards
Ron

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] file_exists() stopped working

2002-07-04 Thread Sebastian Bergmann

  file_exists() seems to return always FALSE on Win32 with current HEAD.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/ http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] file_exists() stopped working

2002-07-04 Thread Sterling Hughes

   file_exists() seems to return always FALSE on Win32 with current HEAD.


hrmm, ok.. I'll add a patch to filestat.c by tommorow which fixes these
problems.

I really wish we were using apr or such.

-Sterling

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] CVS Account Request: ssri

2002-07-04 Thread Sri

i'm student so i develope an e-commerse web site to present in the final year exam

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] CVS Account Request: daif

2002-07-04 Thread daif

Hello All
I Love PHP
So I Want Translating the documentation To Arabic 
And Website.
Thanke

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] CVS Account Request: staybyte

2002-07-04 Thread Steve Alberty

Hi,

i need cvs access, because i'm currently in the ming developer group
and i have improve some functions in this extension and some adjustments
of ming.c are required in the near future.
Ming is currently very experimental and i hope i can improve the state.
Also i'll complete the incomplete ming documentation.

Regards,

Steve

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php