Re: [PHP-DEV] exec + safemode

2002-03-12 Thread Stefan Esser
Hi, It is not off topic. Its an annoying bug and I asked around if I oversee something if i change php_escape_shell_cmd to ignore stuff between quotes. (off course checking for escaped quotes within the quotes) Stefan -- PHP Development Mailing List To unsubscribe, visit

[PHP-DEV] CVS fails to build

2002-03-12 Thread Sebastian Bergmann
Linux, Apache 2 SAPI: ext/mysql/php_mysql.lo: In function `zif_mysql_create_db': /usr/src/php4/ext/mysql/php_mysql.c:942: undefined reference to `mysql_create_db' ext/mysql/php_mysql.lo: In function `zif_mysql_drop_db': /usr/src/php4/ext/mysql/php_mysql.c:981: undefined reference to `mysql_drop

[PHP-DEV] Current CVS on Linux fails to build

2002-03-12 Thread Sebastian Bergmann
Linux, Apache 2 SAPI: ext/mysql/php_mysql.lo: In function `zif_mysql_create_db': /usr/src/php4/ext/mysql/php_mysql.c:942: undefined reference to `mysql_create_db' ext/mysql/php_mysql.lo: In function `zif_mysql_drop_db': /usr/src/php4/ext/mysql/php_mysql.c:981: undefined reference to `mysql_drop

[PHP-DEV] CVS Account Request: sukamade

2002-03-12 Thread Adi Setiawan
Translating the documentation to Indonesian langunages -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: FW: [PHP-DEV] OCIError patch

2002-03-12 Thread Markus Fischer
Of course the offset is fine. But if I were you, I wouldn't put the asterisk into the sql statement; just provide the offset. _This_ is the greatest flexibility you can provide because all the information is passed unmodified to the developer. Serious environments need cus

[PHP-DEV] Linking pthread in a module

2002-03-12 Thread Brian Foddy
Related to my previous note, I remembered another question I've pondered. If you noticed in my last note, the link statement included -lpthread (I've tried without it, it won't link without pthread). Which implies to me that the Tuxedo libraries I'm bringing in, are themselves multi-threaded; e

[PHP-DEV] Config.m4 help

2002-03-12 Thread Brian Foddy
I'm finally trying to tackle an improvement in the config.m4 for my tuxedo module. Previously, I've just hacked my way from other config.m4 scripts until it did what I wanted. But now I need it to get fancy. The problem comes because the raw Tuxedo libraries and the linking required to use them

[PHP-DEV] New Build system niggles

2002-03-12 Thread Wez Furlong
Hi all, I've noticed a couple of minor issues with the build system; perhaps a build guru (Sascha!) could take a look... sapi/cli/php seems to have a broken dependency; if I touch ext/standard/aggregate.c, the object is built but the executable is not re-linked. "make test" will run, but someth

[PHP-DEV] Re: Session Oddness

2002-03-12 Thread Yasuo Ohgaki
Yeah. I know. This is one of the issue I'm going to discuss with Sascha. It's not important for me compare to other issues, so this will be the last one. Anyway, may be we should go back to the original behavior for now. -- Yasuo Ohgaki [EMAIL PROTECTED] Matt Allen wrote: > Guys, > > Somebod

[PHP-DEV] Session Oddness

2002-03-12 Thread Matt Allen
Guys, Somebody hsa done something screwy with sessions, ther WEREN'T defining SID when a cookie wasnt set. heres a diff: --- php4-200203120300/ext/session/session.c Wed Mar 13 02:51:51 2002 +++ tmp/php4-200203120300/ext/session/session.c Sat Mar 9 11:33:29 2002 @@ -940,14 +940,7 @@

Re: [PHP-DEV] the dl() issue

2002-03-12 Thread Yasuo Ohgaki
Marko Karppinen wrote: > Zeev and Stas: > > >>That sounds like a pretty good idea, actually :) >> >>>Might the solution be in the form of some 'auto-load extension folder'? >>>I.e., folder in which all extensions found there are loaded automatically? >> > > Yes, this seems to be a near-perfect

[PHP-DEV] Re: mbstring module

2002-03-12 Thread Yasuo Ohgaki
Brad Lafountain wrote: > $str = "Hello World"; > echo mb_strlen($str) . "\n"; > echo mb_strlen(mb_convert_encoding($str, "BASE64"), "BASE64"); > ?> > > the code above prints out > 11 > 16 > > > ... is this correct??? If so why does it work this way. Yes. This is correct. "BASE64" is not a val

