Re: [PHP-DEV] php_gettext.dll

2003-03-11 Thread Edin Kadribasic
On Tuesday, Mar 11, 2003, at 03:35 Europe/Copenhagen, Nathan 
Fredrickson wrote:

Hi,
Is the CVS source out of date for gettext extension?  The distributed
php_gettext.dll dynamically loads libintl-1.dll.   The php_gettext.dll 
I
built from the CVS source is linked to gnu_gettext.lib.

How can I build a php_gettext.dll that works like the one in the win32
binary distribution?  (dynamiclly loads libintl.dll)
It could be that I compiled libintl differently. You can find all 
libraries and includes for the snapshot/release building machine at:

http://ftp.proventum.net/pub/php/win32/misc/dev/php_build/(include|lib)/

Edin

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


[PHP-DEV] Re: php4 /ext/fam fam.c /ext/fbsql php_fbsql.c /ext/hwapi hwapi.cpp /ext/hyperwave hw.c /ext/informix ifx.ec /ext/ingres_ii ii.c /ext/interbase interbase.c /ext/ircg ircg.c /ext/ldap ldap.c /ext/mbstring mbstring.c /ext/mssql php_mssql.c /ext/my

2003-03-11 Thread moshe doron
   Renamed OnUpdateInt - OnUpdateLong to prevent further misunderstandings.
   # Intentionally left out any 'alias' for it, this way 3rd party extension
   # maintainers will really NOTICE the change.

wl, right now the default php4 tree is broken for cygwin, is this what did u expected 
to gain?


