[PHP-DEV] CVS Account Request: tony2001

2003-02-24 Thread Antony Dovgal
Translating PEAR docs to Russian (main purpose, PEAR Russian docs team obviously need 
help).
Translating PHP docs to Russian (possibly, if Russian docs team needs some help).

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



[PHP-DEV] Re: RFC: dba/inifile native interface

2003-02-24 Thread Sascha Schumann
 I implemented the native interface - inifile_*() functions - in order to be
 able to work with group and name instead of the single key format that
 is necessary using the dba interface.

Sounds to me like another issue which could have been easily
solved by using a thin PHP layer.

- Sascha

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



[PHP-DEV] PHP Output

2003-02-24 Thread Vinod Panicker
Hi,

Could someone pls tell me where exactly in the code is the response
body(including the response headers that php wants to send) formed after
a script is executed?

From what I understood, the execute() function in zend.c was doing that.
Am I right?  Or is there more to it?

Tx,
Vinod.

---
Vinod Panicker [EMAIL PROTECTED]
Sr. Software Designer
Geodesic Information Systems Ltd.
http://www.geodesiconline.com



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



[PHP-DEV] Xml into PHP5

2003-02-24 Thread michel
Hi which is the story of XML into PHP5: DOM or Sablaton (XSL)? Insert 
direct into php5 or like now via configure ?

Tnx in advance for all.



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



Re: [PHP-DEV] extra realpath() found

2003-02-24 Thread Sander Roobol
On Sun, Feb 23, 2003 at 01:25:34PM -0800, Rasmus Lerdorf wrote:
 Hey Sander, you fixed a problem back in July where you introduced a second
 realpath() call into the main execute_script() function. 
 [...]
 php_fopen_primary_script() calls expand_filepath() which does the realpath
 before we get to execute_script.  Why not add the path to the
 included_files list at that point instead?
 
 Let me know if you feel like playing with it, otherwise I will.

I looked into it briefly, as I don't have much time currently, but I
discovered it's not that easy. php_fopen_primary_script() is only used
by the CGI and Servlet SAPI, while all SAPIs call php_execute_script().
We need to find a different place to update the included_files list, or
make sure the SAPIs don't call realpath() themselves.

I think it's better if someone with some more experience with PHP's
internals looks into this, because it will take me too much time right
now.

Sander

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



[PHP-DEV] CVS Account Request: nizar

2003-02-24 Thread N.T.
Translating to Arabic

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



[PHP-DEV] CVS Account Request: house

2003-02-24 Thread Amel Jakupovic
Translating the documentation
(English - Croatian)

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



[PHP-DEV] CVS Account Request: krausbn

2003-02-24 Thread Björn Kraus
I'm contributing to the PEAR::LiveUser project. I already contacted the developers and 
got their ok.

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



RE: [PHP-DEV] CVS Account Request: krausbn

2003-02-24 Thread Lukas Smith
 -Original Message-
 From: Björn Kraus [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 24, 2003 5:46 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP-DEV] CVS Account Request: krausbn
 
 I'm contributing to the PEAR::LiveUser project. I already contacted
the
 developers and got their ok.

I am one of the developers and Björn will takeover my piece of the pie,
as I don’t have any time to further work on this project for now.
He already has some patches he wants to commit.

So +1 etc :-)

Regards,
Lukas Smith
[EMAIL PROTECTED]
___
 BackendMedia
 www.backendmedia.com
 [EMAIL PROTECTED]

 Linn Zwoch Smith GbR
 Reuchlinstr. 10-11 Raum 4.1.6
 D-10553 Berlin (Tiergarten)
 
 Tel +49 30 83 22 50 00
 Fax +49 30 83 22 50 07


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



[PHP-DEV] Re: Xml into PHP5

2003-02-24 Thread Dirkjan Ochtman
Maybe PHP-XML-DEV is a better place to discuss this.

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi which is the story of XML into PHP5: DOM or Sablaton (XSL)? Insert
 direct into php5 or like now via configure ?

 Tnx in advance for all.



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



Re: [PHP-DEV] extra realpath() found

2003-02-24 Thread Wez Furlong
With my ze-stream patch to PHP 5 (in HEAD now), this can be avoided as
all files opened on the behalf of the engine can be managed via a single
function, provided that they set the zend file handle to open via a
filename.

--Wez.