Re: [PHP-DEV] buildconf for 4.1.2 breaks Solaris 8

2002-03-12 Thread Jon Parise
On Tue, Mar 12, 2002 at 06:33:34PM -0500, J Smith wrote: > This is the first time I've tried installing on Solaris, so maybe I'm way > off, but anyways... > > Here's how things look: > > # ./buildconf > rebuilding configure > configure.in:124: warning: AC_PROG_LEX invoked multiple times > rebu

[PHP-DEV] read_uploaded_file();

2002-03-12 Thread Andrew Sitnikov
Hello php-dev, I created function `read_uploaded_file()`, i think it is useful at to work with uploaded file in safe_mode and open_basedir, because if i need only file content and safe_mode=on or open_basedir is set, i can not read file, i must move it, read and delete then. Best regards

[PHP-DEV] Is credits_ext.h still being updated?

2002-03-12 Thread Jason Greene
I added myself to the Sockets Extension a few months ago, and it has never propagated. -Jason -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] buildconf for 4.1.2 breaks Solaris 8

2002-03-12 Thread J Smith
This is the first time I've tried installing on Solaris, so maybe I'm way off, but anyways... Here's how things look: # ./buildconf rebuilding configure configure.in:124: warning: AC_PROG_LEX invoked multiple times rebuilding main/php_config.h.in # ./configure [any combination of configure ar

Re: [PHP-DEV] fopen with https support ?

2002-03-12 Thread Wez Furlong
Andrey, I have a patch waiting to commit against the current CVS; I've been holding off while waiting for the branch for the next release and now I'm waiting for the new build system to settle down a little. Since the patch touches most corners of PHP, it will need a bit of "testing in"; I think

[PHP-DEV] HEADS UP! Streams are coming

2002-03-12 Thread Wez Furlong
Hi all, I've decided to drop the old ISSOCK style code from my streams-enabled PHP tree, since supporting both that and streams in the code makes the code worse than it was originally (and the point is to make the code nicer). But! What about third-party extensions? Are there any out there that

Re: FW: [PHP-DEV] OCIError patch

2002-03-12 Thread Walter A. Boring IV
I like the idea of having the sqltext in the return array, as well as the offset. This is a very usefull tool for debugging oracle sql queries. I believe its something that OCIError has been lacking. Anyone that uses Oracle along with sqlplus, you get the * under the broken portion of the query

Re: FW: [PHP-DEV] OCIError patch

2002-03-12 Thread Daniel Ceregatti
Yes. An example of what would be in the array returned by OCIError would be: // Given the code below... $conn = OCILogon (bla bla bla); $sql = "select t.foo, t.bar from table t where t.id = 1"; $stmt = OCIParse ($conn, $sql); OCIExecute ($stmt, OCI_DEFAULT); $error = OCIError ($stmt); //

Re: FW: [PHP-DEV] OCIError patch

2002-03-12 Thread Markus Fischer
On Tue, Mar 12, 2002 at 02:26:24PM -0800, Daniel Ceregatti wrote : > How about doing what sqlplus does and simply add an asterisk at that > point? I'm ok with rolling my own inside of the script by using the > offset element. I simply think it'll do PHP users a service to have the > "sqltext"

Re: FW: [PHP-DEV] OCIError patch

2002-03-12 Thread Daniel Ceregatti
How about doing what sqlplus does and simply add an asterisk at that point? I'm ok with rolling my own inside of the script by using the offset element. I simply think it'll do PHP users a service to have the "sqltext" in the array in _some_ form, even if only with an asterisk. Your thoug

Re: FW: [PHP-DEV] OCIError patch

2002-03-12 Thread Markus Fischer
I'm -indefinite until the html gets out of it. There are no error messages which do html on their own (if so, they are bogus and need to be fixed). Command line does not use .. anymore (has been fixed). On Tue, Mar 12, 2002 at 02:02:30PM -0800, Daniel Ceregatti wrote : > Hi, > >

Re: FW: [PHP-DEV] OCIError patch

2002-03-12 Thread Daniel Ceregatti
Hi, Andi, thanks for the feedback. I've changed the patch to include emalloc and efree. I actually use PHP from the command line a lot and I've noticed that warnings always get wrapped in , so I figured it was ok to do HTML here too. I've modified the patch to also include an "offset" element i

Re: [PHP-DEV] OCIError patch

