[PHP-DEV] Building a HTTP server using PHP -> PHP and Windows question

2003-01-07 Thread Dominik Wittenbeck
Hi, I am not trying to spam you guys, I just don't know where else to turn to to get help. Maybe you know somebody to help me on the following Win2K/PHP problem. Task: I am trying to implement the CGI interface on a PHP based webserver I have built using the new CLI, that comes with PHP 4.3.0. So

Re: [PHP-DEV] Should I fix this?

2003-01-07 Thread Rickard Andersson
Marcus Börger wrote: > The advantage is that this would retrieve the correct size even for gifs > with multiple images. On the other hand the disadvantage is speed loss. I've been giving this some thought. Shouldn't getimagesize() just return false if the "actual size" (the largest size found in

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

2003-01-07 Thread Sara Golemon
> phpdoc-es > > Spanish language translation of PHP documentation > ^^^ My better half :) +1 (Unless it counts as nepotism) And I should also mention that she was born and raised in Colombia and is a fluent speaker of both english and spanish. -Pollita -- PHP Development Mailing List

[PHP-DEV] CVS Account Request: angela

2003-01-07 Thread Angela Pardo
phpdoc-es Spanish language translation of PHP documentation -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] What headers/libs does Win32 Snaps build use?

2003-01-07 Thread Steph
> The solution for this would be to create and maintain HOW-TO files for all > the extensions requireing an external library. > > Many if these libs. can be downloaded and build from source files. Only a > few requires commercial libraries. This would also solve the problem Edin and I briefly disc

Re: [PHP-DEV] What headers/libs does Win32 Snaps builduse?

2003-01-07 Thread Frank M. Kromann
The solution for this would be to create and maintain HOW-TO files for all the extensions requireing an external library. Many if these libs. can be downloaded and build from source files. Only a few requires commercial libraries. - Frank > Yes, Steph is right, the set of libraries used on the s

Re: [PHP-DEV] ZE2 , static variables and friends

2003-01-07 Thread Brad LaFountain
Check your syntax I don't know how many times people have asked a question like this and they mess up the $'s class test { static $foo = ''; } class test2 { var $how = 3; } $bar = new test2; test::$foo = $bar; echo "How ? ".test::$foo->how; where you had echo "Ho

Re: [PHP-DEV] What headers/libs does Win32 Snaps build use?

2003-01-07 Thread Edin Kadribasic
Yes, Steph is right, the set of libraries used on the snaps machine is ~70MB (uncompressed) and I don't think it's practical to update win32build.zip to include them all. And this 70 MB does not include files needed for building ext/infromix, ext/interbase and sapi/pi3web. Edin - Original Mes