On Mon, 24 Feb 2003, Sander Roobol wrote:

 On Sun, Feb 23, 2003 at 01:25:34PM -0800, Rasmus Lerdorf wrote:
  Hey Sander, you fixed a problem back in July where you introduced a second
  realpath() call into the main execute_script() function.
  [...]
  php_fopen_primary_script() calls expand_filepath() which does the realpath
  before we get to execute_script.  Why not add the path to the
  included_files list at that point instead?
 
  Let me know if you feel like playing with it, otherwise I will.

 I looked into it briefly, as I don't have much time currently, but I
 discovered it's not that easy. php_fopen_primary_script() is only used
 by the CGI and Servlet SAPI, while all SAPIs call php_execute_script().
 We need to find a different place to update the included_files list, or
 make sure the SAPIs don't call realpath() themselves.

 I think it's better if someone with some more experience with PHP's
 internals looks into this, because it will take me too much time right
 now.

 Sander

 --
 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] patch for binary-safe strip_tags()

2003-02-24 Thread Moriyoshi Koizumi
Hi,

Attached is the patch for binary-safe strip_tags().
Although it doesn't appear to be harmful anyhow, I think it needs
review since it modifies rather sensitive part.

Any objections?

Moriyoshi

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



Re: [PHP-DEV] patch for binary-safe strip_tags()

2003-02-24 Thread Moriyoshi Koizumi
Oops, forgot to attach it...

Moriyoshi

On Tue, Feb 25, 2003 at 03:14:58AM +0900, Moriyoshi Koizumi wrote:
 Hi,
 
 Attached is the patch for binary-safe strip_tags().
 Although it doesn't appear to be harmful anyhow, I think it needs
 review since it modifies rather sensitive part.
 
 Any objections?
 
 Moriyoshi
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
? ext/standard/filters.c.next
Index: ext/standard/php_string.h
===
RCS file: /repository/php4/ext/standard/php_string.h,v
retrieving revision 1.71
diff -u -r1.71 php_string.h
--- ext/standard/php_string.h   11 Feb 2003 22:47:26 -  1.71
+++ ext/standard/php_string.h   24 Feb 2003 17:17:23 -
@@ -129,7 +129,7 @@
 PHPAPI char *php_str_to_str(char *haystack, int length, char *needle,
int needle_len, char *str, int str_len, int *_new_length);
 PHPAPI char *php_trim(char *c, int len, char *what, int what_len, zval *return_value, 
int mode TSRMLS_DC);
-PHPAPI void php_strip_tags(char *rbuf, int len, int *state, char *allow, int 
allow_len);
+PHPAPI size_t php_strip_tags(char *rbuf, int len, int *state, char *allow, int 
allow_len);
 PHPAPI int php_char_to_str(char *str, uint len, char from, char *to, int to_len, pval 
*result);
 PHPAPI void php_implode(zval *delim, zval *arr, zval *return_value);
 PHPAPI void php_explode(zval *delim, zval *str, zval *return_value, int limit);
Index: ext/standard/string.c
===
RCS file: /repository/php4/ext/standard/string.c,v
retrieving revision 1.359
diff -u -r1.359 string.c
--- ext/standard/string.c   18 Feb 2003 18:11:34 -  1.359
+++ ext/standard/string.c   24 Feb 2003 17:17:24 -
@@ -3299,6 +3299,7 @@
zval **str, **allow=NULL;
char *allowed_tags=NULL;
int allowed_tags_len=0;
+   size_t retval_len;
 
switch (ZEND_NUM_ARGS()) {
case 1:
@@ -3320,8 +3321,8 @@
}
convert_to_string_ex(str);
buf = estrndup(Z_STRVAL_PP(str), Z_STRLEN_PP(str));
-   php_strip_tags(buf, Z_STRLEN_PP(str), NULL, allowed_tags, allowed_tags_len);
-   RETURN_STRING(buf, 0);
+   retval_len = php_strip_tags(buf, Z_STRLEN_PP(str), NULL, allowed_tags, 
allowed_tags_len);
+   RETURN_STRINGL(buf, retval_len, 0);
 }
 /* }}} */
 
@@ -3555,7 +3556,7 @@
swm: Added ability to strip ?xml tags without assuming it PHP
code.
 */
-PHPAPI void php_strip_tags(char *rbuf, int len, int *stateptr, char *allow, int 
allow_len)
+PHPAPI size_t php_strip_tags(char *rbuf, int len, int *stateptr, char *allow, int 
allow_len)
 {
char *tbuf, *buf, *p, *tp, *rp, c, lc;
int br, i=0, depth=0;
@@ -3751,6 +3752,8 @@
efree(tbuf);
if (stateptr)
*stateptr = state;
+
+   return (size_t)(rp - rbuf);
 }
 /* }}} */
 

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

Re: [PHP-DEV] patch for binary-safe strip_tags()

2003-02-24 Thread Rasmus Lerdorf
Looks fine to me.  

On Tue, 25 Feb 2003, Moriyoshi Koizumi wrote:

 Hi,
 
 Attached is the patch for binary-safe strip_tags().
 Although it doesn't appear to be harmful anyhow, I think it needs
 review since it modifies rather sensitive part.
 
 Any objections?
 
 Moriyoshi
 
 


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