2002-03-12 Thread Andi Gutmans
Hey, I'm not quite sure it's correct for the error message to print HTML itself. It's probably more correct to do this from user land. In any case, you should not be using malloc()/free() but emalloc()/efree(). If the request gets interrupted the memory will be freed if you're using emalloc().

Re: [PHP-DEV] exec + safemode

2002-03-12 Thread Lars Torben Wilson
On Tue, 2002-03-12 at 07:30, Stefan Esser wrote: > Morning, (maybe i am just blind...) > > I doubt this can be counted as support question *grin* > > Has anyone of you ever tried to exec a command while in safe_mode? > > exec ("blub"); works fine, but it seems impossible to give a param > to bl

Re: [PHP-DEV] the dl() issue

2002-03-12 Thread Shane Caraveo
> At 10:43 AM 3/12/2002, Shane Caraveo wrote: > > > The stability issue is fairly obvious (you're much more likely to screw up > > > in a multithreaded environment if you load/unload libraries like hell, than > > > you are if you load them once, process-wide; this affects both code in PHP > > >

Re: [PHP-DEV] OCIError patch

2002-03-12 Thread Walter A. Boring IV
Ahh. very kewl patch Dan. Walt On Tue, 2002-03-12 at 12:48, Daniel Ceregatti wrote: > Hi, > > I wrote a small patch to oci8.c's OCIError function which places the > following tag: > > > > just before an error in a sql statement and adds the modified statement > text into a new elem

[PHP-DEV] OCIError patch

2002-03-12 Thread Daniel Ceregatti
Hi, I wrote a small patch to oci8.c's OCIError function which places the following tag: just before an error in a sql statement and adds the modified statement text into a new element called "sqltext" to the array returned by OCIError, much the same way sqlplus adds an asterisk under

Re: [PHP-DEV] Passing PHP Arrays as type "hidden" in a HTML Form

2002-03-12 Thread Sander Roobol
It might be a bit late, but PHP-DEV is for developing PHP, not for developing WITH PHP. Use [EMAIL PROTECTED] for support questions. Sander On 2002.03.12 20:37 Surya Saraff wrote: > Hi, > actually, I encountered serialize(), urlencode() > AND IT WORKS!!! > > first you serialize(), then urlenc

RE: [PHP-DEV] Passing PHP Arrays as type "hidden" in a HTML Form

2002-03-12 Thread Surya Saraff
Hi, actually, I encountered serialize(), urlencode() AND IT WORKS!!! first you serialize(), then urlencode then urlencode() and unserialize() to get back the original array. thanks surya --- "Hunter, Ray" <[EMAIL PROTECTED]> wrote: > Try using the $_POST function for getting the > variable...

[PHP-DEV] CVS Account Request: mcastro

2002-03-12 Thread Maurício de Castro
Translate to Portugese the functions of PHP. I'm translate the Images Functions and later I intend to translate more. Rasmul Lerdorf told me to fill the form here. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] safe_mode + exec

2002-03-12 Thread Stefan Esser
Hi, i want your opinions for a clean solution of the safe_mode + exec problem. Right now it is not possible to execute stuff like /usr/local/bin/mybin "param 1" "param 2" because the whole line is passed to php_escape_shell_cmd Is there any problem that i oversee, if we simply overjump quote

[PHP-DEV] mbstring module

2002-03-12 Thread brad lafountain
the code above prints out 11 16 ... is this correct??? If so why does it work this way. - Brad __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ -- PHP Development Mailing List

Re: [PHP-DEV] Quick summary of changes

2002-03-12 Thread Rasmus Lerdorf
Ah, never noticed that. I guess ext/zlib is a bit of a special case. On Tue, 12 Mar 2002 [EMAIL PROTECTED] wrote: > On Tue, 12 Mar 2002, Rasmus Lerdorf wrote: > > > Could you give me a quick summary of the changes. I am a little confused > > as to why ext/zlib doesn't have a config.m4 file any

[PHP-DEV] Re: Quick summary of changes

2002-03-12 Thread Sascha Schumann
On Tue, 12 Mar 2002, Rasmus Lerdorf wrote: > Could you give me a quick summary of the changes. I am a little confused Please refer to the posting New Build System committed to Head. > as to why ext/zlib doesn't have a config.m4 file anymore, for example. I That has been the case

Re: [PHP-DEV] Quick summary of changes

2002-03-12 Thread derick
On Tue, 12 Mar 2002, Rasmus Lerdorf wrote: > Could you give me a quick summary of the changes. I am a little confused > as to why ext/zlib doesn't have a config.m4 file anymore, for example. I > see the config0.m4 file. What's the difference? the 0 there makes sure it gets into another stage

[PHP-DEV] Quick summary of changes

2002-03-12 Thread Rasmus Lerdorf
Could you give me a quick summary of the changes. I am a little confused as to why ext/zlib doesn't have a config.m4 file anymore, for example. I see the config0.m4 file. What's the difference? Also, right now things don't build. The error is: main/internal_functions_cli.lo: In function `php

RE: [PHP-DEV] Passing PHP Arrays as type "hidden" in a HTML Form

2002-03-12 Thread Hunter, Ray
Title: RE: [PHP-DEV] Passing PHP Arrays as type "hidden" in a HTML Form Do it like this: $status = array( 0, 1 ) echo ""; Then access the array through the name... oldStatus here... Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message- From: Su

RE: [PHP-DEV] Passing PHP Arrays as type "hidden" in a HTML Form

2002-03-12 Thread Surya Saraff
Hi, I had tried it, it doesnt work. in t1.php: echo $a; //give me "Array" echo $a[1] //gives me "A" echo $a[2] //gives me "r" and so on... $a just gets the value "Array", but not the elements. Any suggestions? thanks, surya --- "Hunter, Ray" <[EMAIL PROTECTED]> wrote: > Yes that is possible

[PHP-DEV] Passing PHP Arrays as type "hidden" in a HTML Form

2002-03-12 Thread Surya Saraff
Hi, I am trying to pass an array with hidden type and access it by value. for eg: IN t.php "); print(""); print(""); print(""); ?> IN t1.php (the page i am calling) Any suggestions as to how can I pass the value of the array through an HTML form, would be a great help! Thanks, Sur

Re: [PHP-DEV] PHP audit project

2002-03-12 Thread Marcus Börger
In addition to Zeev, Hey guys where is your problem if someone wants to infect php code with functions that increases stability of code? The last days i spent much work to get ext/exif working and many problems came from missuse of strxxx functions. Changing to functions like strlcpy makes the co

[PHP-DEV] exec + safemode

2002-03-12 Thread Stefan Esser
Morning, (maybe i am just blind...) I doubt this can be counted as support question *grin* Has anyone of you ever tried to exec a command while in safe_mode? exec ("blub"); works fine, but it seems impossible to give a param to blub that has spaces in it. Stefan -- PHP Development Mailing L

Re: [PHP-DEV] the dl() issue

2002-03-12 Thread Marko Karppinen
Zeev and Stas: > That sounds like a pretty good idea, actually :) >> Might the solution be in the form of some 'auto-load extension folder'? >> I.e., folder in which all extensions found there are loaded automatically? Yes, this seems to be a near-perfect solution to me. Great! --Marko -- PH