[PHP-DEV] Re: Building a HTTP server using PHP -> PHP and Windows question (please don't delete)

2003-01-07 Thread Edin Kadribasic
Very impressive work! As for writing to the php-cgi.exe I suggest you look into proc_open() function in PHP 4.3.0 (http://www.php.net/manual/en/function.proc-open.php). Edin - Original Message - From: "Dominik Wittenbeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January

RE: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Dave Viner
thanks... downloading the 3.3.11 version pretty much worked for me. i needed to change the lib name from libdb31s.lib to libdb33.lib (for using the .dll instead of statically linking it). dave -Original Message- From: Steph [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 1:02

Re: [PHP-DEV] imageline drawing twice

2003-01-07 Thread Pierre-Alain Joye
On Tue, 7 Jan 2003 14:15:40 -0800 "Leon Atkinson" <[EMAIL PROTECTED]> wrote: > It looks like imageline() draws the line twice. My fault, you re right. pierre -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] imageline drawing twice

2003-01-07 Thread Leon Atkinson
It looks like imageline() draws the line twice. RCS file: /repository/php4/ext/gd/gd.c,v retrieving revision 1.241 diff -u -r1.241 gd.c --- ext/gd/gd.c 31 Dec 2002 16:06:39 - 1.241 +++ ext/gd/gd.c 7 Jan 2003 21:54:37 - @@ -2149,8 +2149,7 @@ else #endif gdImage

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

2003-01-07 Thread Sara Golemon
oooh yes, good point: stream_filter_append($fp, "string.base64", "encode"); and stream_filter_append($fp, "string.base64", "decode"); probably with "encode" being the default behavior. That make implementation very simple and in fact the toupper/tolower calls should be similarly combined into a

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

2003-01-07 Thread Wez Furlong
With the current model, the concept is that you can use either the filter name or filter parameters to distinguish the ultimate behaviour. Yes this is a possible headache. I am thinking that two separate chains of filters (one for reading and one for writing) might make this situation a little eas

Re: [PHP-DEV] Is exif_tagname() useful?

2003-01-07 Thread Marcus Börger
At 19:24 07.01.2003, Leon Atkinson wrote: The undocumented function exif_tagname() does lookups on the table tag_table_IFD which matches IDF0 tags to human-readable names. Considering exif_read_data() already uses this table, is there a reason to have this function around? Debugging? Currently

[PHP-DEV] apache_register_shutdown_functions

2003-01-07 Thread Joseph Tate
This patch should remove all of the concerns about my previous patches. You'll notice that there has been no extension to SAPI, and no explicit closing of the socket. Instead I've returned the Apache SAPI module to its previous execution code path. The only modification is that the shutdown_funct

Re: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Steph
http://www.sleepycat.com/update/index.html 3.3.11 works fine for me, and is also the version Edin was using to build php_dba.dll last I know of.. - Original Message - From: "Dave Viner" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Php-Dev@lists. php. net" <[EMAIL PROTECTED]> Sent: Tues

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

2003-01-07 Thread Moriyoshi Koizumi
Hi, On Tue, Jan 07, 2003 at 12:12:15PM -0800, Sara Golemon wrote: > Speaking of filter "string.base64" I have an issue with its parity. > > string.base64 will encode on write and decode on read... What if the user > wants the other way round? Is the expected behavior even obvious from the > name

RE: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Marcus Börger
At 21:06 07.01.2003, Dave Viner wrote: well.. from the win32build.zip file, I find in db.h this line: #define DB_VERSION_STRING "Sleepycat Software: DB 2.4.14: (6/2/98)" DB version 2 does not have the functions causing the error. And you cannot link DB 2 with --with-db3=... I suspect t

[PHP-DEV] building ext/dba on win32

2003-01-07 Thread Dave Viner
Hi, I'm having trouble building the dba extension on win32. I get these errors: D:\php\php4\ext\dba\dba_db3.c(89) : error C2039: 'set_errcall' : is not a member of '__db' D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of '__db' D:\php\php4\ext\dba\dba_db3.c(90) : error

RE: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Dave Viner
well.. from the win32build.zip file, I find in db.h this line: #define DB_VERSION_STRING "Sleepycat Software: DB 2.4.14: (6/2/98)" I suspect that this is the problem. I downloaded the latest berkeley db from sleepycat, but I still get an error. It is now version 4, so this might be the pr

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread J Smith
You can still use constructors that have the same name as the class, at least for the time being. Just tested it with 4.4.0-dev HEAD and ZE2. If you have both a method with the same name as the class and a method called __construct(), the method with the class name will be used as the construc

Re: [PHP-DEV] building ext/dba on win32

2003-01-07 Thread Marcus Börger
At 20:11 07.01.2003, Dave Viner wrote: Hi, I'm having trouble building the dba extension on win32. I get these errors: D:\php\php4\ext\dba\dba_db3.c(89) : error C2039: 'set_errcall' : is not a member of '__db' D:\PHP\PHP-WIN32BUILD\INCLUDE\db.h(397) : see declaration of '__db' D:

[PHP-DEV] Events-RSS-Parser, need MySQL-Dump from evetnts-db

2003-01-07 Thread Tobias Schlitt
Hi you all! I wanted to write some code for php.net and decided to write a parser from the events-database to an RSS-file first. Goba just gave me some helpfull information on that first (eg. the structure of the db and some csv-values). So, thanks to Goba, first!! But i think thats not enou

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

2003-01-07 Thread Sara Golemon
>> Couldn't you have used parts of ext/standard/base64.c here instead of >> duplicating code? > > At first I thought of using php_base64_encode() and php_base64_decode() > rather than reimplementing them. But because those functions are > designed to be used in string semantics while streams requir

Re: [PHP-DEV] What headers/libs does Win32 Snaps build use?

2003-01-07 Thread Steph
There are a lot of them - that's likely to be the biggest issue. Nearly 20 megs of libraries (and this from some months ago). This is really Edin's territory... - Original Message - From: "Christoph Grottolo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 07, 2003 7:3

Re: [PHP-DEV] What headers/libs does Win32 Snaps build use?

2003-01-07 Thread Christoph Grottolo
> Basically what I'm talking about is updating win32build.zip so that it > has all the current libraries that are really used to do a PHP build > on Win32. Is there a practical or licensing reason why that couldn't > be done? Would it be a lot more work than just packaging up a few > directories

[PHP-DEV] Is exif_tagname() useful?

2003-01-07 Thread Leon Atkinson
The undocumented function exif_tagname() does lookups on the table tag_table_IFD which matches IDF0 tags to human-readable names. Considering exif_read_data() already uses this table, is there a reason to have this function around? Debugging? --- Leon Atkinson --

RE: [PHP-DEV] What headers/libs does Win32 Snaps build use?

2003-01-07 Thread Dave Viner
this sounds to me like a good idea. at the very least, i don't see why we wouldn't change the zlibstat.lib to be the zlib.lib that is built from the zlib CVS module. dave -Original Message- From: Michael Sisolak [mailto:[EMAIL PROTECTED]] Sent: Monday, January 06, 2003 6:13 AM To: [EMAI

RE: [PHP-DEV] php 4.3.0 ext/oci8 -- OCI_SHARED patch

2003-01-07 Thread Levi Dixon
> > > I've modified the following files to allow for use of > OCI_SHARED in ext/oci8 > > > module if OCI8_VERSION >= 8.1, which will provide memory > savings by sharing > > > connection and statement data (refer to > > > > http://www.csee.umbc.edu/help/oracle8/server.815/a67846/basics.htm; search >

Re: [PHP-DEV] php 4.3.0 ext/oci8 -- OCI_SHARED patch

2003-01-07 Thread Maxim Maletsky
"Thies C. Arntzen" <[EMAIL PROTECTED]> wrote... : > > I've modified the following files to allow for use of OCI_SHARED in ext/oci8 > > module if OCI8_VERSION >= 8.1, which will provide memory savings by sharing > > connection and statement data (refer to > > http://www.csee.umbc.edu/help/oracle8/

[PHP-DEV] Include a file from inside an extension...

2003-01-07 Thread Stefano Corsi
Hello, does someone understand if this is the right procedure to include a filename from inside a C extension? MAKE_STD_ZVAL(filename_z); ZVAL_STRING(filename_z, "myfile.inc", 1); op = compile_filename(ZEND_INCLUDE, filename_z); zend_execute(op TSRMLS_CC); Thanks, Stefano -- PHP Devel

[PHP-DEV] Re: ZE2 , static variables and friends

2003-01-07 Thread Mickael BAILLY
Sorry for the example, man should read: echo "How ? ".test::$foo->$how; The problem still exists however. -- NetClub'ment votre Mickael BAILLY -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] ZE2 , static variables and friends

2003-01-07 Thread Mickael BAILLY
Why can't I do this: -- class test { static $foo = ''; } class test2 { var $how = 3; } $bar = new test2; test::$foo = $bar; echo "How ? ".test::$foo->$bar; -- output gives me 'How ? ' Is it a PHP/ZE2 bug? If not, how to do that right ? -- NetClub'ment votre Mickael BAILLY http

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

2003-01-07 Thread Moriyoshi Koizumi
On Tue, Jan 07, 2003 at 08:46:09AM -0500, Andrei Zmievski wrote: > Couldn't you have used parts of ext/standard/base64.c here instead of > duplicating code? At first I thought of using php_base64_encode() and php_base64_decode() rather than reimplementing them. But because those functions are desi

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

2003-01-07 Thread Andrei Zmievski
On Tue, 07 Jan 2003, Moriyoshi Koizumi wrote: > moriyoshi Mon Jan 6 19:03:26 2003 EDT > > Modified files: > /php4/ext/standardfilters.c > Log: > Implemented string.base64 stream filter > @- Implemented string.base64 stream filter. (Moriyoshi) Couldn

Re: [PHP-DEV] ZE2 dev snaps

2003-01-07 Thread Stephan Seidt
I tried that but buildconf wasnt happy about some .mk files then. Ill try php4-ze2, thanks Edin. Edin Kadribasic wrote: If you checkout "php4-ze2" all this will be done automagically for you by the CVS server. Edin - Original Message - From: "Christian Stocker" <[EMAIL PROTECTED]> To: "

Re: Re[2]: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread Dan Hardiker
> Please run this code and check it output! I actually did ;) however in retyping (due to circumstances) the code I had misread the function call as c(&$a); and on replying didt notice my mistake. Appologies :P If you change the function call to c(&$a); you will notice the output being "AAC" :P

Re[2]: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread Andrew Sitnikov
Hello Dan, DH> Just to prevent any misconception, the code executed through the ZE1 will DH> actually be "AAC" rather than "AAA". Please run this code and check it output! It will print "AAA", because in function c() you have COPY of object `$a`, NOT reference (with ZE1). Best regards, Andrew S

Re: [PHP-DEV] php 4.3.0 ext/oci8 -- OCI_SHARED patch

2003-01-07 Thread Thies C. Arntzen
On Mon, Jan 06, 2003 at 01:42:15PM -0500, Levi Dixon wrote: > For review: > > I've modified the following files to allow for use of OCI_SHARED in ext/oci8 > module if OCI8_VERSION >= 8.1, which will provide memory savings by sharing > connection and statement data (refer to > http://www.csee.umbc.

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread Dan Hardiker
Hi, > [FROM] Leon Atkinson > class a {} > > function c($c) > { > $c->name = 'C'; > } > > $a = new a; > $b = $a; > > $a->name = "A"; > print($a->name); > $b->name = "B"; > print($a->name); > c($a); > print($a->name); > ?> > > In ZE1 you get "

Re: [PHP-DEV] string functions

2003-01-07 Thread Derick Rethans
On Sun, 5 Jan 2003, Leon Atkinson wrote: > > Because this behavior is not documented > > For the record, it is documented: > http://www.php.net/manual/en/function.strstr.php > > "If needle is not a string, it is converted to an integer and applied as the > ordinal value of a character. " Okay,

Re: [PHP-DEV] Should I fix this?

2003-01-07 Thread Marcus Börger
Marcus: could you specify the speed loss? If it's noticeable I would rather suggest to either introduce a new function or another parameter to getimagesize(), no matter what the default is (e.g. let getimagesize() get the "real" size and introduce something like getimagesize_fast()) or the other

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread Derick Rethans
On Mon, 6 Jan 2003, George Schlossnagle wrote: > On Monday, January 6, 2003, at 09:48 PM, Brian Moon wrote: > > > From what I understand, all OO code will have to be modified for PHP5. > > Constructors for example and no longer named the same as the class > > name. > > That alone means every cl

Re: [PHP-DEV] ZE2 dev snaps

2003-01-07 Thread Edin Kadribasic
If you checkout "php4-ze2" all this will be done automagically for you by the CVS server. Edin - Original Message - From: "Christian Stocker" <[EMAIL PROTECTED]> To: "Stephan Seidt" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 07, 2003 10:00 AM Subject: Re: [PHP-DEV]

Re: [PHP-DEV] Should I fix this?

2003-01-07 Thread Sebastian Nohn
Marcus Börger schrieb: > At 01:43 07.01.2003, Rickard Andersson wrote: > >getimagesize() blindly trusts the width and height > >specified in the header > >of gifs. You can just hexedit the file and set the width > >and height to any > >value and getimagesize() will believe that is the "true > >size

Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind...

2003-01-07 Thread Andrey Hristov
To be more precise - passed by handle. Andrey - Original Message - From: "Leon Atkinson" <[EMAIL PROTECTED]> To: "John Wells" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 07, 2003 6:31 AM Subject: Re: [PHP-DEV] Designing for PHP4 with PHP5 in mind... > > Any goo

Re: [PHP-DEV] ZE2 dev snaps

2003-01-07 Thread Christian Stocker
On Mon, 6 Jan 2003, Stephan Seidt wrote: > At least ./buildconf with --ZendEngine2 did never work for me. ;) > I also did cvs co ZendEngine2 in php4 cvstree root. Did you rename ZendEngine2 to Zend? (Or make a symbolic link, after renaming the old Zend directory to something else) chregu > > Ma

Re: [PHP-DEV] Should I fix this?

2003-01-07 Thread Marcus Börger
At 01:43 07.01.2003, Rickard Andersson wrote: getimagesize() blindly trusts the width and height specified in the header of gifs. You can just hexedit the file and set the width and height to any value and getimagesize() will believe that is the "true size" of the image. Even worse - Internet Expl