gcc -I/cygdrive/d/php-dev/php4/ext/mysql/libmysql -Iext/mysql/ -I/cygdrive/d/php
-dev/php4/ext/mysql/ -DPHP_ATOM_INC -I/cygdrive/d/php-dev/php4/include -I/cygdri
ve/d/php-dev/php4/main -I/cygdrive/d/php-dev/php4 -I/cygdrive/d/php-dev/php4/Zen
d -I/cygdrive/d/php-dev/php4/ext/xml/expat  -I/cygdrive/d/php-dev/php4/TSRM  -g
-Wall  -c /cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.
o   echo  ext/mysql/php_mysql.lo
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:310: `OnUpdateLong' undeclared he
re (not in a function)
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:310: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:310: (near initialization for `in
i_entries[0].on_modify')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:310: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:310: (near initialization for `in
i_entries[0]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:311: `OnUpdateLong' undeclared he
re (not in a function)
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:311: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:311: (near initialization for `in
i_entries[1].on_modify')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:311: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:311: (near initialization for `in
i_entries[1]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:312: `OnUpdateLong' undeclared he
re (not in a function)
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:312: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:312: (near initialization for `in
i_entries[2].on_modify')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:312: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:312: (near initialization for `in
i_entries[2]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:313: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:313: (near initialization for `in
i_entries[3]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:314: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:314: (near initialization for `in
i_entries[4]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:315: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:315: (near initialization for `in
i_entries[5]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:316: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:316: (near initialization for `in
i_entries[6]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:317: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:317: (near initialization for `in
i_entries[7]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:318: `OnUpdateLong' undeclared he
re (not in a function)
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:318: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:318: (near initialization for `in
i_entries[8].on_modify')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:318: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:318: (near initialization for `in
i_entries[8]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:319: `OnUpdateLong' undeclared he
re (not in a function)
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:319: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:319: (near initialization for `in
i_entries[9].on_modify')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:319: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:319: (near initialization for `in
i_entries[9]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:320: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:320: (near initialization for `in
i_entries[10]')
make: *** [ext/mysql/php_mysql.lo] Error 1


moshe
-- 


[PHP-DEV] Some help with RegExp, please

2003-03-11 Thread fLIPIS
Hi all. I'm trying to deal with Regular Expressions, but somehow it is
getting more difficult. I´m trying to do the folowing:

Read a text and get all of the PHP code out of it, highlight it and then
print all in nice HTML. I'm using this to get the PHP code:

ereg(\?.*\?,$Text,$PHP_code);

It works, yeah, but on a situation like this:

?
echo ;
?
This is some other no php code
?
echo this is PHP;
?

It returns everything. What i really need is to get the contents between ?
and ?, and only that. I can imagine the RegExp is diung it right, because
ideed there are ? and, at the end of the text, another ?, but it is not
clever enough to take the PHP UP TO THE FIRST COINDICENCE OF ?, and so on,
and so on...

Can anyone help me? I would appreciate it very much.

Thanks anyway



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



Re: [PHP-DEV] Some help with RegExp, please

2003-03-11 Thread Derick Rethans
Hello,

please forward user questions to the [EMAIL PROTECTED]
mailinglist, this list is for development _OF_ PHP, not development
_with_ PHP.

Derick


On Tue, 11 Mar 2003, fLIPIS wrote:

 Hi all. I'm trying to deal with Regular Expressions, but somehow it is
 getting more difficult. I´m trying to do the folowing:
 
 Read a text and get all of the PHP code out of it, highlight it and then
 print all in nice HTML. I'm using this to get the PHP code:
 
 ereg(\?.*\?,$Text,$PHP_code);
 
 It works, yeah, but on a situation like this:
 
 ?
 echo ;
 ?
 This is some other no php code
 ?
 echo this is PHP;
 ?
 
 It returns everything. What i really need is to get the contents between ?
 and ?, and only that. I can imagine the RegExp is diung it right, because
 ideed there are ? and, at the end of the text, another ?, but it is not
 clever enough to take the PHP UP TO THE FIRST COINDICENCE OF ?, and so on,
 and so on...
 
 Can anyone help me? I would appreciate it very much.
 
 Thanks anyway
 
 
 
 

-- 
my other box is your windows PC
-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-

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



Re: [PHP-DEV] Re: Opening files for write from php modules

2003-03-11 Thread Wez Furlong
Even so, its a very good idea to use streams for this; you will
automatically make your extension safe_mode and open_basedir aware,
virtual cwd aware and be able to avoid crippling limitations of certain
OS (eg: Solaris can only fopen 256 files).

These things are particularly important in a web server environment.

--Wez.

On Mon, 10 Mar 2003, Scott Baker wrote:

 Nevermind... Seems the webserver was on afs filespace, and apache/php
 didnt like the permissions it had there.  Everything works now that I
 moved it to a jfs filesystem.

 Scott Baker wrote:
  I'm trying to write an extention that calls a C++ lib i've written. I've
  gotten the module to compile and function mostly correctly, but I have a
  problem opening files for writing within functions of the lib. My code
  links libpng to write image files to a img directory on the webserver.
  The problem is that any attempt to actually open a file for write fails:
 
 
  this is the code to open the file (standard stuff):
 
  FILE *pngout
  pngout = fopen(filename, wb);
 
  if (pngout==NULL) {
  fprintf(stderr,ERROR: Unable to open file %s for writing
  graph\n,filename);
  return -1;
  }
 
  This code works when i compile the lib as a stand-alone app, but fails
  when I call it from php.  I doubt permissions are the issue, I've gone
  as far as to chmod 777 the img dir it writes to, and I still get this
  error.  Is the problem that I need to use php streams to write to disk
  or something?  I'd like to be able to use the same lib linked into a php
  module and into a stand alone app.
  Thanks.
 
 
 
  Platform: PowerPC AIX 4.3.3. ml10
  Compiler: xlC  (the C++ one)
  PHP version: 4.0.6 (this is because this was the most resent IBM rpm for
  aix.  I had compile problems with newer versions, though i think b/c of
  the changes i've made to libtool, it should work now.) I had to edit
  libtool to use xlC's makeC++SharedLib script to get the module to link
  correctly.  I've compiled everything from my library to php to apache
  with xlC.
 


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




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



[PHP-DEV] Help with ereg()

2003-03-11 Thread fLIPIS
Hi all. I'm trying to deal with Regular Expressions, but somehow it is
getting more difficult. I´m trying to do the folowing:

Read a text and get all of the PHP code out of it, highlight it and then
print all in nice HTML. I'm using this to get the PHP code:

ereg(\?.*\?,$Text,$PHP_code);

It works, yeah, but on a situation like this:

?
echo ;
?
This is some other no php code
?
echo this is PHP;
?


Thanks all. I think this post is somewhere in the list, with another
subject.



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



Re: [PHP-DEV] Help with ereg()

2003-03-11 Thread Derick Rethans
Hello,

please forward user questions to the [EMAIL PROTECTED]
mailinglist, this list is for development _OF_ PHP, not development
_with_ PHP.

Derick



On Tue, 11 Mar 2003, fLIPIS wrote:

 Hi all. I'm trying to deal with Regular Expressions, but somehow it is
 getting more difficult. I´m trying to do the folowing:
 
 Read a text and get all of the PHP code out of it, highlight it and then
 print all in nice HTML. I'm using this to get the PHP code:
 
 ereg(\?.*\?,$Text,$PHP_code);
 
 It works, yeah, but on a situation like this:
 
 ?
 echo ;
 ?
 This is some other no php code
 ?
 echo this is PHP;
 ?
 
 
 Thanks all. I think this post is somewhere in the list, with another
 subject.
 
 
 
 

-- 
my other box is your windows PC
-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-

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



[PHP-DEV] New constants proposal

2003-03-11 Thread l0t3k
i suggest that we implement the constants NaN, as well as INFINITY (pos and
neg if the RTL supports it). i have need of them in an extension, but they
should be implemented in core or ext/standard.

l0t3k



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



[PHP-DEV] Segfault

2003-03-11 Thread Andrei Zmievski
With the latest ZE2:

?php

class Bar {
   function boo()
   {
::zoo();
   }
}

Bar::boo();

?

-Andrei   http://www.gravitonic.com/

The day Microsoft makes something that doesn't suck, 
is probably the day Microsoft starts making vacuum cleaners.
- Ernst Jan Plugge

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



Re: [PHP-DEV] Re: php4 /ext/fam fam.c /ext/fbsql php_fbsql.c /ext/hwapi hwapi.cpp /ext/hyperwave hw.c /ext/informix ifx.ec /ext/ingres_iiii.c /ext/interbase interbase.c /ext/ircg ircg.c /ext/ldap

2003-03-11 Thread Jani Taskinen

Your cvs checkout is broken:

  # cvs -d :pserver:[EMAIL PROTECTED]:/repository co php5

And it works fine.

--Jani


On Tue, 11 Mar 2003, moshe doron wrote:

   Renamed OnUpdateInt - OnUpdateLong to prevent further misunderstandings.
   # Intentionally left out any 'alias' for it, this way 3rd party extension
   # maintainers will really NOTICE the change.

wl, right now the default php4 tree is broken for cygwin, is this what did u expected 
to gain?


gcc -I/cygdrive/d/php-dev/php4/ext/mysql/libmysql -Iext/mysql/ -I/cygdrive/d/php
-dev/php4/ext/mysql/ -DPHP_ATOM_INC -I/cygdrive/d/php-dev/php4/include -I/cygdri
ve/d/php-dev/php4/main -I/cygdrive/d/php-dev/php4 -I/cygdrive/d/php-dev/php4/Zen
d -I/cygdrive/d/php-dev/php4/ext/xml/expat  -I/cygdrive/d/php-dev/php4/TSRM  -g
-Wall  -c /cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.
o   echo  ext/mysql/php_mysql.lo
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:310: `OnUpdateLong' undeclared he
re (not in a function)
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:310: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:310: (near initialization for `in
i_entries[0].on_modify')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:310: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:310: (near initialization for `in
i_entries[0]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:311: `OnUpdateLong' undeclared he
re (not in a function)
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:311: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:311: (near initialization for `in
i_entries[1].on_modify')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:311: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:311: (near initialization for `in
i_entries[1]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:312: `OnUpdateLong' undeclared he
re (not in a function)
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:312: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:312: (near initialization for `in
i_entries[2].on_modify')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:312: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:312: (near initialization for `in
i_entries[2]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:313: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:313: (near initialization for `in
i_entries[3]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:314: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:314: (near initialization for `in
i_entries[4]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:315: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:315: (near initialization for `in
i_entries[5]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:316: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:316: (near initialization for `in
i_entries[6]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:317: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:317: (near initialization for `in
i_entries[7]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:318: `OnUpdateLong' undeclared he
re (not in a function)
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:318: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:318: (near initialization for `in
i_entries[8].on_modify')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:318: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:318: (near initialization for `in
i_entries[8]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:319: `OnUpdateLong' undeclared he
re (not in a function)
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:319: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:319: (near initialization for `in
i_entries[9].on_modify')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:319: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:319: (near initialization for `in
i_entries[9]')
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:320: initializer element is not c
onstant
/cygdrive/d/php-dev/php4/ext/mysql/php_mysql.c:320: (near initialization for `in
i_entries[10]')
make: *** [ext/mysql/php_mysql.lo] Error 1


moshe


-- 
- For Sale! -


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



[PHP-DEV] Re: Fix for bug #22386

2003-03-11 Thread J Smith

Er, wrong patch. Proper one is attached.

J 

I wrote:

 
 The browscap extension is trying to load stuff into the object_store
 before it gets initialized, so this'll fix it. Entries from the
 browscap.ini file are now stored in straight hashes rather than objects,
 but the return value is still an object.
 
snip
 
 J
Index: browscap.c
===
RCS file: /repository/php4/ext/standard/browscap.c,v
retrieving revision 1.68
diff -u -r1.68 browscap.c
--- browscap.c	24 Jan 2003 16:29:40 -	1.68
+++ browscap.c	11 Mar 2003 17:52:14 -
@@ -34,11 +34,11 @@
 
 static void browscap_entry_dtor(zval *pvalue)
 {
-	if (Z_TYPE_P(pvalue) == IS_OBJECT) {
+	if (Z_TYPE_P(pvalue) == IS_ARRAY) {
 		TSRMLS_FETCH();
 
-		zend_hash_destroy(Z_OBJPROP_P(pvalue));
-		free(Z_OBJPROP_P(pvalue));
+		zend_hash_destroy(Z_ARRVAL_P(pvalue));
+		free(Z_ARRVAL_P(pvalue));
 	}
 }
 
@@ -61,8 +61,9 @@
 	}
 
 	t = (char *) malloc(Z_STRLEN_P(pattern)*2 + 1);
+	t[0] = '^';
 	
-	for (i=0, j=0; iZ_STRLEN_P(pattern); i++, j++) {
+	for (i=0, j=1; iZ_STRLEN_P(pattern); i++, j++) {
 		switch (Z_STRVAL_P(pattern)[i]) {
 			case '?':
 t[j] = '.';
@@ -114,32 +115,41 @@
 
 new_key = zend_strndup(Z_STRVAL_P(arg1), Z_STRLEN_P(arg1));
 zend_str_tolower(new_key, Z_STRLEN_P(arg1));
-zend_hash_update(Z_OBJPROP_P(current_section), new_key, Z_STRLEN_P(arg1)+1, new_property, sizeof(zval *), NULL);
+zend_hash_update(Z_ARRVAL_P(current_section), new_key, Z_STRLEN_P(arg1)+1, new_property, sizeof(zval *), NULL);
 free(new_key);
 			}
 			break;
 		case ZEND_INI_PARSER_SECTION: {
 zval *processed;
+zval *unprocessed;
 HashTable *section_properties;
 TSRMLS_FETCH();
 
 /*printf('%s' (%d)\n,$1.value.str.val,$1.value.str.len+1);*/
 current_section = (zval *) malloc(sizeof(zval));
 INIT_PZVAL(current_section);
+array_init(current_section);
 processed = (zval *) malloc(sizeof(zval));
 INIT_PZVAL(processed);
+unprocessed = (zval *) malloc(sizeof(zval));
+INIT_PZVAL(unprocessed);
 
 section_properties = (HashTable *) malloc(sizeof(HashTable));
-_object_and_properties_init(current_section, ZEND_STANDARD_CLASS_DEF_PTR, section_properties ZEND_FILE_LINE_CC TSRMLS_CC);
-			
 zend_hash_init(section_properties, 0, NULL, (dtor_func_t) browscap_entry_dtor, 1);
-zend_hash_update(browser_hash, Z_STRVAL_P(arg1), Z_STRLEN_P(arg1)+1, (void *) current_section, sizeof(zval *), NULL);  
+current_section-value.ht = section_properties;
+zend_hash_update(browser_hash, Z_STRVAL_P(arg1), Z_STRLEN_P(arg1)+1, (void *) current_section, sizeof(zval *), NULL);
 
 Z_STRVAL_P(processed) = Z_STRVAL_P(arg1);
 Z_STRLEN_P(processed) = Z_STRLEN_P(arg1);
 Z_TYPE_P(processed) = IS_STRING;
+Z_STRVAL_P(unprocessed) = Z_STRVAL_P(arg1);
+Z_STRLEN_P(unprocessed) = Z_STRLEN_P(arg1);
+Z_TYPE_P(unprocessed) = IS_STRING;
+Z_STRVAL_P(unprocessed) = zend_strndup(Z_STRVAL_P(unprocessed), Z_STRLEN_P(unprocessed));
+
 convert_browscap_pattern(processed);
-zend_hash_update(section_properties, browser_name_pattern, sizeof(browser_name_pattern), (void *) processed, sizeof(zval *), NULL);
+zend_hash_update(section_properties, browser_name_regex, sizeof(browser_name_regex), (void *) processed, sizeof(zval *), NULL);
+zend_hash_update(section_properties, browser_name_pattern, sizeof(browser_name_pattern), (void *) unprocessed, sizeof(zval *), NULL);
 			}
 			break;
 	}
@@ -154,6 +164,7 @@
 
 	if (browscap) {
 		zend_file_handle fh;
+		memset(fh, 0, sizeof(fh));
 
 		if (zend_hash_init(browser_hash, 0, NULL, (dtor_func_t) browscap_entry_dtor, 1)==FAILURE) {
 			return FAILURE;
@@ -197,7 +208,11 @@
 	if (*found_browser_entry) { /* already found */
 		return 0;
 	}
-	if(zend_hash_find(Z_OBJPROP_PP(browser), browser_name_pattern, sizeof(browser_name_pattern), (void **) browser_name) == FAILURE) {
+	if (zend_hash_find(Z_ARRVAL_PP(browser), browser_name_regex, sizeof(browser_name_regex), (void **) browser_name) == FAILURE) {
+		return 0;
+	}
+
+	if (Z_STRVAL_PP(browser_name)[0] != '^') {
 		return 0;
 	}
 	if (regcomp(r, Z_STRVAL_PP(browser_name), REG_NOSUB)!=0) {
@@ -215,35 +230,35 @@
Get information about the capabilities of a browser */
 PHP_FUNCTION(get_browser)
 {
-	zval **agent_name, **agent;
+	zval **agent_name = NULL, **agent, **retarr;
 	zval *found_browser_entry, *tmp_copy;
 	char *lookup_browser_name;
+	zend_bool return_array = 0;
 
 	if (!INI_STR(browscap)) {
 		php_error_docref(NULL TSRMLS_CC, E_WARNING, browscap ini directive not set.);
 		RETURN_FALSE;
 	}
-	
-	switch(ZEND_NUM_ARGS()) {
-		case 0:
-			if (!PG(http_globals)[TRACK_VARS_SERVER]
-|| zend_hash_find(PG(http_globals)[TRACK_VARS_SERVER]-value.ht, HTTP_USER_AGENT, sizeof(HTTP_USER_AGENT), (void **) agent_name)==FAILURE) {
-php_error_docref(NULL TSRMLS_CC, E_WARNING, HTTP_USER_AGENT variable is not set, cannot determine user 

Re: [PHP-DEV] [PATCH] OCI8 link failure (Tru64/AIX) (#22324)

2003-03-11 Thread Michael Mauch
Jani Taskinen [EMAIL PROTECTED] wrote:
 
I still don't think we should be linking with libocijdbc8 in any case.
Can you ask some Oracle support why their libs differ with same version 
but in different OSes??

I can try to do so [1], although I don't see what that will buy us.

From Oracle9i Administrator's Reference
http://download-east.oracle.com/docs/html/A97297_01/ch4_comp.htm#i26133,
chapter 4, Using Oracle Precompilers and the Oracle Call Interface:

| Custom Make Files
| 
| Oracle Corporation recommends that you use the provided demo_product.mk
| make files to create user programs as described in the specific product
| sections of this chapter.
| [...]
| If you choose to use a make utility such as nmake or GNU make, be aware
| of how macro and suffix processing differs from the make utility
| provided with the platform. Oracle make files are tested and are
| supported with the make utility for your platform.

The demo_product.mk is in reality called demo_rdbms.mk - and of course
it's virtually undocumented.

| Oracle library names and the contents of Oracle libraries are subject to
| change between releases. Always use the demo_product.mk make file that
| ships with the current release as a guide to determine the required
| libraries.

Then they go on to explain their symfind utility, which is a shell
script around find, grep and nm - with platform-specific output [2].

| Correcting Undefined Symbols (Solaris Only)
|
| Oracle provides the symfind utility to assist you in locating a library
| or object file where a symbol is defined. When linking a program,
| undefined symbols are a common error that produce an error message
| similar to the following:
 
IMHO this is totally unacceptable. If they can't provide a well-defined
set of interface libraries, they should at least offer some kind of
oci-config or a few text files with -lsomelib -lanotherlib lines.

But no matter how hard we wish they had some such thing, they don't have
it at the moment - and even if they would suddenly start to clean up
that whole mess, it would probably take a long time until their patches
would be installed everywhere.

I still think that the best solution would be to check if linking with
-lcntsh alone is enough to get OCILobIsTemporary, and if not, check if
it works with -locijdbc8.

Regards...
Michael

[1]: My question in the Oracle Technology Network forum has not been
answered for two weeks now, ditto in comp.databases.oracle.misc.

[2]: Symfind (or nm) finds the OCILobIsTemporary definition (T) not only
in libocijdbc8.so, but also in libclntsh.so and a few other libs:

OCILobIsTemporary|  | U | 0008
^^^ ./lib/libsql8.a
OCILobIsTemporary| 0004396969863776 | T | 0008
^^^ ./lib/libnjni8.so
OCILobIsTemporary| 5408 | T | 0008
^^^ ./lib/libclient8.a
OCILobIsTemporary| 5408 | T | 0008
OCILobIsTemporary|  | U | 0008
^^^ ./lib/libclntst8.a
OCILobIsTemporary| 0004396969227952 | T | 0008
^^^ ./lib/libocijdbc8.so
OCILobIsTemporary| 0004396962545744 | T | 0008
^^^ ./lib/libocijdbc8_g.so
OCILobIsTemporary|  | U | 0008
^^^ ./lib/libsqlplus.a
OCILobIsTemporary|  | U | 0008
^^^ ./lib/libordim8.a
OCILobIsTemporary| 0004396966909952 | T | 0008
^^^ ./lib/libclntsh.so

This is on the Compaq/HP test drive with Tru64 5.1 and Oracle 8.1.7.

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



[PHP-DEV] Segfault with latest CVS

2003-03-11 Thread Martin Jansen
Hi,

the following script makes this morning's CVS segfault:

?php require_once DB.php; ?

DB.php is from the latest release of PEAR::DB. I can not provide a
backtrace at the moment, but if you need one, just drop a mail.

-- 
- Martin   Martin Jansen
http://martinjansen.com/

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



Re: [PHP-DEV] [patch] solaris getcwd() brokeness

2003-03-11 Thread Andi Gutmans
I think the patch is OK. I'm not extremely happy with it because I don't 
think it's very beautiful but I didn't have time to think of a better way 
of fixing it.
I think he can go ahead and commit it but I'd like there to be comments in 
the source code to explain why those checks on state-cwd_length are being 
made. This will help ppl understand this weirdness later on...

Andi

At 04:38 PM 3/10/2003 +0200, Jani Taskinen wrote:

Andi, what's the status with this?

--Jani

On Sun, 23 Feb 2003, Wez Furlong wrote:

Hi Andi (and James)

Andi: I'd appreciate your comments on this patch, specifically if there
are any concerns about it doing the right thing.

Most people here:
http://bugs.php.net/bug.php?id=21310edit=1

report that it fixes their problems with solaris.

I've held off from looking at this, as I didn't want to duplicate any
effort you have been making.

--Wez.

On Sun, 16 Feb 2003, Andi Gutmans wrote:

 At 03:41 PM 2/13/2003 -0500, James E. Flemer wrote:
 RCS file: /repository/TSRM/tsrm_virtual_cwd.c,v
 retrieving revision 1.41
 diff -u -b -r1.41 tsrm_virtual_cwd.c
 --- TSRM/tsrm_virtual_cwd.c 6 Nov 2002 18:07:22 -   1.41
 +++ TSRM/tsrm_virtual_cwd.c 13 Feb 2003 20:40:07 -
 @@ -303,7 +303,7 @@
  return (0);
 
   #if !defined(TSRM_WIN32)  !defined(NETWARE)
 -   if (IS_ABSOLUTE_PATH(path, path_length)) {
 +   if (IS_ABSOLUTE_PATH(path, path_length) || (state-cwd_length 
 1)) {
  if (use_realpath  realpath(path, resolved_path)) {
  path = resolved_path;
  path_length = strlen(path);

 Will realpath() work in cases where getcwd() didn't work? (btw it's nicer
 to check state-cwd_length == 0 than  1 IMO).

 @@ -363,6 +363,7 @@
  }
 
 
 +  if (state-cwd_length  0 || IS_ABSOLUTE_PATH(path, path_length)) {
  ptr = tsrm_strtok_r(path_copy, TOKENIZER_STRING, tok);
  while (ptr) {
  ptr_length = strlen(ptr);
 @@ -416,6 +417,11 @@
  state-cwd[state-cwd_length+1] = '\0';
  state-cwd_length++;
  }
 +  } else {
 +   state-cwd = (char *) realloc(state-cwd, path_length+1);
 +   memcpy(state-cwd, path, path_length+1);
 +   state-cwd_length = path_length;
 +  }

 I'm trying to think if there's some other way of doing this. What is the
 main problem in this loop? Does it add  / or c:\ in the beginning of the
 string?

 Andi


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







--
- For Sale! -


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


Re: [PHP-DEV] Segfault with latest CVS

2003-03-11 Thread Sebastian Bergmann
Martin Jansen wrote:
 ?php require_once DB.php; ?

  Most likely this will be caused by

856 $this-$key = $arr[$key];

  as variable member access causes a segfault in the compiler.

-- 
  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



[PHP-DEV] Flex check in configure

2003-03-11 Thread Dave Hill


Hi again,
   I am looking at the flex check in configure.in again. If flex is not 
present, or is not version 2.5.4 then you may get your environment 
dumped to stdout while running configure. This is due to the set command 
being run with no arguments.

Although non-fatal - it certainly is ugly.

Part of the problem with flex versions is that they are not consistant :-p

I took a crack at a fix, but am uncomfortable making the change as I 
don't really have the history on this one. If some of you out there 
would be so kind as to point out any flaws in my reasoning, I would 
apreciate it. (For example, there is a grep for the line containing 
'version' that I don't seem to need with the 3 versions of flex I checked).

If one of you config wizards wants to make the change - be my guest.

Dave

here is what the current test looks like:

set `echo  | $LEX -V -v --version 2/dev/null | grep 'version' | cut 
-d ' ' -f
3 | sed -e 's/\./ /g' | sed -e 's/[^0-9 ]//g'`
if test ${1} != 2 -o ${2} != 5 -o ${3} -lt 4; then
AC_MSG_WARN(You will need flex 2.5.4 or later if you want to 
regenerate
Zend/PHP lexical parsers.)
fi

I am proposing:

flexvers=`echo  | $LEX -V -v --version 2/dev/null | sed -e 's/^.* //' 
-e 's/\
./ /g'`
if test ! -z $flexvers; then
   set $flexvers
   if test ${1} != 2 -o ${2} != 5 -o ${3} -lt 4; then
   AC_MSG_WARN(You will need flex 2.5.4 or later if you want to 
regenerate
Zend/PHP lexical parsers.)
   fi
fi



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


Re: [PHP-DEV] Segfault

2003-03-11 Thread Zeev Suraski
Fixed!

Thanks,

Zeev

At 18:17 11/03/2003, Andrei Zmievski wrote:
With the latest ZE2:

?php

class Bar {
   function boo()
   {
::zoo();
   }
}
Bar::boo();

?

-Andrei   http://www.gravitonic.com/

The day Microsoft makes something that doesn't suck,
is probably the day Microsoft starts making vacuum cleaners.
- Ernst Jan Plugge
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


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


Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Marcus Börger
At 19:05 10.03.2003, Marcus Börger wrote:
Standard PHP Library
Updated version allows:

class obj_array implements spl::array_read {
   bla ...
}
$obj = new obj_array();

$value = $obj[$index];

marcus

--
--
Marcus Börger - Looking for all sorts of freelance work - just ask...
Did i help you? Consider a gift:
http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0
--
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Stephen Thorne
All this is starting to feel strangely pythonic.

How soon till 
('pre'.($_GET['textArea']-strip_tags()).'/pre')-print(); ?

Stephen.

On Wed, 12 Mar 2003 10:24, Marcus Börger wrote:
 At 19:05 10.03.2003, Marcus Börger wrote:
 Standard PHP Library

 Updated version allows:

 class obj_array implements spl::array_read {
 bla ...
 }

 $obj = new obj_array();

 $value = $obj[$index];

 marcus


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



Re: [PHP-DEV] iterating objects with interfaces

2003-03-11 Thread Marcus Börger
At 01:48 12.03.2003, Stephen Thorne wrote:
All this is starting to feel strangely pythonic.

How soon till
('pre'.($_GET['textArea']-strip_tags()).'/pre')-print(); ?


Very far of because i am working with objects and interfaces and have no
plan for other types as arrays and longs
marcus

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


[PHP-DEV] Segmentation violation

2003-03-11 Thread Matt
Hi, i've never posted to this newsgroup b4 so pls don't shoot me down if 
this is not protocol. But I've been trying to debug a seg fault trying 
varying options from various postings with little success. After generating 
a stacktrace I'm not sure really what to do next to find the problem. If 
anyone can help me, given the trace below that'd be fantastic.

thanks,

Matt - [EMAIL PROTECTED]

#0  0x0835036f in ?? ()
#1  0x404090b4 in _zval_dtor (zvalue=0x83545f4) at 
/tmp/php-4.3.1/Zend/zend_variables.c:51
#2  0x40402909 in _zval_ptr_dtor (zval_ptr=0xbfffce00) at 
/tmp/php-4.3.1/Zend/zend_execute_API.c:289
#3  0x403d56cf in php_var_unserialize (rval=0xbfffce00, p=0xbfffce04, 
max=0x8347078 \005,
var_hash=0xbfffce08) at 
/tmp/php-4.3.1/ext/standard/var_unserializer.c:762
#4  0x40389785 in ps_srlzr_decode_php (val=0x3d36ab6c Address 0x3d36ab6c 
out of bounds,
vallen=10564) at /tmp/php-4.3.1/ext/session/session.c:485
#5  0x40389a57 in php_session_decode (
val=0x8344734 
logged_in|s:5:\false\;_env|O:11:\environment\:25:{s:4:\_dbc\;O:11:\patmysqld   

bc\:6:{s:6:\dbhost\;s:9:\localhost\;s:6:\dbuser\;s:4:\root\;s:6:\dbpass\;s:11:\thebedotcom
   
\;s:6:\dbname\;s:12:\dbSupportLog\..., vallen=10564)
at /tmp/php-4.3.1/ext/session/session.c:532
#6  0x40389d0a in php_session_initialize () at 
/tmp/php-4.3.1/ext/session/session.c:617
#7  0x4038ac77 in php_session_start () at 
/tmp/php-4.3.1/ext/session/session.c:1012
#8  0x4038c479 in zif_session_start (ht=0, return_value=0x8344564, 
this_ptr=0x0, return_value_used=0)
at /tmp/php-4.3.1/ext/session/session.c:1453
#9  0x40417816 in execute (op_array=0x833e6b4) at 
/tmp/php-4.3.1/Zend/zend_execute.c:1596
#10 0x4040a6b7 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /tmp/php-4.3.1/Zend/zend.c:864
#11 0x403e3a9e in php_execute_script (primary_file=0xb420) at 
/tmp/php-4.3.1/main/main.c:1573
#12 0x4041befc in php_output_filter (f=0x8198e78, bb=0x819b478)
at /tmp/php-4.3.1/sapi/apache2filter/sapi_apache2.c:465
#13 0x08088e57 in ap_pass_brigade (next=0x8198e78, bb=0x819b048) at 
util_filter.c:540
#14 0x080906a8 in default_handler (r=0x8197018) at core.c:3320
#15 0x0807c069 in ap_run_handler (r=0x8197018) at config.c:194
#16 0x0807c6d5 in ap_invoke_handler (r=0x8197018) at config.c:401
#17 0x0806be93 in ap_process_request (r=0x8197018) at http_request.c:288
#18 0x08067429 in ap_process_http_connection (c=0x81909a8) at 
http_core.c:293
#19 0x08086949 in ap_run_process_connection (c=0x81909a8) at connection.c:85
---Type return to continue, or q return to quit---
#20 0x08086c5f in ap_process_connection (c=0x81909a8, csd=0x81908d8) at 
connection.c:207
#21 0x0807a906 in child_main (child_num_arg=0) at prefork.c:696
#22 0x0807a9c8 in make_child (s=0x80ba178, slot=0) at prefork.c:736
#23 0x0807aae3 in startup_children (number_to_start=5) at prefork.c:808
#24 0x0807aee9 in ap_mpm_run (_pconf=0x80b7b10, plog=0x80efbf0, s=0x80ba178) 
at prefork.c:1024
#25 0x08081169 in main (argc=2, argv=0xb7a4) at main.c:643
#26 0x40210082 in __libc_start_main () from /lib/i686/libc.so.6


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



Re: [PHP-DEV] php_gettext.dll

2003-03-11 Thread Nathan Fredrickson
Edin Kadribasic [EMAIL PROTECTED] wrote:

 On Tuesday, Mar 11, 2003, at 03:35 Europe/Copenhagen, Nathan
 Fredrickson wrote:

  Hi,
  Is the CVS source out of date for gettext extension?  The distributed
  php_gettext.dll dynamically loads libintl-1.dll.   The php_gettext.dll I
  built from the CVS source is linked to gnu_gettext.lib.
 
  How can I build a php_gettext.dll that works like the one in the win32
  binary distribution?  (dynamiclly loads libintl.dll)

 It could be that I compiled libintl differently. You can find all
 libraries and includes for the snapshot/release building machine at:

 http://ftp.proventum.net/pub/php/win32/misc/dev/php_build/(include|lib)/


Thanks Edin.  I downloaded libintl.lib from above and linked with it.  The
resulting php_gettext.dll now works the same as the distrubuted one. It
dynamically loads libintl-1.dll at runtime.

You may be insterested to know that libintl.lib and gnu_gettext.lib are
identical. I think gnu_gettext.lib (old lib name) can be removed if we link
to libintl.lib (newer lib name) instead.  Patch to the project file is
attached.

Nathan


begin 666 gettext-dsp-patch.txt
M+2TM(=E='1E'0M9ES=YDW )5'5E($UAB Q,2 R,3HT-CHU,R R,# S
MBLK*R!G971T97AT+F1S [EMAIL PROTECTED](#$Q(#(Q.C0W.C0V(#(P,#,*0$ @
M+34T+#@*S4T+#@0$ *(,@041$($)30S,R(]N;VQO9V\-B!,24Y+,S(]
M;EN:RYE4-B C($%$1!05-%($Q)3DLS,B!K97)N96PS,BYL:6(@=7-E
MC,R+FQI8B!G9DS,BYL:6(@=VENW!O;VPN;EB(-O;61L9S,R+FQI8B!A
M9'9ADS,BYL:6(@VAE;PS,BYL:6(@;VQE,S(N;EB(]L96%U=#,R+FQI
M8B!U=6ED+FQI8B!O9)C,S(N;EB(]D8F-C#,R+FQI8B!P:' T=',N;EB
M(]N;[EMAIL PROTECTED]; O;6%C:EN93I),[EMAIL PROTECTED](]O=70Z(BXN7XN7%)E;5A
MV5?5%,OAP7V=E='1E'0N9QL(B O;EB%T:#HB+BY+BY4F5L96%S
M95]44R(@+VQI8G!A=@Z(BXN7XN7%)E;5AV5?5%-?26YL:6YE(@T*+2,@
M041$($Q)3DLS,B!P:' T=',N;EB(=N=5]G971T97AT+FQI8B!K97)N96PS
M,BYL:6(@=7-EC,R+FQI8B!G9DS,BYL:6(@=VENW!O;VPN;EB(-O;61L
M9S,R+FQI8B!A9'9ADS,BYL:6(@VAE;PS,BYL:6(@;VQE,S(N;EB(]L
M96%U=#,R+FQI8B!U=6ED+FQI8B!O9)C,S(N;EB(]D8F-C#,R+FQI8B O
M;F]L;V=O(]D;[EMAIL PROTECTED];F4Z23,X-B O;W5T.B(N+EPN+EQ296QE87-E
M7U13+W!H%]G971T97AT+F1L;(@+VQI8G!A=@Z(BXN7XN7%)E;5AV5?
M5%,B(]L:6)P871H.B(N+EPN+EQ296QE87-E7U137TEN;EN92(-BLC($%$
M1!,24Y+,S(@AP-'1S+FQI8B!L:6)I;G1L+FQI8B!K97)N96PS,BYL:6(@
M=7-EC,R+FQI8B!G9DS,BYL:6(@=VENW!O;VPN;EB(-O;61L9S,R+FQI
M8B!A9'9ADS,BYL:6(@VAE;PS,BYL:6(@;VQE,S(N;EB(]L96%U=#,R
M+FQI8B!U=6ED+FQI8B!O9)C,S(N;EB(]D8F-C#,R+FQI8B O;F]L;V=O
M(]D;[EMAIL PROTECTED];F4Z23,X-B O;W5T.B(N+EPN+EQ296QE87-E7U13+W!H
M%]G971T97AT+F1L;(@+VQI8G!A=@Z(BXN7XN7%)E;5AV5?5%,B(]L
M:6)P871H.B(N+EPN+EQ296QE87-E7U137TEN;EN92(-B -B A14Q314E
M( B)A#1DI(B ]/2 B9V5T=5X= M(%=I;C,R($1E8G5G7U13(@T*( T*
M0$ @[EMAIL PROTECTED]@[EMAIL PROTECTED]@0$ *(,@041$($)30S,R(]N;VQO9V\-B!,24Y+
M,S(];EN:RYE4-B C($%$1!05-%($Q)3DLS,B!K97)N96PS,BYL:6(@
M=7-EC,R+FQI8B!G9DS,BYL:6(@=VENW!O;VPN;EB(-O;61L9S,R+FQI
M8B!A9'9ADS,BYL:6(@VAE;PS,BYL:6(@;VQE,S(N;EB(]L96%U=#,R
M+FQI8B!U=6ED+FQI8B!O9)C,S(N;EB(]D8F-C#,R+FQI8B!P:' T=',N
M;EB(]N;[EMAIL PROTECTED]; O;6%C:EN93I),[EMAIL PROTECTED](]O=70Z(BXN+RXN+T1E
M8G5G7U13+W!H%]G971T97AT+F1L;(@+VQI8G!A=@Z(BXN7XN7$1E8G5G
M7U13(@T*+2,@041$($Q)3DLS,B!P:' T='-?95B=6N;EB(=N=5]G971T
M97AT+FQI8B!K97)N96PS,BYL:6(@=7-EC,R+FQI8B!G9DS,BYL:6(@=VEN
MW!O;VPN;EB(-O;61L9S,R+FQI8B!A9'9ADS,BYL:6(@VAE;PS,BYL
M:6(@;VQE,S(N;EB(]L96%U=#,R+FQI8B!U=6ED+FQI8B!O9)C,S(N;EB
M(]D8F-C#,R+FQI8B O;F]L;V=O(]D;[EMAIL PROTECTED])E;65N=%L.GEER O
M95B=6@+VUA8VAI;F4Z23,X-B O;W5T.B(N+B\N+B]$96)U9U]44R]P:'!?
M9V5T=5X=YD;PB(]L:6)P871H.B(N+EPN+EQ$96)U9U]44R(-BLC($%$
M1!,24Y+,S(@AP-'1S7V1E8G5G+FQI8B!L:6)I;G1L+FQI8B!K97)N96PS
M,BYL:6(@=7-EC,R+FQI8B!G9DS,BYL:6(@=VENW!O;VPN;EB(-O;61L
M9S,R+FQI8B!A9'9ADS,BYL:6(@VAE;PS,BYL:6(@;VQE,S(N;EB(]L
M96%U=#,R+FQI8B!U=6ED+FQI8B!O9)C,S(N;EB(]D8F-C#,R+FQI8B O
M;F]L;V=O(]D;[EMAIL PROTECTED])E;65N=%L.GEER O95B=6@+VUA8VAI;F4Z
M23,X-B O;W5T.B(N+B\N+B]$96)U9U]44R]P:'!?9V5T=5X=YD;PB(]L
I:6)P871H.B(N+EPN+EQ$96)U9U]44R(-B -B [EMAIL PROTECTED]@#0H`
`
end


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



[PHP-DEV] PHP Startup Error In Apache

2003-03-11 Thread Ray Hunter

Has anyone seen these startup errors before?

These are from my apache error_log file when i start up apache:

PHP Warning:  Unknown(): Unable to load dynamic library
'/usr/local/php-4.3.0/lib/php/extensions/no-debug-non-zts-20020429/xslt.so' - 
/usr/local/php-4.3.0/lib/php/extensions/no-debug-non-zts-20020429/xslt.so: cannot open 
shared object file: No such file or directory in Unknown on line 0

PHP Warning:  Unknown(): Unable to load dynamic library
'/usr/local/php-4.3.0/lib/php/extensions/no-debug-non-zts-20020429/xmlrpc.so' - 
/usr/local/php-4.3.0/lib/php/extensions/no-debug-non-zts-20020429/xmlrpc.so: cannot 
open shared object file: No such file or directory in Unknown on line 0

PHP Warning:  Unknown(): Unable to load dynamic library
'/usr/local/php-4.3.0/lib/php/extensions/no-debug-non-zts-20020429/xml.so' - 
/usr/local/php-4.3.0/lib/php/extensions/no-debug-non-zts-20020429/xml.so: cannot open 
shared object file: No such file or directory in Unknown on line 0

PHP:4.3.0 - 4.3.1
Apache: 1.3.27
Mandrake:   9.0


How can i fix these warnings?


Thanks,

Ray


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



Re: [PHP-DEV] Segfault with latest CVS

2003-03-11 Thread Martin Jansen
On Tue Mar 11, 2003 at 10:5232PM +0100, Sebastian Bergmann wrote:
 Martin Jansen wrote:
  ?php require_once DB.php; ?
 
   Most likely this will be caused by
 
 856 $this-$key = $arr[$key];
 
   as variable member access causes a segfault in the compiler.

Will this be fixed or has there been a decision to leave it segfaulting?

-- 
- Martin   Martin Jansen
http://martinjansen.com/

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



Re: [PHP-DEV] [PATCH] OCI8 link failure (Tru64/AIX) (#22324)

2003-03-11 Thread Thies C. Arntzen
 I still think that the best solution would be to check if linking with
 -lcntsh alone is enough to get OCILobIsTemporary, and if not, check if
 it works with -locijdbc8.

i think that makes sense.

re,
tc

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



Re: [PHP-DEV] Segfault with latest CVS

2003-03-11 Thread Derick Rethans
On Wed, 12 Mar 2003, Martin Jansen wrote:

 On Tue Mar 11, 2003 at 10:5232PM +0100, Sebastian Bergmann wrote:
  Martin Jansen wrote:
   ?php require_once DB.php; ?
  
Most likely this will be caused by
  
  856 $this-$key = $arr[$key];
  
as variable member access causes a segfault in the compiler.
 
 Will this be fixed or has there been a decision to leave it segfaulting?

uhm, this will be fixed ... some time :)

Derick

-- 
my other box is your windows PC
-
 Derick Rethans http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
-

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