Re: [PHP-DEV] FREE_ZVAL and/or zval_dtor()

2002-03-12 Thread Andrey Hristov
It is my mistake. There are two macroses ZEND_FAST_FREE #define ZEND_FAST_FREE(p, fc_type) \ {\ TSRMLS_FETCH();\ \ ((zend_fast_cache_list_entry *) (p))->next = (zend_fast_cache_list_entry *) AG(fast_cache_list_head)[fc_type]; \ AG(fast_

Re: [PHP-DEV] FREE_ZVAL and/or zval_dtor()

2002-03-12 Thread Klaus Reimer
Hi, On Tuesday 12 March 2002 14:01, Andrey Hristov wrote: > As far as I see FREE_ZVAL is ZEND_FAST_FREE and the latter is not freeing > memory just removes the zval from a list. So it is required to release the > memory before that. Fix me if I'm wrong. FREE_ZVAL calls ZEND_FAST_FREE, that's cor

Re: [PHP-DEV] FREE_ZVAL and/or zval_dtor()

2002-03-12 Thread Andrey Hristov
As far as I see FREE_ZVAL is ZEND_FAST_FREE and the latter is not freeing memory just removes the zval from a list. So it is required to release the memory before that. Fix me if I'm wrong. Regards, Andrey - Original Message - From: "Klaus Reimer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

[PHP-DEV] FREE_ZVAL and/or zval_dtor()

