[PHP-DEV] Re: INI defaults for CLI

2003-03-02 Thread nicos
Nothing attached...

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Marcus Börger [EMAIL PROTECTED] a écrit dans le message de
news: [EMAIL PROTECTED]
Hi,

the current implementation does not allow to overwrite the hard
coded INI defaults of CLI (See ToDo).

The attached patch does allow it. However i am not sure if we want
this. I mean the problem is that a user might copy/use his normal
php.ini file and overwrite the cli defaults and gets unexpected behavior
and then writes a bug...

regards
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] [PATCH] new idate() - sunrise() - sunset() functions

2003-02-07 Thread nicos
+1 for date_sunset and date_sunrise.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Andrey Hristov [EMAIL PROTECTED] a écrit dans le message de news:
016f01c2cea6$ccc6f880$[EMAIL PROTECTED]
   I don't think this is good idea.
 date_sunset(), date_sunrise() are better.


 Andrey


 - Original Message -
 From: moshe doron [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, February 07, 2003 2:37 PM
 Subject: Re: [PHP-DEV] [PATCH] new idate() - sunrise() - sunset()
functions


  well, what about  sun_set(), sun_rise()?
 
  moshe
  --
 
 
  Andi Gutmans [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
   At 12:47 PM 2/7/2003 +0200, moshe doron wrote:
   Andi Gutmans [EMAIL PROTECTED] wrote in message
   [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I haven't been following this whole discussion.
 However, the function names should follow the coding standards and
 be
named
 something like date_sunrise(), date_sunset() (or whatever other
 prefix
 makes sense).

   
   here is part of my replay to Leon Atkinson:
 Also, shouldn't sunrise() and sunset() be cal_sunrise() and
 cal_sunset()?

   well, since sunset()  sunrise() have aspects more then cal_*
related,
 i
   thought the right place is standard.
   
   new astronomy extension, or linking against exisint lib, 'll be
 overhead
   since i want use it on the calendar extension, that is build by
default
 on VC.
  
   Even functions in standard have a prefix. Only ancient ones don't and
we
   didn't fix them for BC reasons.
  
   Andi
  
 





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




[PHP-DEV] Re: Another bugs.php.net question

2003-02-03 Thread nicos
What about posting a new bug report (Feature request) as a documentation
problem? :-p

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Marcus Börger [EMAIL PROTECTED] a écrit dans le message de
news: [EMAIL PROTECTED]
 The assigne bugs reminder mail does not contain links to the
 bug reports as normal mail from there do. Wouldn't it be nice
 if one could simply click on the bugs?

 marcus




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




Re: [PHP-DEV] Fw: [PHP - NOTES] note 28935 added to function.strftime

2003-01-28 Thread nicos
Yes, you should remove that note.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Maxim Maletsky [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]

 Derick Rethans [EMAIL PROTECTED] wrote... :

  On Tue, 28 Jan 2003, Maxim Maletsky wrote:
 
  
   A user posted this note below.
  
   I do not know Catalan and cannot check it myself, however I decided
not
   to ignore it and ask if anyone on the dev list could confirm that the
   user makes sense.
  
   If he does, then what?
 
  It wouldn't be a bug in PHP, but in the locales installed on his system
  I guess.
 
  Derick

 In fact, I did guess that. Anything we can do, though? At least, I think
 we should remove his note as it is unrelated to other locale's
 installations.

 --
 Maxim Maletsky
 [EMAIL PROTECTED]





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




[PHP-DEV] Re: [PEAR-DEV] 'php4' CVS module for PHP 5?

2003-01-13 Thread nicos
Hello,

What do you think about the idea of Martin that would use libphp.so
and not libphp5.so ?

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Stig S. Bakken [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 On Mon, 2003-01-13 at 16:23, Jon Parise wrote:
  I'm not trying to start too much trouble, but ...
 
  If the next (major) release of PHP is going to be PHP 5, do we plan on
  continuing development in the 'php4' CVS module?

 The plan is to use php4 as 5-dev until we feel ready to move stuff to
 php5.

  And along the same lines, will be continue to build 'libphp4.so', or
  will that be changing to 'libphp5.so'?

 It would be natural to build libphp5.so as soon as the cvs module
 changes to php5.

  - Stig




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




[PHP-DEV] Re: php4 /ext/standard file.c formatted_print.c

2003-01-11 Thread nicos
Sorry but just a thought, in that line:

if (argc  1  (int)Z_STRLEN_P(return_value)  len / 2) {

you're comparating len / 2 to an int, but len / 2 can be a float too no?

Ignore me if I'm wrong...


--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Moriyoshi Koizumi [EMAIL PROTECTED] a écrit dans le message de
news: [EMAIL PROTECTED]
 moriyoshi Sat Jan 11 17:17:37 2003 EDT

   Modified files:
 /php4/ext/standard file.c formatted_print.c
   Log:
   Reduced compiler warnings in ZE2 build


 Index: php4/ext/standard/file.c
 diff -u php4/ext/standard/file.c:1.290 php4/ext/standard/file.c:1.291
 --- php4/ext/standard/file.c:1.290 Thu Jan  9 18:23:32 2003
 +++ php4/ext/standard/file.c Sat Jan 11 17:17:37 2003
 @@ -21,7 +21,7 @@

+--+
   */

 -/* $Id: file.c,v 1.290 2003/01/09 23:23:32 iliaa Exp $ */
 +/* $Id: file.c,v 1.291 2003/01/11 22:17:37 moriyoshi Exp $ */

  /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */

 @@ -1376,7 +1376,7 @@
   ZVAL_STRINGL(return_value, buf, line_len, 0);
   /* resize buffer if it's much larger than the result.
   * Only needed if the user requested a buffer size. */
 - if (argc  1  Z_STRLEN_P(return_value)  len / 2) {
 + if (argc  1  (int)Z_STRLEN_P(return_value)  len / 2) {
   Z_STRVAL_P(return_value) = erealloc(buf, line_len + 1);
   }
   }
 @@ -1559,7 +1559,7 @@
   }
   convert_to_string_ex(arg2);
   convert_to_long_ex(arg3);
 - num_bytes = MIN(Z_LVAL_PP(arg3), Z_STRLEN_PP(arg2));
 + num_bytes = MIN(Z_LVAL_PP(arg3), (int)Z_STRLEN_PP(arg2));
   break;
   default:
   WRONG_PARAM_COUNT;
 Index: php4/ext/standard/formatted_print.c
 diff -u php4/ext/standard/formatted_print.c:1.61
php4/ext/standard/formatted_print.c:1.62
 --- php4/ext/standard/formatted_print.c:1.61 Thu Jan  9 12:29:31 2003
 +++ php4/ext/standard/formatted_print.c Sat Jan 11 17:17:37 2003
 @@ -16,7 +16,7 @@

+--+
   */

 -/* $Id: formatted_print.c,v 1.61 2003/01/09 17:29:31 wez Exp $ */
 +/* $Id: formatted_print.c,v 1.62 2003/01/11 22:17:37 moriyoshi Exp $ */

  #include math.h /* modf() */
  #include php.h
 @@ -504,7 +504,7 @@

   currarg = 1;

 - while (inposZ_STRLEN_PP(args[format_offset])) {
 + while (inpos  (int)Z_STRLEN_PP(args[format_offset])) {
   int expprec = 0;

   PRINTF_DEBUG((sprintf: format[%d]='%c'\n, inpos, format[inpos]));





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




[PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread nicos
Hello,

After seeing the bug #21410, I just found that function_name(null)
will make ZEND_NUM_ARGS()
returning 1. I really think that null should be ignored or something...
   Actually with filetype(null), it transforms null in a string and try
to stat null which is a bit stupid...

Any comment?

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.




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




Re: [PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread nicos
Probably but it looks like that filetype(null); for example under windows
will return type directory...

So it looks an important bug too.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Sterling Hughes [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
  Hello,
 
  After seeing the bug #21410, I just found that
function_name(null)
  will make ZEND_NUM_ARGS()
  returning 1. I really think that null should be ignored or something...
 Actually with filetype(null), it transforms null in a string and
try
  to stat null which is a bit stupid...
 
  Any comment?
 

 Hrmm, while this is a very interesting idea, unfortunately it would be bad
 for backwards compatibality issues.

 -Sterling

 Stupid is as stupid does.
 - Forrest Gump



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




[PHP-DEV] To laugh: Fw: How lame. you must be a greek fag

2003-01-04 Thread nicos
See how funny Phil Eccleston is:

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

- Original Message -
From: Phil Eccleston [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 04, 2003 11:37 PM
Subject: Re: How lame. you must be a greek fag


 you just proved my point, I can code c++, vb, sql, asp html, xml, the only
 problem I have is that php does not work when installed on any of my
systems
 I have combed through your whole site and nothing helps php scripts that I
 send off to other hosts work somewhat but off my main site they will not
 work unless they are as basic as possible, your comments are weak, but
even
 off my bell hosted sites php crashes constently, you can't even make a
 proper installer it is weak as hell, I have been programming for almost 25
 years and php is the worst script engine I have ever seen my asp pages
work
 great no crashing of servers you must be an idiot for supporting and
 developing a big steaming pile of crap!!!


 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: How lame.
 Date: Sat, 4 Jan 2003 23:27:10 +0100
 
 Actually YOU are the idiot, I can code in PHP, you can't so wassup? :-)
 
 
 M.CHAILLAN Nicolas


 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail



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




Re: [PHP-DEV] ZEND_NUM_ARGS()

2003-01-04 Thread nicos
What about windows then? You find normal that filetype acceps null as an
argument? You find normal that we do a stat64 on  ?

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

- Original Message -
From: Derick Rethans [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, January 05, 2003 1:01 AM
Subject: Re: [PHP-DEV] ZEND_NUM_ARGS()


 On Sat, 4 Jan 2003 [EMAIL PROTECTED] wrote:

  Hello,
 
  After seeing the bug #21410, I just found that
function_name(null)
  will make ZEND_NUM_ARGS()
  returning 1. I really think that null should be ignored or something...

 Of course it should not be ignored, NULL can be used as an argument
 like any other type.

 Actually with filetype(null), it transforms null in a string and
try
  to stat null which is a bit stupid...

 It doesn't stat null, it stats the filename which was transformed to
 an empty string (strace output):

 stat64(, 0xbfffee90)  = -1 ENOENT (No such file or
directory)
 lstat64(, 0xbfffee90) = -1 ENOENT (No such file or
directory)

  Any comment?

 Stop wasting time by commenting on things you have little clue of.

 Derick

 --

 -
  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] Patch for #21309 - memory + php_error_docref.

2003-01-03 Thread nicos
Okay, but can you just copy the file, apply the patch and read it then... To
see if i've not forgotten something (even if I worked hard on it).


--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Derick Rethans [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 On Fri, 3 Jan 2003 [EMAIL PROTECTED] wrote:

  Hello,
 
 Even if this bug was assigned to sesser, this is a patch that fix
the
  memory managment and that removes perror and replace it by
  php_error_docref().

 +   php_error_docref(NULL TSRMLS_CC, E_WARNING, ftp_open:
cannot get socket name);

 No need to repeat the ftp_open, this is php_error_docref's
 task:
 + php_error_docref(NULL TSRMLS_CC, E_WARNING, Cannot get socket name);


 
  It's also online if the mailing is denying it:
  http://nicos.worldakt.com/ftp_c.patch.

 Please don't mix code and whitespace changes, it's much harder to see
 the changes now.

 Derick

 --

 -
  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] Re: Patch for #21309 - memory + php_error_docref.

2003-01-03 Thread nicos
I fixed the link: http://nicos.worldakt.com/ftp_c.patch

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

[EMAIL PROTECTED] a écrit dans le message de news:
000f01c2b2c7$860621a0$[EMAIL PROTECTED]
 Hello,

Even if this bug was assigned to sesser, this is a patch that fix
the
 memory managment and that removes perror and replace it by
 php_error_docref().

 It's also online if the mailing is denying it:
 http://nicos.worldakt.com/ftp_c.patch.

 Any comment appreciated, thanks.

 Note: it will probably need some reviews.

 Regards.
 M.CHAILLAN Nicolas
 [EMAIL PROTECTED]
 www.WorldAKT.com Hébergement de sites internets.






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




[PHP-DEV] Patch for #21330 - socket_select()

2003-01-02 Thread nicos
This is the patch that fix the issue of socket_select that doesn't wait if
value for timeval is 0.

Tell me what you think.

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.



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


Re: [PHP-DEV] Patch for #21330 - socket_select()

2003-01-02 Thread nicos
Well it was attached it looks the mailing list is dening them.

It put it online: http://nicos.worldakt.com/socket_select.patch

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

- Original Message -
From: Derick Rethans [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Wez Furlong [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 1:21 PM
Subject: Re: [PHP-DEV] Patch for #21330 - socket_select()


 On Thu, 2 Jan 2003 [EMAIL PROTECTED] wrote:

  This is the patch that fix the issue of socket_select that doesn't wait
if
  value for timeval is 0.
 
  Tell me what you think.

 There is no patch

 Derick

 --

 -
  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] Patch for #21330 - socket_select()

2003-01-02 Thread nicos
Feel free to take a look at the URL then.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Daniel Lorch [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 hi,

  Well it was attached it looks the mailing list is dening them.

 The mailinglist will only let you get through text/plain Attachements.

 -daniel



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




[PHP-DEV] Patch for #21309 - memory + php_error_docref.

2003-01-02 Thread nicos
Hello,

   Even if this bug was assigned to sesser, this is a patch that fix the
memory managment and that removes perror and replace it by
php_error_docref().

It's also online if the mailing is denying it:
http://nicos.worldakt.com/ftp_c.patch.

Any comment appreciated, thanks.

Note: it will probably need some reviews.

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.




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


Re: [PHP-DEV] Update: Quoting behaviour exposed

2002-12-29 Thread nicos
Hello,

I assume that we've all understood that point now. Can you(we) now stop
wasting your(our) time and use it to something better?
Yea, like learning Hebraicum or...

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Sascha Schumann [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
  As much as it is amusing, tihiye besheket vetafsik lehishtamesh
beLatinit.

 If that language had interested me, I would have made my
 Hebraicum in addition to the Latinum.

 [snip off-topic]

 If it has not been clear to you or anyone else -- this has
 all been about drawing attention to the issues of proper
 quoting.  If only one person starts to embrace some of the
 available guidelines, it has been well worth it.

 - Sascha



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




Re: [PHP-DEV] Re: is_*

2002-11-19 Thread nicos
What about making FALIASES so it can be found in is_*? Really easier for
newbies.

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

- Original Message -
From: Hartmut Holzgraefe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 10:21 AM
Subject: Re: [PHP-DEV] Re: is_*


 [EMAIL PROTECTED] wrote:
  Okay, some of them are in ctype. But it should be easier to have them in
  standard so basic user should use them.

 ctype is enabled by default in 4.3 ...


 --
 Six Offene Systeme GmbH http://www.six.de/
 i.A. Hartmut Holzgraefe
 Email: [EMAIL PROTECTED]
 Tel.:  +49-711-99091-77



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




[PHP-DEV] Re: dns_getrecord.patch -- trying again

2002-11-17 Thread nicos
There we go :-)

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Pollita [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 I'll put the text in the body of my message AND attach with .txt this
 time.



 Index: basic_functions.c
 ===
 RCS file: /repository/php4/ext/standard/basic_functions.c,v
 retrieving revision 1.543
 diff -u -r1.543 basic_functions.c
 --- basic_functions.c 8 Nov 2002 15:49:32 - 1.543
 +++ basic_functions.c 17 Nov 2002 20:28:34 -
 @@ -17,7 +17,7 @@

+--+
   */

 -/* $Id: basic_functions.c,v 1.543 2002/11/08 15:49:32 sterling Exp $ */
 +/* $Id: basic_functions.c,v 1.543 2002/11/16 13:18:21 pollita Exp $ */

  #include php.h
  #include php_streams.h
 @@ -440,6 +440,7 @@

  #if HAVE_RES_SEARCH  !(defined(__BEOS__) || defined(PHP_WIN32) ||
 defined(NETWARE))
   PHP_FE(checkdnsrr, NULL)
 +PHP_FE(dns_getrecord,third_and_rest_force_ref)
   PHP_FE(getmxrr,second_and_third_args_force_ref)
  #endif

 @@ -1021,6 +1022,7 @@
   register_html_constants(INIT_FUNC_ARGS_PASSTHRU);
   register_string_constants(INIT_FUNC_ARGS_PASSTHRU);

 + PHP_MINIT(dns) (INIT_FUNC_ARGS_PASSTHRU);
   PHP_MINIT(regex) (INIT_FUNC_ARGS_PASSTHRU);
   PHP_MINIT(file) (INIT_FUNC_ARGS_PASSTHRU);
   PHP_MINIT(pack) (INIT_FUNC_ARGS_PASSTHRU);
 Index: dns.c
 ===
 RCS file: /repository/php4/ext/standard/dns.c,v
 retrieving revision 1.44
 diff -u -r1.44 dns.c
 --- dns.c 18 Oct 2002 22:08:23 - 1.44
 +++ dns.c 17 Nov 2002 20:28:34 -
 @@ -16,7 +16,7 @@

+--+
   */

 -/* $Id: dns.c,v 1.44 2002/10/18 22:08:23 sniper Exp $ */
 +/* $Id: dns.c,v 1.44 2002/11/16 17:43:41 pollita Exp $ */

  /* {{{ includes
   */
 @@ -71,6 +71,13 @@
  #include dns.h
  /* }}} */

 +#if HAVE_RES_SEARCH  !(defined(__BEOS__)||defined(PHP_WIN32))
 +typedef union {
 + HEADER qb1;
 + u_char qb2[65536];
 +} querybuf;
 +#endif
 +
  static char *php_gethostbyaddr(char *ip);
  static char *php_gethostbyname(char *name);

 @@ -276,6 +283,257 @@
  #ifndef MAXHOSTNAMELEN
  #define MAXHOSTNAMELEN  256
  #endif /* MAXHOSTNAMELEN */
 +
 +#ifndef MAXRESOURCERECORDS
 +#define MAXRESOURCERECORDS 64
 +#endif /* MAXRESOURCERECORDS */
 +
 +PHP_MINIT_FUNCTION(dns) {
 + REGISTER_LONG_CONSTANT(DNS_ANY, T_ANY, CONST_CS | CONST_PERSISTENT);
 + REGISTER_LONG_CONSTANT(DNS_A, T_A, CONST_CS | CONST_PERSISTENT);
 + REGISTER_LONG_CONSTANT(DNS_MX, T_MX, CONST_CS | CONST_PERSISTENT);
 + REGISTER_LONG_CONSTANT(DNS_CNAME, T_CNAME, CONST_CS |
CONST_PERSISTENT);
 + REGISTER_LONG_CONSTANT(DNS_NS, T_NS, CONST_CS | CONST_PERSISTENT);
 + REGISTER_LONG_CONSTANT(DNS_TXT, T_TXT, CONST_CS | CONST_PERSISTENT);
 + REGISTER_LONG_CONSTANT(DNS_PTR, T_PTR, CONST_CS | CONST_PERSISTENT);
 + REGISTER_LONG_CONSTANT(DNS_SOA, T_SOA, CONST_CS | CONST_PERSISTENT);
 + REGISTER_LONG_CONSTANT(DNS_HINFO, T_HINFO, CONST_CS |
CONST_PERSISTENT);
 +}
 +
 +/* {{{ php_parserr
 + */
 +u_char *php_parserr(u_char *cp, querybuf *answer, int type_to_fetch, zval
 **subarray) {
 + u_short type, class, dlen;
 + u_long ttl;
 + long n, i;
 + char name[MAXHOSTNAMELEN];
 +
 + n = dn_expand(answer-qb2, answer-qb2+65536, cp, name, (sizeof name) -
2);
 + if (n  0) {
 + return NULL;
 + }
 + cp += n;
 +
 + GETSHORT(type, cp);
 + GETSHORT(class, cp);
 + GETLONG(ttl, cp);
 + GETSHORT(dlen, cp);
 + if (type_to_fetch != T_ANY  type != type_to_fetch) {
 + /* Should never actually occour */
 + cp += dlen;
 + return NULL;
 + }
 +
 + MAKE_STD_ZVAL(*subarray);
 + if (array_init(*subarray) != SUCCESS) {
 + return NULL;
 + }
 + add_assoc_string(*subarray, host, name, 1);
 +
 + switch (type) {
 + case T_A:
 + add_assoc_string(*subarray, type, A, 1);
 + sprintf(name, %d.%d.%d.%d, cp[0], cp[1], cp[2], cp[3]);
 + add_assoc_string(*subarray, ip, name, 1);
 + cp += dlen;
 + break;
 + case T_MX:
 + add_assoc_string(*subarray, type, MX, 1);
 + GETSHORT(n, cp);
 + add_assoc_long(*subarray, pri, n);
 + case T_CNAME:
 + if (type == T_CNAME)
 + add_assoc_string(*subarray, type, CNAME, 1);
 + case T_NS:
 + if (type == T_NS)
 + add_assoc_string(*subarray, type, NS, 1);
 + case T_PTR:
 + if (type == T_PTR)
 + add_assoc_string(*subarray, type, PTR, 1);
 + n = dn_expand( answer-qb2, answer-qb2+65536, cp, name, (sizeof name)
 - 2);
 + if (n  0) {
 + return NULL;
 + }
 + cp += n;
 + add_assoc_string(*subarray, target, name, 1);
 + break;
 + case T_HINFO:
 + /* See RFC 1010 for values */
 + GETSHORT(n, cp);
 + add_assoc_long(*subarray, cpu, n);
 + GETSHORT(n, cp);
 + add_assoc_long(*subarray, os, n);
 + break;
 + case T_TXT:
 + add_assoc_string(*subarray, type, TXT, 1);
 + n = cp[0];
 + for(i=1; i=n; i++)
 + name[i-1] = cp[i];
 + name[i-1] = '\0';
 + cp += dlen;
 + add_assoc_string(*subarray, txt, name, 1);
 + break;
 + 

Re: [PHP-DEV] Re: dns_getrecord.patch -- trying again

2002-11-17 Thread nicos
+1

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

- Original Message -
From: Andi Gutmans [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, November 17, 2002 9:49 PM
Subject: Re: [PHP-DEV] Re: dns_getrecord.patch -- trying again


I suggest dns_get_record().

Andi

At 09:43 PM 11/17/2002 +0100, [EMAIL PROTECTED] wrote:
There we go :-)

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Pollita [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
  I'll put the text in the body of my message AND attach with .txt this
  time.
 
 
 
  Index: basic_functions.c
  ===
  RCS file: /repository/php4/ext/standard/basic_functions.c,v
  retrieving revision 1.543
  diff -u -r1.543 basic_functions.c
  --- basic_functions.c 8 Nov 2002 15:49:32 - 1.543
  +++ basic_functions.c 17 Nov 2002 20:28:34 -
  @@ -17,7 +17,7 @@
 
+--+
*/
 
  -/* $Id: basic_functions.c,v 1.543 2002/11/08 15:49:32 sterling Exp $ */
  +/* $Id: basic_functions.c,v 1.543 2002/11/16 13:18:21 pollita Exp $ */
 
   #include php.h
   #include php_streams.h
  @@ -440,6 +440,7 @@
 
   #if HAVE_RES_SEARCH  !(defined(__BEOS__) || defined(PHP_WIN32) ||
  defined(NETWARE))
PHP_FE(checkdnsrr, NULL)
  +PHP_FE(dns_getrecord,third_and_rest_force_ref)
PHP_FE(getmxrr,second_and_third_args_force_ref)
   #endif
 
  @@ -1021,6 +1022,7 @@
register_html_constants(INIT_FUNC_ARGS_PASSTHRU);
register_string_constants(INIT_FUNC_ARGS_PASSTHRU);
 
  + PHP_MINIT(dns) (INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(regex) (INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(file) (INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(pack) (INIT_FUNC_ARGS_PASSTHRU);
  Index: dns.c
  ===
  RCS file: /repository/php4/ext/standard/dns.c,v
  retrieving revision 1.44
  diff -u -r1.44 dns.c
  --- dns.c 18 Oct 2002 22:08:23 - 1.44
  +++ dns.c 17 Nov 2002 20:28:34 -
  @@ -16,7 +16,7 @@
 
+--+
*/
 
  -/* $Id: dns.c,v 1.44 2002/10/18 22:08:23 sniper Exp $ */
  +/* $Id: dns.c,v 1.44 2002/11/16 17:43:41 pollita Exp $ */
 
   /* {{{ includes
*/
  @@ -71,6 +71,13 @@
   #include dns.h
   /* }}} */
 
  +#if HAVE_RES_SEARCH  !(defined(__BEOS__)||defined(PHP_WIN32))
  +typedef union {
  + HEADER qb1;
  + u_char qb2[65536];
  +} querybuf;
  +#endif
  +
   static char *php_gethostbyaddr(char *ip);
   static char *php_gethostbyname(char *name);
 
  @@ -276,6 +283,257 @@
   #ifndef MAXHOSTNAMELEN
   #define MAXHOSTNAMELEN  256
   #endif /* MAXHOSTNAMELEN */
  +
  +#ifndef MAXRESOURCERECORDS
  +#define MAXRESOURCERECORDS 64
  +#endif /* MAXRESOURCERECORDS */
  +
  +PHP_MINIT_FUNCTION(dns) {
  + REGISTER_LONG_CONSTANT(DNS_ANY, T_ANY, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT(DNS_A, T_A, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT(DNS_MX, T_MX, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT(DNS_CNAME, T_CNAME, CONST_CS |
CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT(DNS_NS, T_NS, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT(DNS_TXT, T_TXT, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT(DNS_PTR, T_PTR, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT(DNS_SOA, T_SOA, CONST_CS | CONST_PERSISTENT);
  + REGISTER_LONG_CONSTANT(DNS_HINFO, T_HINFO, CONST_CS |
CONST_PERSISTENT);
  +}
  +
  +/* {{{ php_parserr
  + */
  +u_char *php_parserr(u_char *cp, querybuf *answer, int type_to_fetch,
zval
  **subarray) {
  + u_short type, class, dlen;
  + u_long ttl;
  + long n, i;
  + char name[MAXHOSTNAMELEN];
  +
  + n = dn_expand(answer-qb2, answer-qb2+65536, cp, name, (sizeof
name) -
2);
  + if (n  0) {
  + return NULL;
  + }
  + cp += n;
  +
  + GETSHORT(type, cp);
  + GETSHORT(class, cp);
  + GETLONG(ttl, cp);
  + GETSHORT(dlen, cp);
  + if (type_to_fetch != T_ANY  type != type_to_fetch) {
  + /* Should never actually occour */
  + cp += dlen;
  + return NULL;
  + }
  +
  + MAKE_STD_ZVAL(*subarray);
  + if (array_init(*subarray) != SUCCESS) {
  + return NULL;
  + }
  + add_assoc_string(*subarray, host, name, 1);
  +
  + switch (type) {
  + case T_A:
  + add_assoc_string(*subarray, type, A, 1);
  + sprintf(name, %d.%d.%d.%d, cp[0], cp[1], cp[2], cp[3]);
  + add_assoc_string(*subarray, ip, name, 1);
  + cp += dlen;
  + break;
  + case T_MX:
  + add_assoc_string(*subarray, type, MX, 1);
  + GETSHORT(n, cp);
  + add_assoc_long(*subarray, pri, n);
  + case T_CNAME:
  + if (type == T_CNAME)
  + add_assoc_string(*subarray, type, CNAME, 1);
  + case T_NS:
  + if (type == T_NS)
  + add_assoc_string(*subarray, type, NS, 1);
  + case T_PTR:
  + if (type == T_PTR)
  + add_assoc_string(*subarray, type, PTR, 1);
  + n = dn_expand( answer-qb2, 

Re: [PHP-DEV] Re: Updated getanyrr.patch, now dns_getrecord.patch

2002-11-17 Thread nicos
Alright, same for me.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Timm Friebe [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 On Sun, 2002-11-17 at 21:01, Melvyn Sopacua wrote:
 [...]
  $ uname -rs  ld -lresolv
  BSD/OS 4.3
  ld: cannot find -lresolv

 Not here, either:-)

 thekid@friebes:~  uname -rs  ld -lresolv
 FreeBSD 4.7-STABLE
 /usr/libexec/elf/ld: cannot find -lresolv

 thekid@friebes:~  locate resolv|grep '\.so'
 /usr/compat/linux/lib/libresolv-2.1.2.so
 /usr/compat/linux/lib/libresolv.so.2

 --
 Timm
 Any sufficiently advanced bug is indistinguishable from a feature




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




Re: [PHP-DEV] [PATCH] php4/configure.in.patch php4/ext/standard/dns_get_record.patch

2002-11-17 Thread nicos
Yay finally we use constant for that. Very nice work !

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Marcus Börger [EMAIL PROTECTED] a écrit dans le message de
news: [EMAIL PROTECTED]
I have worked a bit on the dns stuff and now i get all my entries.

The patch behind the url below introduces a new constant DNS_ALL
which queries all types one by one. As a result we have the original
meaning of DNS_ANY = 'any entry' and the new DNS_ALL if you want
all entries.

http://marcus-boerger.de/dns_get_record.diff

marcus

At 00:38 18.11.2002, Marcus Börger wrote:
The last patch had some minor problems. Here is a reworked one attached.
I did:
-change php_error to php_error_docref
-added some error messages which should be rewritten again
  i only wanted to point us to the problems.
-collected the autoconf information into one single define which
  can be tested
-ws fixes
-minor fixes
-made the old functions alias names to the new dns_xxx functions

For me this stuff works now but i would expect dns_get_error(name,DNS_ANY)
to return all possible records. But when i use the call with DNS_ANY i
receive
the NS records. To receive the A and MX entries i have to call the function
with the DNS_A and DNS_MX respectively. See example below

Any comments?
(...)






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




[PHP-DEV] MySQL ext - News

2002-11-16 Thread nicos
Hello,

While Zak, Georg and Zeev are working on ext/mysql, why not adding a way
to verify if a database and a table exists? like mysql_database_exists() and
mysql_table_exists() ?

It's easy to verify with the table/database list.

Regards
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.




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




Re: [PHP-DEV] MySQL ext - News

2002-11-16 Thread nicos
Okay I follow you with this point.

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Markus Fischer [EMAIL PROTECTED] a écrit dans le message de
news: [EMAIL PROTECTED]
 On Sat, Nov 16, 2002 at 02:08:37PM +0100, [EMAIL PROTECTED] wrote :
  While Zak, Georg and Zeev are working on ext/mysql, why not adding a
way
  to verify if a database and a table exists? like mysql_database_exists()
and
  mysql_table_exists() ?
 
  It's easy to verify with the table/database list.

 I the past this suggestion came up too. It may remotely even
 be that at some point there existed code like that, I don't
 know for sure.

 The consensus reached was NOT to bloat the MySQL extension
 with C code which can be done in a few lines of PHP code.

 - Markus



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




[PHP-DEV] Re: [PATCH]s New Function getanyrr() proposal

2002-11-16 Thread nicos
Hello all,

After having reviewed this one, I saw few changes to do, I asked Pollita
and he did them. He is sending a new patch and I vote +1 for it.

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Pollita [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 The three attached patch files (to be applied in ext/standard/ ) introduce
 a new function: getanyrr().  Where the existing getmxrr() will retrieve MX
 records for a given host, getanyrr() will return all standard INET DNS
 Resource Records.

 proto:
   array getanyrr(string hostname [, string type[, array authns, array
 addtl]])

 Type is optional and can be any of ANY, A, MX, CNAME, NS,
 TXT, SOA, HINFO, or PTR.  ANY is default.

 getanyrr returns an index array of associative arrays.  Each associative
 array contains 'host', 'type', 'class', 'ttl', and one or more additional
 records depending on type.

 The third and fourth arguments are pass-by-ref arrays with the same
 structure as the function return argument.  authns contains a list of
 authoritative name servers, while addtl contains additional relevant
 records (typically A records for the name servers).

 Further documentation to be submitted to PHP-DOC when and if attached
 patches are accepted and committed to CVS.

 basic_functions.cPatch against r1.543
 dns.cPatch against r1.44
 dns.hPatch against r1.11





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




[PHP-DEV] Re: [PATH] update to earlier proposed patch for getanyrr() function addition

2002-11-16 Thread nicos
Hello,

You should definitly add RETURN_TRUE; at the end of the PHP_FUNCTION().

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Pollita [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Per corrections suggested by [EMAIL PROTECTED], attached is a revised pacth to
 ext/standard/dns.c for addition of getanyrr() function.





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




Re: [PHP-DEV] [PATH] update to earlier proposed patch for getanyrr() function addition

2002-11-16 Thread nicos
Hello,

Who can commit that now?

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Marcus Börger [EMAIL PROTECTED] a écrit dans le message de
news: [EMAIL PROTECTED]
 Function is nice but the function name is not.
 Attached is a second revised patch that fixes the build problems.

 marcus

 At 00:11 17.11.2002, Pollita wrote:
 Per corrections suggested by [EMAIL PROTECTED], attached is a revised pacth
to
 ext/standard/dns.c for addition of getanyrr() function.
 
 
 --
 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] Re: CVS Account Request: pollita

2002-11-16 Thread nicos
Hello,

Nice to see you finally asking for an account.
It would be really nice to see you joining the party :-)


Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Sara Golemon [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Address open items on bugs.php.net, developing patches where appropriate.
Also propose extensions such as my recent contributions to log() and the
pending function getanyrr().



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




[PHP-DEV] Bug #20377

2002-11-15 Thread nicos
Hello,

What do you think of that?
Davey propose to have :
open_basedir
session.save_path
upload_tmp_dir

PHP_INI_SYSTEM|PHP_INI_PERDIR.

Regards.
M.CHAILLAN [EMAIL PROTECTED] Hébergement de sites
internets.




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




Re: [PHP-DEV] Bug #20377

2002-11-15 Thread nicos
That's what I think too so should we close this bug?

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

- Original Message -
From: Derick Rethans [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, November 16, 2002 12:47 AM
Subject: Re: [PHP-DEV] Bug #20377


 On Fri, 15 Nov 2002 [EMAIL PROTECTED] wrote:

  Hello,
 
  What do you think of that?
  Davey propose to have :
  open_basedir
  session.save_path
  upload_tmp_dir
 
  PHP_INI_SYSTEM|PHP_INI_PERDIR.

 -1 on that. .htaccess also falls in the PERDIR class, and it's not a
 good idea to allow setting open_basedir and the other settings from this
 file especially for ISPs and stuff.

 Derick

 --

 --
-
  Derick Rethans   http://derickrethans.nl/
  JDI Media Solutions
 --[ if you hold a unix shell to your ear, do you hear the
c? ]-



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




[PHP-DEV] show_source()

2002-11-14 Thread nicos
Hello,

Some users are requesting some new arguments in show_source() like
having the line numbers, having a link to the php manual when a function is
called... (see  #12442 )

What do you think of that?

Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.




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




[PHP-DEV] is_*

2002-11-13 Thread nicos
Hello,

After having helped many users, I just thought of new functions like
is_alpha, is_alnum, is_valid_email() that we should make so the new user can
do valid form with good verification without knowing how ereg() or preg_*
work. We should think about some another functions too...

Any comment?

P.S: they would be based on the same verification than ereg [[:alnum:]]
etc..

Regards.

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.




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




[PHP-DEV] Re: is_*

2002-11-13 Thread nicos
Okay, some of them are in ctype. But it should be easier to have them in
standard so basic user should use them. It would be as easy as is_numeric()
for instance...

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

[EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Hello,

 After having helped many users, I just thought of new functions like
 is_alpha, is_alnum, is_valid_email() that we should make so the new user
can
 do valid form with good verification without knowing how ereg() or preg_*
 work. We should think about some another functions too...

 Any comment?

 P.S: they would be based on the same verification than ereg [[:alnum:]]
 etc..

 Regards.

 M.CHAILLAN Nicolas
 [EMAIL PROTECTED]
 www.WorldAKT.com Hébergement de sites internets.






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




Re: [PHP-DEV] is_*

2002-11-13 Thread nicos
Probably I will take this to PEAR.

Thanks.

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Bigdog [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 IMHO, this will be bloat code which many PHP developers do not want in
 there core code.

 Many php developers have there own functions or classes that deal with
 these issues.

 I would suggest those developers that need this type of code, they
 should find some that is already written.

 On Thu, 2002-11-14 at 02:46, [EMAIL PROTECTED] wrote:
  Hello,
 
  After having helped many users, I just thought of new functions like
  is_alpha, is_alnum, is_valid_email() that we should make so the new user
can
  do valid form with good verification without knowing how ereg() or
preg_*
  work. We should think about some another functions too...
 
  Any comment?
 
  P.S: they would be based on the same verification than ereg [[:alnum:]]
  etc..
 
  Regards.
 
  M.CHAILLAN Nicolas
  [EMAIL PROTECTED]
  www.WorldAKT.com Hébergement de sites internets.
 
 --
 .: B i g D o g :.





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




Re: [PHP-DEV] is_*

2002-11-13 Thread nicos
Probably I will take this to PEAR.

Thanks.

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Bigdog [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 IMHO, this will be bloat code which many PHP developers do not want in
 there core code.

 Many php developers have there own functions or classes that deal with
 these issues.

 I would suggest those developers that need this type of code, they
 should find some that is already written.

 On Thu, 2002-11-14 at 02:46, [EMAIL PROTECTED] wrote:
  Hello,
 
  After having helped many users, I just thought of new functions like
  is_alpha, is_alnum, is_valid_email() that we should make so the new user
can
  do valid form with good verification without knowing how ereg() or
preg_*
  work. We should think about some another functions too...
 
  Any comment?
 
  P.S: they would be based on the same verification than ereg [[:alnum:]]
  etc..
 
  Regards.
 
  M.CHAILLAN Nicolas
  [EMAIL PROTECTED]
  www.WorldAKT.com Hébergement de sites internets.
 
 --
 .: B i g D o g :.






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




[PHP-DEV] Re: CVS Account Request: toby

2002-11-12 Thread nicos
We ?

How many are you? :-)

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Tobias Schlitt [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 We propose to write some PHP-Extensions in C.



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




[PHP-DEV] Re: GD filters done patch available

2002-11-12 Thread nicos
Very nice.

Well the nicest is the girl too.

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Peter Neuman [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Hi,

 Pierre-Alain Joye [EMAIL PROTECTED]:

  GD filters are done and patch against current cvs available at
  http://www.pearfr.org/phpgd/filters/
 
  Feedbacks, comments welcome

 Very nice :-)

 Peter Neuman





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




[PHP-DEV] What happened to the notes on php.net?

2002-11-11 Thread nicos
Hello,

As you can see, for now, download manuals and notes are not available. We're
working on it.

Thanks you for the report.

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Paul Nicholson [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 - --  Forwarded Message  --

 Subject: RE: [PHP] User Contributed Notes at php.net?
 Date: Mon, 11 Nov 2002 23:43:18 -
 From: James Cox [EMAIL PROTECTED]
 To: Ernest E Vogelsinger [EMAIL PROTECTED],
 [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]

 they are missing temporarily as we work on re-enabling some php.net
 services.

 apologies for any inconveniences.

  -- James Cox

 php.net sysadmin
 - --
 James Cox :: [EMAIL PROTECTED] :: http://james.blogs.at/
 Was I helpful?
http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/

 On Monday 11 November 2002 09:28 pm, Matthew Walker wrote:
  They're not there for me either... Odd.
 
  Maxim Maletsky said:
   For my big surprise there aren't there Did I miss something?
  
   --
   PHP Development Mailing List http://www.php.net/
   To unsubscribe, visit: http://www.php.net/unsub.php

 - --
 ~Paul Nicholson
 Design Specialist @ WebPower Design
 The webthe way you want it!
 [EMAIL PROTECTED]
 www.webpowerdesign.net

 It said uses Windows 98 or better, so I loaded Linux!
 Registered Linux User #183202 using Register Linux System # 81891
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: For info see http://www.gnupg.org

 iD8DBQE90G4bDyXNIUN3+UQRAnDLAJ97aVkmvTRO6F8clxS6B8TIuC04OgCeOk4g
 NH+gpPsiY0wQGBAX9I+zlzg=
 =7m6I
 -END PGP SIGNATURE-



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




[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard credits.c

2002-11-11 Thread nicos
+1 for Streams API.
--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Wez Furlong [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 How about Streams API ?

 --Wez.

 On 11/11/02, James Cox [EMAIL PROTECTED] wrote:
  That works for me -- didn't want it to be too short, however. (could say
  Streams Support and API Dev...?)
 
   -Original Message-
   From: Andi Gutmans [mailto:andi;zend.com]
   Why not just Streams support? The and development is already
   contained
   in support and it could be put on almost every end of line :)

   +   CREDIT_LINE(Streams Support and Development,
   Wez Furlong);






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




Re: [PHP-DEV] CyberMut and SPPLUS

2002-11-07 Thread nicos
Hello,

I dont think that it can be introduced into PEAR because this is NOT PHP
but a real php extensions. It needs librairies etc... Thats exactly the same
than ext/cybermut but for an other bank where I work.

Please comment this.

Regards.
--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]

Markus Fischer [EMAIL PROTECTED] a écrit dans le message de
news: [EMAIL PROTECTED]
 On Wed, Nov 06, 2002 at 04:04:48AM +0100, [EMAIL PROTECTED] wrote :
  I really dont see why CyberMut should have one and not its
  concurrent.

 There's nothing like commercial competition. This is an OS
 project. Due it's limited audience it fits perfectly into
 PECL and it's integration should be discussion on
 [EMAIL PROTECTED]

 --
 GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
 $ grep docref_root php.ini
 docref_root =
http://landonize.it/?how=urltheme=classicfilter=RichyHuser=imajesurl=ht
tp%3A%2F%2Fphp.net%2F/



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




Re: [PHP-DEV] CyberMut and SPPLUS

2002-11-07 Thread nicos
Okay, nice. Who can gimme enough karma to commit this new ext? spplus
would be the best name.

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Jan Lehnardt [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Hi,
 On Thu, Nov 07, 2002 at 09:00:37AM +0100, [EMAIL PROTECTED] wrote:
  Hello,
 
  I dont think that it can be introduced into PEAR because this is NOT
PHP
  but a real php extensions. It needs librairies etc... Thats exactly the
same
  than ext/cybermut but for an other bank where I work.
 
  Please comment this.
 Markus said PECL, wich is the part of PEAR that is perfect for your
extension.
 And for the record, CyberMut will be moved there as soon as a developer
finds
 time to do that.

 Jan
 --
 Q: Thank Jan? A: http://geschenke.an.dasmoped.net/
 Got an old and spare laptop? Please send me a mail.
 Key7BCC EB86 8313 DDA9 25DF
 Fingerprint1805 ECA5 BCB7 BB96 56B0



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




Re: [PHP-DEV] Please help document headers_sent()

2002-11-06 Thread nicos
Anyway to get a gdb backtrace please?

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Philip Olson [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]

 I get a Segmentation fault with this script using
 PHP CLI:

 ?php
 headers_sent($file, $line);
 ?
   philip@rock:~$ php test.php
   Segmentation fault

 That's when no headers are sent before the call.  But if
 headers are sent beforehand, it works:

 ?php
 print foo\n;
 headers_sent($file, $line);
 print $file : $line\n;
 ?
   philip@rock:~$ php test.php
   foo
   test.php : 2

 With a fairly (a few weeks old) version of PHP CLI.
 I am unable to do further tests at this time, in fact,
 I am unable to build HEAD (it dies).  Only CLI seems
 to be affected, CGI works either way.  Haven't
 tested mod.

 Regards,
 Philip Olson

 P.s. If no headers were sent, in CGI, $line gets
 the value int 0.  $file is an empty string.




 On Wed, 6 Nov 2002, Philip Olson wrote:

 
   On Wed, 6 Nov 2002, Wez Furlong wrote:
   if (headers_sent($file, $line)) {
 echo headers were sent by $file:$line;
   }
  [snip]
 
  Hello Wez-
 
  Ahh, that makes sense.  I was a little off
  base on that one! :)  Will add an example now.
 
  Regards,
  Philip
 
 
 
 
  --
  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] Re: newbie: url parameters

2002-11-05 Thread nicos
You will find your answer on this page of the fine manual
http://www.php.net/manual/en/reserved.variables.php

Please note that this is not the correct forum for this question. This
forum deals with writing the PHP language in 'c' not writing scripts
with PHP.

The correct forum is php-general.details of which you can find here:

http://www.php.net/mailing-lists.php

As said Tony

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Geert Arts [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Hi,

 I just seem not to be able to pass values of variables in a URL to a PHP
script.
 When I do something like http://localhost/test.php?variablex=valuex,
variablex is still empty (or doesn't
 even exist yet?)

 I run apache 1.3.27 and php 4.2.3 under windows.

 regards,

 Geert





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




[PHP-DEV] CyberMut and SPPLUS

2002-11-05 Thread nicos
Hello,

I see that CyberMut a paiement system from one of our french bank has
got its own extension. I'm working for SPPLUS one of an another bank in
France. I was wondering if we could also add an extension for it... I just
finished it and it works really fine with PHP-4.2.3 and PHP-4.3.0pre2 after
many tests. I really dont see why CyberMut should have one and not its
concurrent.

Thanks for any comment.

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]




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




[PHP-DEV] Re: PHP crypto extension news

2002-11-04 Thread nicos
Very nice news.

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

J Smith [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]

 Since I just finished a pretty major source overhaul of the cryptopp-php
 extension, I figured I should make a little announcement, as this is
 oh-so-exciting news.

 Recently, Wei Dai released Crypto++ 5.0, which was pretty much a complete
 re-write of the public domain Crypto++ cryptography suite. In turn, I
 updated the cryptopp-php extension, hopefully for the better.

 The changes to this version, 0.0.9, are numerous, but the highlights
are...

 - new padding schemes on block ciphers. In previous versions of
 cryptopp-php, you didn't get to choose your padding scheme -- you were
 stuck with whatever the default was for the block cipher mode. Now you can
 pick from PKCS#5, zeroes, one and zeroes or no padding at all. New
 functions to control this new ability were added: cryptopp_set_padding(),
 cryptopp_get_padding() and cryptopp_get_padding_name().

 - keyed hash message authentication code algorithms were added. Basically,
a
 HMAC is just a hash that uses a secret key. New HMAC algorithms include
 MD5-HMAC, RIPEMD-160-HMAC, etc. New functions to set HMAC keys were thusly
 added: cryptopp_set_hmac_key(), *get_hmac_key(), *set_hmac_key_length()
and
 *get_hmac_key_length().

 - a modified ARC4 algorithm was added.

 - the MD4 hash algorithm was added, although it should only be used when
you
 really, really need it, such as for compatbility with other programs, as
it
 is known to be cryptographically weak.

 - changes in the Crypto++ library itself have forced me to remove the
 Sapphire stream cipher and hash algorithms, but since I doubt they were
 used much, that shouldn't be much of a problem.

 - everything is for the most part backwardly and forwardly compatible with
 previous versions of cryptopp-php, with exceptions being noted in the
 manual. The only real differences you need to worry about are the block
 cipher padding schemes you're using and the SKIPJACK changes and SAFER-*
 changes.

 As always, cryptopp-php works on most UNIX-like systems as well as
Microsoft
 Windows systems, and has been tested with Linux (kernel 2.4.18 and 2.4.9),
 Solaris 8 (SPARC) and Windows 2000 Professional. Source code and Windows
 DLLs are available under a BSD-like license at

 http://www.tutorbuddy.com/software/

 This version should be considered somewhat unstable, so if you're worried
 about that, use version 0.0.8. There are a few known bugs in Crypto++ 5.0
 that have been fixed in CVS -- they shouldn't affect cryptopp-php in any
 way, but there may be bugs in my code that haven't been weeded out yet, as
 this version hasn't been tested and is a near-total re-write from 0.0.8.

 Any bugs reports or comments would be appreciated.

 J



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




[PHP-DEV] Re: Question about Classes

2002-10-30 Thread nicos
This works only with ZE2.

--

M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

Juerg Zgraggen [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 hi

 i made a class in PHP. id like to define public and private function for
 that class like in C++. is this possible? the public and private inside
the
 class does not work... why?

 thanx, jürg zgraggen

 /* My Class*/
  class bz_ClassX
  {
   var $nNumber;
   var $strDescription;
   var $strModul;

 // public:??? does not work
   function bz_ClassX()
   {
$this-bz_reset();
   }
   function bz_print()
   {
echo bReturn-Object/bbr;
echo table;
echo trtdModul:/tdtd . $this-strModul . /td/tr;
echo trtdMethod:/tdtd . $this-strMethod . /td/tr;
echo trtdNumber:/tdtd . $this-nNumber . /td/tr;
echo trtdDescription:/tdtd . $this-strDescription .
 /td/tr;
echo /table;
   }
   function bz_clear()
   {
$this-bz_reset();
   }

 // private:??? does not work
   function bz_reset()
   {
$this-strModul = Unknown;
$this-strMethod = Unknown;
$this-nNumber = 0;
$this-strDescription = Unknown;
   }
  }







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




[PHP-DEV] Re: is_executable (was: RE: DBX tests failing)

2002-10-07 Thread nicos

Nice idea.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Derick Rethans [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Hello,

 why is this function commented out for Windows? Shouldn't it just always
 return TRUE on WIndows?

 Derick

 -- Forwarded message --
 Date: Mon, 7 Oct 2002 11:17:08 +0200
 From: Marc Boeren [EMAIL PROTECTED]
 To: 'Derick Rethans' [EMAIL PROTECTED]
 Subject: RE: DBX tests failing


 Hi,

 While we're on the subject: run-tests.php will not work on Windows:

 PHP Fatal error:  Call to undefined function:  is_executable() in
 D:\home\php-dev\php4\run-tests.php on line 79

 and in ext/standard/php_filestat.h:39..41
 #ifndef PHP_WIN32
 PHP_FUNCTION(is_executable);
 #endif

 Cheerio, Marc.




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




Re: [PHP-DEV] Layout issues

2002-10-07 Thread nicos

It should be PHP4.3.0 and Apache1.3.27.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Viktor Jonsson [EMAIL PROTECTED] a écrit dans le
message de news: 002801c26df7$4a092c20$[EMAIL PROTECTED]
 Hi,

 I have written a book about PHP, which has become some sort of de facto
book
 for
 PHP-programmers i Sweden. It will probably be translated to English soon.
I
 just started
 writing a new edition and have some problems. What version of PHP should
the
 book
 be based on? Whould it be wise to use Apache 2?

 /Viktor Jonsson










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




Re: [PHP-DEV] 4.3 plans

2002-10-07 Thread nicos

That mean you're not? :-o

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Zeev Suraski [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Shush.  They already think we're a single schizophrenic person, don't add
 more wood to the fire :)

 At 23:32 07/10/2002, Andi Gutmans wrote:
 Wow. Zeev and I used the *exact* same sentence. Scary...
 
 Andi
 
 At 05:19 PM 10/7/2002 +0300, Zeev Suraski wrote:
 Sounds good to me.
 
 At 17:09 07/10/2002, Andrei Zmievski wrote:
 I think the general consensus is that PHP tree is not ready for
 branching and RC1. So, here 's what I propose: we roll a 4.3.0-pre1
from
 HEAD on Thursday, so that QA team (or what's left of it) and everyone
 else can test it. Subsequently, based on the results of that testing we
 can see if branching for RC1 will make sense or if we should roll RC's
 from HEAD and branch later. Agreed?
 
 -Andrei
http://www.gravitonic.com/
 
 Work is of two kinds: first, altering the position of matter at or near
 the earth's surface relatively to other matter; second, telling other
people
 to do so. The first kind is unpleasant and ill-paid, the second is
pleasant
 and highly paid. -- Bertrand Russell
 
 --
 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 Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: Problems with unserialize

2002-10-06 Thread nicos

Same for me, +1.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Derick Rethans [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Hello,

 I think some recent change to the streams code screwed something up :) I
 now get this when running pear list:

 Notice: unserialize() failed at offset 8195 of 8192 bytes in
 Registry.php on line 328

 Notice: unserialize() failed at offset 8188 of 8192 bytes in
 Registry.php on line 328

 Notice: unserialize() failed at offset 8217 of 8192 bytes in
 Registry.php on line 328

 Notice: unserialize() failed at offset 8200 of 8192 bytes in
 Registry.php on line 328

 Notice: unserialize() failed at offset 8202 of 8192 bytes in
 Registry.php on line 328


 regards,
 Derick


 --

 --
-
  Derick Rethans   http://derickrethans.nl/
  JDI Media Solutions   http://www.jdimedia.nl/
 --
-




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




[PHP-DEV] Information about fread()

2002-10-06 Thread nicos

Can someone tell me where are the locate the sources of fgets() and fread()
please?

Thanks.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet




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




[PHP-DEV] Re: Information about fread()

2002-10-06 Thread nicos

ext/standard/file.c:PHPAPI PHP_FUNCTION(fread)

Sorry.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

[EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Can someone tell me where are the locate the sources of fgets() and
fread()
 please?

 Thanks.

 --

 Nicos - CHAILLAN Nicolas
 [EMAIL PROTECTED]
 www.WorldAKT.com - Hébergement de sites Internet






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




[PHP-DEV] fread() is not returning content of big files ( 5kb not so big)

2002-10-06 Thread nicos

Can someone check the bug: http://bugs.php.net/?id=19783edit=1

It looks really important:

I dont know if it is because of the new handling of streams but I just
verified that its working with PHP4.2.3 and not with 4_3 latest or if
len = Z_LVAL_PP(arg2); is returning a wrong length, but there is a problem.
If the contributor that has changed this can check that.

Thanks.


--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet




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




[PHP-DEV] Re: fread() is not returning content of big files ( 5kb not so big)

2002-10-06 Thread nicos

I just verified len is correct so...

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

[EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Can someone check the bug: http://bugs.php.net/?id=19783edit=1

 It looks really important:

 I dont know if it is because of the new handling of streams but I just
 verified that its working with PHP4.2.3 and not with 4_3 latest or if
 len = Z_LVAL_PP(arg2); is returning a wrong length, but there is a
problem.
 If the contributor that has changed this can check that.

 Thanks.


 --

 Nicos - CHAILLAN Nicolas
 [EMAIL PROTECTED]
 www.WorldAKT.com - Hébergement de sites Internet






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




[PHP-DEV] Re: fread() is not returning content of big files ( 5kb not so big)

2002-10-06 Thread nicos

Futhermore, it looks it stops at 8192 bytes.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

[EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Can someone check the bug: http://bugs.php.net/?id=19783edit=1

 It looks really important:

 I dont know if it is because of the new handling of streams but I just
 verified that its working with PHP4.2.3 and not with 4_3 latest or if
 len = Z_LVAL_PP(arg2); is returning a wrong length, but there is a
problem.
 If the contributor that has changed this can check that.

 Thanks.


 --

 Nicos - CHAILLAN Nicolas
 [EMAIL PROTECTED]
 www.WorldAKT.com - Hébergement de sites Internet






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




[PHP-DEV] Re: [PATCH] parse_url rewrite

2002-10-05 Thread nicos

Ok for me, +1.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Ilia A. [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 As clearly demonstrated buy bug report #16545, the current implementation
of
 parse_url() function is extremely slow. I wrote a custom state machine
parser
 to do the parsing in the place of the current regular expression.
 The result is code that takes a fraction of the time to run and in
addition to
 running faster, resolves some bugs in the existing implementation of the
 parse_url() function.
 I've tested the code using a parse_url() test created by Derick, which can
be
 found at php4/ext/standard/tests/strings/url_t.phpt. The new code passes
the
 test admirably and is in excess of 30 times faster then the existing
 implementation.

 Please try the attached patch and let me know if there are any objections
to
 replacing the current parse_url implementation with the one I propose.

 Ilia






 Index: url.c
 ===
 RCS file: /repository/php4/ext/standard/url.c,v
 retrieving revision 1.52
 diff -u -3 -p -r1.52 url.c
 --- url.c 10 Sep 2002 08:06:25 - 1.52
 +++ url.c 6 Oct 2002 00:51:11 -
 @@ -85,107 +85,143 @@ PHPAPI char *php_replace_controlchars(ch
   */
  PHPAPI php_url *php_url_parse(char *str)
  {
 - regex_t re;
 - regmatch_t subs[11];
 - int err;
   int length = strlen(str);
 - char *result;
 + char port_buf[5];
   php_url *ret = ecalloc(1, sizeof(php_url));
 + char *s, *e, *p, *pp, *ue;
 +
 + s = str;
 + ue = s + length;

 - /* from Appendix B of draft-fielding-url-syntax-09,
 -http://www.ics.uci.edu/~fielding/url/url.txt */
 - err = regcomp(re,
^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?, REG_EXTENDED);
 - if (err) {
 - /*php_error(E_WARNING, Unable to compile regex: %d\n, err);*/
 - efree(ret);
 - return NULL;
 - }
 - err = regexec(re, str, 10, subs, 0);
 - if (err) {
 - /*php_error(E_WARNING, Error with regex\n);*/
 - efree(ret);
 - regfree(re);
 - return NULL;
 - }
 - /* no processing necessary on the scheme */
 - if (subs[2].rm_so != -1  subs[2].rm_so = length) {
 - ret-scheme = estrndup(str + subs[2].rm_so, subs[2].rm_eo -
subs[2].rm_so);
 + /* parse scheme */
 + if ((e = strchr(s, ':'))  *(e+1) == '/'  *(e+2) == '/'  (e-s)) {
 + ret-scheme = estrndup(s, (e-s));
   php_replace_controlchars(ret-scheme);
 - }
 -
 - /* the path to the resource */
 - if (subs[5].rm_so != -1  subs[5].rm_so = length) {
 - ret-path = estrndup(str + subs[5].rm_so, subs[5].rm_eo -
subs[5].rm_so);
 + s = e + 3;
 + } else if (e) { /* no scheme, look for port */
 + p = e + 1;
 + pp = p;
 +
 + while (pp-p  6  isdigit(*pp)) {
 + pp++;
 + }
 +
 + if (pp-p  6  (*pp == '/' || *pp == '\0')) {
 + memcpy(port_buf, p, (pp-p));
 + port_buf[pp-p] = '\0';
 + ret-port = atoi(port_buf);
 + } else {
 + goto just_path;
 + }
 + } else {
 + just_path:
 + ret-path = estrndup(str, length);
   php_replace_controlchars(ret-path);
 + return ret;
   }
 -
 - /* the query part */
 - if (subs[7].rm_so != -1  subs[7].rm_so = length) {
 - ret-query = estrndup(str + subs[7].rm_so, subs[7].rm_eo -
subs[7].rm_so);
 - php_replace_controlchars(ret-query);
 - }
 -
 - /* the fragment */
 - if (subs[9].rm_so != -1  subs[9].rm_so = length) {
 - ret-fragment = estrndup(str + subs[9].rm_so, subs[9].rm_eo -
subs[9].rm_so);
 - php_replace_controlchars(ret-fragment);
 +
 + if (!(e = strchr(s, '/'))) {
 + e = ue;
   }

 - /* extract the username, pass, and port from the hostname */
 - if (subs[4].rm_so != -1  subs[4].rm_so = length) {
 -
 - int cerr;
 - /* extract username:pass@host:port from regex results */
 - result = estrndup(str + subs[4].rm_so, subs[4].rm_eo - subs[4].rm_so);
 - length = strlen(result);
 -
 - regfree(re); /* free the old regex */
 + /* check for login and password */
 + if ((p = memchr(s, '@', (e-s {
 + if ((pp = memchr(s, ':', (p-s {
 + if ((pp-s)  0) {
 + ret-user = estrndup(s, (pp-s));
 + php_replace_controlchars(ret-user);
 + }

 - if (length) {
 - if ((cerr=regcomp(re,
^(([^@:]+)(:([^@:]+))?@)?((\\[([^]]+)\\])|([^:@]+))(:([^:@]+))?,
REG_EXTENDED))
 - || (err=regexec(re, result, 11, subs, 0))) {
 + if (p-pp  1) {
 + ret-pass = estrndup(++pp, (p-pp-1));
 + php_replace_controlchars(ret-pass);
 + }
 + }
 +
 + s = p + 1;
 + }
 +
 + /* check for port */
 + if ((p = memchr(s, ':', (e-s {
 + if (!ret-port) {
 + p++;
 + if ( e-p  5 || e-p  1 ) { /* port cannot be longer then 5 characters
*/
   STR_FREE(ret-scheme);
 - STR_FREE(ret-path);
 - STR_FREE(ret-query);
 - STR_FREE(ret-fragment);
 + STR_FREE(ret-user);
 + STR_FREE(ret-pass);
   efree(ret);
 - efree(result);
 - /*php_error(E_WARNING, Unable to compile regex: %d\n, err);*/
 - if (!cerr) regfree(re);
   return NULL;
   }
 - /* now deal with all of the results */
 - if (subs[2].rm_so != -1  subs[2].rm_so  length) {
 - ret

[PHP-DEV] Re: --disable-cgi

2002-10-02 Thread nicos

It looks fine, nice work.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Andrei Zmievski [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 I'd like to have this patch committed, any comments?

 http://www.zend.com/lists/php-dev/200203/msg00407.html

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

 C combines all the power of assembly language with
  all the ease of use of assembly language -- trad



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




[PHP-DEV] Re: Problem with MQL PHP

2002-09-24 Thread nicos

Take it to the correct mailinglist: [EMAIL PROTECTED]

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Ms Rubina Khatoon [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Can any one please help me with below error?? Its
 working fine on another environment,Thanks.

 Warning: mysql_num_rows(): supplied argument is not a
 valid MySQL result resource in
 /home/www/winnerwireless/includes/functions/database.php
 on line 49



 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com



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




[PHP-DEV] Re: #19460 [NEW]: HTTP_POST_VARS trims 4 characters from left side of each field with array name

2002-09-17 Thread nicos

Yes I got the same bug.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

[EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 Operating system: Linux 2.4.9-34 (RedHat 7.2)
 PHP version:  4.2.3
 PHP Bug Type: Apache2 related
 Bug description:  HTTP_POST_VARS trims 4 characters from left side of each
field with array name

 After submitting a form, HTTP_POST_VARS trims 4 characters from left side
 of each field in a form which has name as an array. Example:

 ?php
 echo my[1]:  . $my[1] . br /;
 echo my[2]:  . $my[2] . br /;
 echo my[3]:  . $my[3] . br /;
 echo my4:  . $my4 . br /;
 echo my5:  . $my5 . br /;
 ?
 form action=1.php  name=name method=post
 input type=text name=my[1] value='1234567890'
 input type=text name=my[2] value='abcdefghijklmnop'
 input type=text name=my[3] value='a1b2c3d4e5f6g7'
 input type=text name=my4 value='abcdefghijklmnop'
 input type=text name=my5 value='http://www.msn.com/'
 input type=submit name=submit value=Submit /
 /form


 The OUTPUT I got:
 my[1]: 567890
 my[2]: efghijklmnop
 my[3]: c3d4e5f6g7
 my4: abcdefghijklmnop
 my5: http://www.msn.com/

 --
 Edit bug report at http://bugs.php.net/?id=19460edit=1
 --
 Try a CVS snapshot:  http://bugs.php.net/fix.php?id=19460r=trysnapshot
 Fixed in CVS:http://bugs.php.net/fix.php?id=19460r=fixedcvs
 Fixed in release:http://bugs.php.net/fix.php?id=19460r=alreadyfixed
 Need backtrace:  http://bugs.php.net/fix.php?id=19460r=needtrace
 Try newer version:   http://bugs.php.net/fix.php?id=19460r=oldversion
 Not developer issue: http://bugs.php.net/fix.php?id=19460r=support
 Expected behavior:   http://bugs.php.net/fix.php?id=19460r=notwrong
 Not enough info: http://bugs.php.net/fix.php?id=19460r=notenoughinfo
 Submitted twice: http://bugs.php.net/fix.php?id=19460r=submittedtwice
 register_globals:http://bugs.php.net/fix.php?id=19460r=globals




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




[PHP-DEV] Re: Problems with PHP.net MX

2002-09-08 Thread nicos

Nice news. We are 1 day later, still no mail. I would like to repeat again
that If you need a hoster, I'm available.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Jim Winstead [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Will we lose the mail or not? That is my _only_ mail right now, that
would
  be so bad :-/

 except for a small handful of messages that already bounced because of a
 little slip-up during the transition, all the messages should make it
 through, possibly with some delays.

 (and clearly it is not your only mail -- your php.net address must be
 forwarding somewhere.)

 i would further point out that subscribing to php mailing lists using
 your php.net address only compounds any possible problems or delays. you
 can post from a non-subscriber address, so there's no compelling reason
 not to directly subscribe to the mailing lists with whatever address
 your php.net address ultimately forwards to.

 jim



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




Re: [PHP-DEV] Re: Problems with PHP.net MX

2002-09-08 Thread nicos

Hmm okay, Will we get the old mail or not?
I just tried to send me a mail, I got nothing (I waited 1 hour)...

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

James Cox [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 we're fine.

 I believe the mx is happy again.
 
  Nice news. We are 1 day later, still no mail. I would like to repeat
again
  that If you need a hoster, I'm available.
 
  --
 
  Nicos - CHAILLAN Nicolas
  [EMAIL PROTECTED]
  www.WorldAKT.com - Hébergement de sites Internet
 
  Jim Winstead [EMAIL PROTECTED] a écrit dans le message de news:
  [EMAIL PROTECTED]
   [EMAIL PROTECTED] wrote:
Will we lose the mail or not? That is my _only_ mail right now, that
  would
be so bad :-/
  
   except for a small handful of messages that already bounced because of
a
   little slip-up during the transition, all the messages should make it
   through, possibly with some delays.
  
   (and clearly it is not your only mail -- your php.net address must be
   forwarding somewhere.)
  
   i would further point out that subscribing to php mailing lists using
   your php.net address only compounds any possible problems or delays.
you
   can post from a non-subscriber address, so there's no compelling
reason
   not to directly subscribe to the mailing lists with whatever address
   your php.net address ultimately forwards to.
  
   jim
 
 
 
  --
  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] Re: Problems with PHP.net MX

2002-09-07 Thread nicos

Sep  7 22:29:51 WorldAKT postfix/pickup[90851]: D081160ECA: uid=0
from=root
Sep  7 22:29:51 WorldAKT postfix/cleanup[90921]: D081160ECA:
message-id=[EMAIL PROTECTED]
Sep  7 22:29:51 WorldAKT postfix/qmgr[90852]: D081160ECA:
from=[EMAIL PROTECTED], size=297, nrcpt=1 (queue active)
Sep  7 22:29:54 WorldAKT postfix/smtp[90922]: D081160ECA:
to=[EMAIL PROTECTED], relay=pair2.php.net[216.92.131.5], delay=3,
status=deferred (lost connection with pair2.php.net[216.92.131.5] while
sending end of data -- message may be sent more than once)

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

[EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 Hi,
 Are there any problems with PHP.net MX? I should host a MX Backup if it is
 needed. It looks I dont receive my mails anymore, well it takes few hours.
 (4h...).

 --

 Nicos - CHAILLAN Nicolas
 [EMAIL PROTECTED]
 www.WorldAKT.com - Hébergement de sites Internet






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




[PHP-DEV] Problems with PHP.net MX

2002-09-07 Thread nicos

Hi,
Are there any problems with PHP.net MX? I should host a MX Backup if it is
needed. It looks I dont receive my mails anymore, well it takes few hours.
(4h...).

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet




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




[PHP-DEV] Re: Problems with PHP.net MX

2002-09-07 Thread nicos

Will we lose the mail or not? That is my _only_ mail right now, that would
be so bad :-/

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Jim Winstead [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 In article [EMAIL PROTECTED] you wrote:
  Are there any problems with PHP.net MX? I should host a MX Backup if
  it is
  needed. It looks I dont receive my mails anymore, well it takes few
  hours.
  (4h...).

 mail handling is being transitioned to a different machine (and the
 machine that used to be handling it has had a spotty uptime record the
 last few days). there may be some more hiccups during this transition.

 jim



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




[PHP-DEV] Re: PHP 4.2.3 released

2002-09-06 Thread nicos

Nice work.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Zeev Suraski [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 PHP 4.2.3 has been released.  It is a maintenance release and includes a
 large number of fixes for the previous 4.2.2 version.  4.2.3 is a
 recommended upgrade for all users of PHP, and particularly Windows users.

 Full list of changes:
 - Enabled strcoll() on win32. (Markus)
 - Fixed possible ASCII control char injection in mail(). (Stefan Esser)
 - Fixed a potential crash bug in import_request_variables() (Zeev)
 - Fixed several problems with directory functions on Windows. (Steph)
 - Fixed xbithack bug in Apache module. (Rasmus)
 - Fixed a bug that prevented touch() from working on various platforms.
(Steph)
 - Fixed ob_gzhandler()'s handling of requests that do have the
Accept-Encoding
header, but do not allow compression. (Zeev)
 - Fixed several bugs in the multithreaded version that could cause random
parse
errors, especially on machines with multiple CPUs. (Zeev, Zend Engine)
 - Fixed a build problem in bcmath. (Alan)
 - Fixed several bzip2 issues. (Andrei, kalowsky)
 - Fixed several COM issues. (Harald)
 - Various exif fixes. (Marcus)
 - Fixed domxml_xslt_process() and domxml_get_element_by_id() and several
other issues in DOMXML. (Christian)
 - Fixed DOMXML crash on removing previously created attributes.
(Christian)
 - Fixed crash when converting $GLOBALS to an object. (Zeev, Zend Engine)
 - Fixed ImageCreateFromGD2Part() (Jani)
 - Fixed a build issue in the IMAP extension under IRIX. (kalowsky)
 - Fixed a bug in imap_last_error() (Jani)
 - Various mbstring fixes. (Yasuo, Rui)
 - Fixed a build problem in the mcal extension. (Jani)
 - Made MySQL rollback open transactions when the request ends. (Georg)
 - Fixed a crash in the shutdown order of the ODBC module. (kalowsky)
 - Fixed PCRE build problems. ([EMAIL PROTECTED])
 - Fixed a crash in pg_lo_write() (Yasuo)
 - Fixed posix_isatty() and posix_ttyname(). (Markus)
 - Fixed accidental pg_lo_import() API change. (Yasuo)
 - Fixed ereg_replace() crash when the backreference number was greater
than the
number of captured subpatterns. ([EMAIL PROTECTED])
 - Fixed array_rand() on thread-safe platforms such as Windows. (Edin)
 - Report the right exit code after a call to exit(). (Edin)

 Shana tova,

 Zeev




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




[PHP-DEV] Re: --disable-all / --enable-all

2002-09-03 Thread nicos

Nice work.

--

Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet

Jani Taskinen [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]

 Attached patch adds --disable-all / --enable-all
 configure options to disable/enable all extensions

 You can do something like this now (tested):

   ./configure --disable-all --with-zlib

 To only include zlib extension. Or the other way around (untested):

   ./configure --enable-all --without-zlib

 And of course (totally untested..):

   ./configure --enable-all=shared,/usr/local


 This only affects those extensions which use the PHP_ARG_*
 macros. The patch adds one extra parameter to them to tell
 which options are 'extension' options. Any option which
 should not be enabled automatically should have it set to 'no'.
 (default for it is 'yes')

 Please test this. I don't want to commit it before I hear
 some positive comments.. phpize'd builds should be tested also.
 (I did try that, and it works.. :)

 --Jani








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




[PHP-DEV] wassup with master.php

2002-09-02 Thread nicos

Hi,

is someone working on master.php.net or what?

--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet



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




Re: [PHP-DEV] wassup with master.php

2002-09-02 Thread nicos

I assumed, I asked if someone where working on it to set it up back...

--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
James Cox [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 if you'd been paying attention, you would have noticed that the machine
it's
 on is down right now.

  -- james

 
  Hi,
 
  is someone working on master.php.net or what?
 
  --
  Merci de nous avoir choisi. - Thanks you for your choice.
  Nicos - CHAILLAN Nicolas
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  www.GroupAKT.com - Hébergement Group.
  www.WorldAKT.com - Hébergement de sites Internet
 
 
 
  --
  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] wassup with master.php

2002-09-02 Thread nicos

Nice news, nice you're back too.

--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
James Cox [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
 yes, we're working on it..

  -- james
 
  I assumed, I asked if someone where working on it to set it up back...
 
  --
  Merci de nous avoir choisi. - Thanks you for your choice.
  Nicos - CHAILLAN Nicolas
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  www.GroupAKT.com - Hébergement Group.
  www.WorldAKT.com - Hébergement de sites Internet
  James Cox [EMAIL PROTECTED] a écrit dans le message de news:
  [EMAIL PROTECTED]
   if you'd been paying attention, you would have noticed that the
machine
  it's
   on is down right now.
  
-- james
  
   
Hi,
   
is someone working on master.php.net or what?
   
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
   
   
   
--
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 Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php