Re: [PHP-DEV] Re: RFC: dba/inifile native interface

2003-02-24 Thread Marcus Börger
At 12:02 24.02.2003, Sascha Schumann wrote:
 I implemented the native interface - inifile_*() functions - in order to be
 able to work with group and name instead of the single key format that
 is necessary using the dba interface.
Sounds to me like another issue which could have been easily
solved by using a thin PHP layer.
Yeah - and i also thought about accepting an array as a key in case of
handler inifile. I think this would be much better for users and for c code
maintainance, what do you think?
marcus



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


[PHP-DEV] mssql.convertdatetime, mssql.longdatetime

2003-02-24 Thread Jochen Daum
Hi !

I need to fetch a datetime column from sql server with milliseconds. Someone
posted a patch a while ago:

http://groups.google.co.nz/groups?q=mssql+longdatetime+group:php.devhl=enl
r=ie=UTF-8oe=UTF-8selm=CB1A8358550CD2119F9C00A0C9984350934F79%40exchange.
phone-ivr.comrnum=1

How do I find out, if this patch has been incorporated into Version 4.3?

Thanks for any pointers,

Jochen


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



[PHP-DEV] CVS Account Request: llucax

2003-02-24 Thread Leandro Lucarella
I've been aprobed to add a package (really just a class) to PEAR. The package (Date) 
manteiner told me to request a CVS account in PHP, so here am I :)

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



RE: [PHP-DEV] mssql.convertdatetime, mssql.longdatetime

2003-02-24 Thread Mike Robinson
Jochen Daum wrote:
 Hi !
 
 I need to fetch a datetime column from sql server with 
 milliseconds. Someone posted a patch a while ago:
 

Doesn't look like that patch made it, but a ton of work has
been done on that file since.

 How do I find out, if this patch has been incorporated
 into Version 4.3?

http://cvs.php.net/co.php/php4/ext/mssql/php_mssql.c?login=2r=1.107

Regards
Mike Robinson


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



Re: [PHP-DEV] Libtool for RH8

2003-02-24 Thread Joseph Tate
Derick, would you post the SRPM for libtool?

Joseph

Derick Rethans wrote:
On 19 Feb 2003, michel 'ziobudda' morelli wrote:


Hi, i have downloaded the new cvs version of php5, but:

buildconf: libtool version 1.4.2 found.
  You need libtool version 1.4.3 or newer installed
  to build PHP from CVS.
make: *** [buildmk.stamp] Error 1
where I can find it ?

there is no update for redhat for libtool 1.4.3


ah, I already made them:

http://files.derickrethans.nl/libtool-1.4.3-4.i386.rpm
http://files.derickrethans.nl/libtool-libs-1.4.3-4.i386.rpm
Derick



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


[PHP-DEV] CREDITS/Authors

2003-02-24 Thread Corne' Cornelius
Who adds people to the CREDITS/Authors section of an extension ?
the maintainers of the module, or someone else assigned to do it ?
Any objection of adding me to the Informix Extension CREDITS/Authors ?
-Corne'

!Exclude Disclaimer!

--
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/tokenizer tokenizer.c

2003-02-24 Thread Sebastian Bergmann
Stig Bakken wrote:
 +#ifdef ZEND_ENGINE_2

  Why the #ifdef? Isn't HEAD supposed to be PHP 5 / ZE2 only?

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

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

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



Re: [PHP-DEV] CREDITS/Authors

2003-02-24 Thread Jani Taskinen

Go ahead. (And don't forget to MFH that config.m4 fix..)
Or the CREDITS file. :)

--Jani


On Tue, 25 Feb 2003, Corne' Cornelius wrote:

Who adds people to the CREDITS/Authors section of an extension ?
the maintainers of the module, or someone else assigned to do it ?
Any objection of adding me to the Informix Extension CREDITS/Authors ?

-Corne'

!Exclude Disclaimer!




-- 
- For Sale! -


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



Re: [PHP-DEV] CREDITS/Authors

2003-02-24 Thread Corne' Cornelius
Thanks, will do =)
Wasn't sure if i should MFH it becuase it could still be a while before 
IBM brings out a multi-digit major number for ESQL/C but you never know.

Corne'

!Exclude Disclaimer!

Jani Taskinen wrote:

   Go ahead. (And don't forget to MFH that config.m4 fix..)
   Or the CREDITS file. :)
   --Jani
   

On Tue, 25 Feb 2003, Corne' Cornelius wrote:

 

Who adds people to the CREDITS/Authors section of an extension ?
the maintainers of the module, or someone else assigned to do it ?
Any objection of adding me to the Informix Extension CREDITS/Authors ?
-Corne'