2002-03-12 Thread Klaus Reimer
Hi, I'm not sure if I have understood how to free the memory allocatedof a zval correctly. Because I don't want to create memory leaks, please tell me if I am right or tell me how it is done correctly: If I create a zval with MAKE_STD_ZVAL, I just need to call FREE_ZVAL, because there is no v

[PHP-DEV] CVS Account Request: mmeier

2002-03-12 Thread Michael Meier
Support in german translations. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] the dl() issue

2002-03-12 Thread Zeev Suraski
That sounds like a pretty good idea, actually :) Zeev At 11:32 AM 3/12/2002, Stanislav Malyshev wrote: >MK>> For them, digging into the guts of the system, installing PHP >MK>> extensions there and modifying obscure, Apple-supplied configuration >MK>> files is MUCH, MUCH more frightening than ju

[PHP-DEV] FRC: assert

2002-03-12 Thread Yasuo Ohgaki
Hi all, I made a patch to enable/include assert()/assert.h. If you have comment, please let me know. Thank you. -- Yasuo Ohgaki [EMAIL PROTECTED] Index: configure.in === RCS file: /repository/php4/configure.in,v retrieving revis

[PHP-DEV] Re: Text files in /php4

2002-03-12 Thread Yasuo Ohgaki
+1 I've asked the same thing before. Most people like the idea. Hurmat said Gobar has started howto. It's good thing to have XML document for these, but it's not well organized yet. We are better to keep documents in source at least until there is framework for these documentation. In addition

Re: [PHP-DEV] Make php-cvs@ read-only

2002-03-12 Thread Stefan Roehrich
On 2002-03-11 23:28:36, Rasmus Lerdorf wrote: > It seems to work quite nicely for most. Having the mailing list software > remove a user's ability to control where replies go is even nastier. Add Yes, in general I'm against adding forced Reply-To headers by mailing list software, too (having re

Re: [PHP-DEV] ZLib (double free) bug

2002-03-12 Thread Andrey Hristov
Yeap. :(( the RH RPM is 1.1.3-25.7 ftp://updates.redhat.com/7.2/en/os/i386/zlib-1.1.3 -25.7.i386.rpm Andrey - Original Message - From: "Stefan Roehrich" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, March 12, 2002 11:46 AM Subject:

Re: [PHP-DEV] ZLib (double free) bug

2002-03-12 Thread Stefan Roehrich
On 2002-03-12 10:50:43, Andrey Hristov wrote: > What about implementing in build process check for the version of > the zlib library. If <=1.1.3 to give error message that >=1.1.4 is > needed. 1.1.4 is at : I already thought about that, but there are people or even whole linux distributions (e.g.

Re: [PHP-DEV] the dl() issue

2002-03-12 Thread Stanislav Malyshev
MK>> For them, digging into the guts of the system, installing PHP MK>> extensions there and modifying obscure, Apple-supplied configuration MK>> files is MUCH, MUCH more frightening than just downloading a php MK>> extension, dropping it into the Sites folder in their home directory, MK>> and cal

Re: [PHP-DEV] the dl() issue

2002-03-12 Thread Zeev Suraski
At 10:43 AM 3/12/2002, Shane Caraveo wrote: > > The stability issue is fairly obvious (you're much more likely to screw up > > in a multithreaded environment if you load/unload libraries like hell, than > > you are if you load them once, process-wide; this affects both code in PHP > > and code in

[PHP-DEV] ZLib (double free) bug

2002-03-12 Thread Andrey Hristov
What about implementing in build process check for the version of the zlib library. If <=1.1.3 to give error message that >=1.1.4 is needed. 1.1.4 is at : ftp://ftp.info-zip.org/pub/infozip/zlib/zlib-1.1.4.tar.gz Best regards, Andrey Hristov -- PHP Development Mailing List

Re: [PHP-DEV] the dl() issue

2002-03-12 Thread Shane Caraveo
Zeev Suraski wrote: > > Shane, > > Please read the archives - the performance issue was well covered. I read the archives, and spent a lot of time looking for more than I found. > The stability issue is fairly obvious (you're much more likely to screw up > in a multithreaded environment if you

Re: [PHP-DEV] Text files in /php4

2002-03-12 Thread derick
Hello, I marked the documents I think they should be in the manual, and not as a text file in the source. IMO as much as possible documentation should be available in _one place_: the manual. On Tue, 12 Mar 2002, James Cox wrote: > /php4/ > NEWS > CREDITS > INSTALL > LICENSE > TODO.BUILDv5 >