[PHP-DEV] -lresolv problems on OpenBSD

2002-03-22 Thread Peter Blokland
hi, Being severely bitten by the troubles with libiconv & the configure script in php-4.1.2, I grabbed a cvs version yesterday. This problem seems solved, but I still can't build a shared version of php. Doing a ./configure --with-apxs=/usr/sbin/apxs && make results in : *** Warning: This librar

[PHP-DEV] Advice on design issues (long)...

2002-03-22 Thread l0t3k
im looking for opinions on two OOP related design issues for code im targeting to PHP5. (1) im writing (actually porting) a DateTime class which matches the functionality of the Java Date class. it actually does much more, and that's the issue. in looking at the Javadocs reference page for Date,

[PHP-DEV] CVS Account Request: roland

2002-03-22 Thread Roland Moriz
translation of manual pages (especially German Pages) -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread arti
Oh man, I am a complete idiot!! :-D "Andrew Lindeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > looks like you're missing a parenthesis at the end of the xml_set line.. > > --Andrew > > On Friday 22 March 2002 03:38 pm, arti wrote: > > So, as I unde

Re: [PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread Markus Fischer
On Fri, Mar 22, 2002 at 04:38:12PM -0500, arti wrote : > So, as I understand this, I should do it like this??? > > > class stdxml > { > > function stdxml($xmlfilename) > { > > $parser=xml_parser_create(); > > xml_set_element_handler($parser, array("stdxml","startElementHandler"), > a

Re: [PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread Andrew Lindeman
looks like you're missing a parenthesis at the end of the xml_set line.. --Andrew On Friday 22 March 2002 03:38 pm, arti wrote: > So, as I understand this, I should do it like this??? > > > class stdxml > { > > function stdxml($xmlfilename) > { > > $parser=xml_parser_create(); > > xm

Re: [PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread arti
So, as I understand this, I should do it like this??? class stdxml { function stdxml($xmlfilename) { $parser=xml_parser_create(); xml_set_element_handler($parser, array("stdxml","startElementHandler"), array("stdxml","endElementHandler"); This yields the wonderfully helpful error:

Re: [PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread Markus Fischer
the syntax for passing methods of static classes or objects is array('class', 'methdod'); // static or array($object, 'method'); // without and array(&$object, 'method')) // by reference - Markus On Fri, Mar 22, 2002 at 04:19:42PM -0500, arti wrote :

[PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread arti
I am very new to PHP and have what is probably a dumb question. I am attempting to parse an XML document with a Class. But, you have to use "xml_set_element_handler" for this to work and that means you have to pass it the names of your element handlers. How do I do this in a class??? For exam

[PHP-DEV] [PATCH][NEW FEATURE] read_uploaded_file()

2002-03-22 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. See in

[PHP-DEV] [PATCH][NEW FEATURE] read_uploaded_file()

2002-03-22 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 regar

[PHP-DEV] RFC: CLI -x

2002-03-22 Thread Marcus Boerger
I added new -x switch to CLI version which enables execution of files without having scripting tags. Suppose we have a file called /usr/bin/phpx: /usr/bin/php -x $1 EOF Suppose we have a file called hello.phpc #!/usr/bin/phpx echo "Hello ";echo"World!\n"; EOF Suppose we have a file called hello2.p

Re: [PHP-DEV] configure broken: Iconv detection still not right...

2002-03-22 Thread Jani Taskinen
This should be fixed now. --Jani On Fri, 22 Mar 2002, Rasmus Lerdorf wrote: >Same goes for xslt. Adding --with-iconv fixes it > >On Fri, 22 Mar 2002, Derick Rethans wrote: > >> Hello, >> >> Iconv is *still* broken for me. Without --with-iconv I get the message >> that XMLRPC need

Re: [PHP-DEV] New Build System Committed to HEAD

2002-03-22 Thread derick
On Fri, 22 Mar 2002, Sander Roobol wrote: > Does the same for me, but for the readline extension too: > phpext_session_ptr, > phpext_readline_ptr, > phpext_readline_ptr, > phpext_pspell_ptr, > (...) > phpext_openssl_ptr, > phpext_ncurses_ptr, > phpext_ncu

Re: [PHP-DEV] New Build System Committed to HEAD

2002-03-22 Thread Sander Roobol
On 2002.03.22 09:22 Derick Rethans wrote: > On Thu, 7 Mar 2002, Sascha Schumann wrote: > > > Because I cannot test/build every extension under the earth, > > problems with untested extensions might crop up. If it does, > > please notify me and I'll check it out. > > For some reason

Re: [PHP-DEV] Warnings in mbstring

2002-03-22 Thread Derick Rethans
Hi, Warnings are gone now... but can't see if it still works :) Derick On Fri, 22 Mar 2002, Marcus Börger wrote: > At 10:09 22.03.2002, you wrote: > >Hello, > > > >can somebody have a look at this? > > > >/var/system/src/php4/ext/mbstring/mbregex.c:1570: warning: > >suggest parentheses around

Re: [PHP-DEV] Warnings in mbstring (fwd)

2002-03-22 Thread derick
At 10:09 22.03.2002, you wrote: >Hello, > >can somebody have a look at this? > >/var/system/src/php4/ext/mbstring/mbregex.c:1570: warning: >suggest parentheses around arithmetic in operand of | > >/var/system/src/php4/ext/mbstring/mbregex.c:1596: warning: >suggest parentheses around && within || >

Re: [PHP-DEV] New Build System Committed to HEAD

2002-03-22 Thread Boian Bonev
> For some reason ncurses ends up twice in internal_functions_cli.c; I > can't figure out why though: > > phpext_overload_ptr, > phpext_ncurses_ptr, > phpext_ncurses_ptr, > phpext_mysql_ptr, xmm. i couldn't verify this... (updated before 10-20 minutes) phpext_overload_p

Re: [PHP-DEV] AUTOLOAD in PHP

2002-03-22 Thread Hartmut Holzgraefe
S.Murali Krishna wrote: > Hi, > As I told in my Previous Post that I have added a feauture in PHP > which is similar to AUTOLOAD feauture in Perl Modules. > > I had sent a unified diff output along with this. > > According to that if a user tried to call a undefined func

Re: [PHP-DEV] configure broken: Iconv detection still not right...

2002-03-22 Thread Rasmus Lerdorf
Same goes for xslt. Adding --with-iconv fixes it On Fri, 22 Mar 2002, Derick Rethans wrote: > Hello, > > Iconv is *still* broken for me. Without --with-iconv I get the message > that XMLRPC needs iconv which could not be found. > > Derick > > On Wed, 20 Mar 2002, Wez Furlong wrote: > > > Hey gu

Re: [PHP-DEV] [PATCH] sprintf() argnum

2002-03-22 Thread derick
Hello, I committed this patch to CVS. Derick On 21 Mar 2002, Morten Poulsen wrote: > Hi, > > I discovered a bug in sprintf()'s argument swapping code. It accepts an > argument number of zero, which is invalid. It is handled in different > ways in different libcs, but i figured the best way to

[PHP-DEV] Warnings in mbstring

2002-03-22 Thread Derick Rethans
Hello, can somebody have a look at this? /var/system/src/php4/ext/mbstring/mbregex.c:1570: warning: suggest parentheses around arithmetic in operand of | /var/system/src/php4/ext/mbstring/mbregex.c:1596: warning: suggest parentheses around && within || /var/system/src/php4/ext/mbstring/mbregex

Re: [PHP-DEV] configure broken: Iconv detection still not right...

2002-03-22 Thread Derick Rethans
Hello, Iconv is *still* broken for me. Without --with-iconv I get the message that XMLRPC needs iconv which could not be found. Derick On Wed, 20 Mar 2002, Wez Furlong wrote: > Hey guys, > > There's something screwy with the iconv detection/config that's > mangling configure - it's generatin

Re: [PHP-DEV] New Build System Committed to HEAD

2002-03-22 Thread Derick Rethans
On Thu, 7 Mar 2002, Sascha Schumann wrote: > Because I cannot test/build every extension under the earth, > problems with untested extensions might crop up. If it does, > please notify me and I'll check it out. For some reason ncurses ends up twice in internal_functions_cli.c; I ca