!Exclude Disclaimer!



   

 




Re: [PHP-DEV] Performance degradation part 2 the module version

2003-02-24 Thread Rasmus Lerdorf
On Sun, 23 Feb 2003, Wez Furlong wrote:
 This double seeking is most probably due to the fact that the stdio
 layer does one set of seeking, whereas streams needs to do another.
 
 This can be solved by moving away from using stdio for streams, and just
 using the raw descriptors instead.  (already made a start on this in
 PHP 5).

I had a closer look at this.  The seeks are not coming from the stdio 
layer, they are coming directly from PHP.  The first, SEEK_CUR +0 comes 
from an ftell() call here in _php_stream_fopen_from_file():

if (stream) {
if (self-is_pipe) {
stream-flags |= PHP_STREAM_FLAG_NO_SEEK;
} else {
stream-position = ftell(file);
}
}

We should be able to skip that ftell() call on a script or include file we 
have just opened, right?

And here is the backtrace for the second one:

#0  0x202e6c0f in lseek () from /usr/lib/libc.so.4
#1  0x203ef154 in php_stdiop_seek (stream=0xd640c, offset=0, whence=0, 
newoffset=0x9fbfdcbc)
at /homes/rasmus/php4/main/streams.c:1493
#2  0x203ef868 in _php_stream_cast (stream=0xd640c, castas=-1073741824, 
ret=0x9fbfdcf0, show_err=8)
at /homes/rasmus/php4/main/streams.c:1952
#3  0x203f04d6 in _php_stream_open_wrapper_as_file (path=0xddad8 
/home/y/share/htdocs/test.php, mode=0x2043a223 rb,
options=141, opened_path=0x9fbff328) at /homes/rasmus/php4/main/streams.c:2506
#4  0x203e3b4e in php_fopen_wrapper_for_zend (filename=0xddad8 
/home/y/share/htdocs/test.php, opened_path=0x9fbff328)
at /homes/rasmus/php4/main/main.c:727

The php_stdiop_seek() does a direct lseek() call.  I don't really see why
this is needed either at this point.  In
_php_stream_open_wrapper_as_file() what are you trying to guard against
with that stream_cast call?

if (php_stream_cast(stream, 
PHP_STREAM_AS_STDIO|PHP_STREAM_CAST_TRY_HARD|PHP_STREAM_CAST_RELEASE,
(void**)fp, REPORT_ERRORS) == FAILURE)
{
php_stream_close(stream);
if (opened_path  *opened_path)
efree(*opened_path);
return NULL;
}

We have already stat()'ed the file to death.  We know it is there, that we 
are allowed to open it, etc.  What could go wrong that the open call just 
above it wouldn't have caught?  Is it just a case of getting too general 
and we need a special-case simpler function for the most common operation 
of simply opening script files?

-Rasmus


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



Re: [PHP-DEV] mssql.convertdatetime, mssql.longdatetime

2003-02-24 Thread Michael Bretterklieber
Hi,

Just FYI:

I wrote some months ago a patch wich let datetime-values return in the 
format -MM-DD HH24:MI:SS, because sometimes the conversion function 
wich converts datetime-values does weird things.
The ini switch for activating this is named mssql.datetimeconvert, you 
must set this to 0 for deactivating the datetimeconvert-function.

This patch was integrated by fmk some months ago.

bye,

Mike Robinson schrieb:
Jochen Daum wrote:

Hi !

I need to fetch a datetime column from sql server with 
milliseconds. Someone posted a patch a while ago:



Doesn't look like that patch made it, but a ton of work has
been done on that file since.

How do I find out, if this patch has been incorporated
into Version 4.3?


http://cvs.php.net/co.php/php4/ext/mssql/php_mssql.c?login=2r=1.107

Regards
Mike Robinson

--
--- --
Michael Bretterklieber  - [EMAIL PROTECTED]	
JAWA Management Software GmbH   - http://www.jawa.at
Liebenauer Hauptstr. 200-- privat 
A-8041 GRAZ GSM: ++43-(0)676-84 03 15 712
Tel: ++43-(0)316-403274-12  E-mail: [EMAIL PROTECTED]
Fax: ++43-(0)316-403274-10  http://www.bretterklieber.com
--- --
...the number of UNIX installations has grown to 10, with more 
expected... - Dennis Ritchie and Ken Thompson, June 1972

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


[PHP-DEV] Jumadi

2003-02-24 Thread if01024
dear all of member php-dev.
i book working php with MySQL if any  the members have book about it if you 
want to help me please send to me this is my Address:

Jumadi Simangunsong
Politeknik Informatika Del
Desa Sitoluama, Kec Laguboti Tobasa
Prop:Sumatatera Utara
Indonesia
22381


best regards

Jumadi Simangunsong

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