Re: cvs: php4 /ext/standard basic_functions.c
Sascha Schumann wrote: sas Tue Apr 1 05:02:29 2003 EDT Modified files: /php4/ext/standard basic_functions.c Log: Fix segfault in register_shutdown_function Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.599 php4/ext/standard/basic_functions.c:1.600 --- php4/ext/standard/basic_functions.c:1.599 Tue Apr 1 00:30:32 2003 +++ php4/ext/standard/basic_functions.c Tue Apr 1 05:02:29 2003 @@ -17,7 +17,7 @@ +--+ */ -/* $Id: basic_functions.c,v 1.599 2003/04/01 05:30:32 sebastian Exp $ */ +/* $Id: basic_functions.c,v 1.600 2003/04/01 10:02:29 sas Exp $ */ #include php.h #include php_streams.h @@ -2171,6 +2171,7 @@ if (zend_get_parameters_array(ht, shutdown_function_entry.arg_count, shutdown_function_entry.arguments) == FAILURE) { RETURN_FALSE; } + convert_to_string(shutdown_function_entry.arguments[0]); if (!BG(user_shutdown_function_names)) { ALLOC_HASHTABLE(BG(user_shutdown_function_names)); zend_hash_init(BG(user_shutdown_function_names), 0, NULL, (void (*)(void *)) user_shutdown_function_dtor, 0); I didn't try HEAD yet, but at least in PHP_4_3 it broke registration of object methods a la: register_shutdown_function(array($my_object, 'method_name')); Jan.
[PHP-DEV] CVS Account Request: akelavlk
I want add DotPHP layer into PHP. See webcomp.sourceforge.net Or CVS repository on sourceforge.net/projects/webcomp -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] mb_string overloading and binary data...
Zitat von David Brown [EMAIL PROTECTED]: This is kind of a user-space question, but I'm hoping that it concerns enough of the PHP infrastructure (conceptually) that this is the right place to post it. This should rather be asked on the i18n mailing list if not on php-general. But as you already asked: I've got an application that processes both textual and binary data. The domain of the application isn't really relevant, but it makes liberal use of string and pcre function. Ignoring the fact (?) that php_pcre doesn't seem to be mb-aware... Say I were to turn on the mb_string overload support, effectively replacing strlen, etc. with equivalent multibyte functions. Is there any way then to still get the exact size, in bytes, of a 'string' of binary data? If you write the application, why do you want to depend on a certain php.ini setting? I won't use overloading at all but call the mbstring functions directly where appropriate and the original string function else. Please respond to one of the above mentioned lists. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Current HEAD segfaults with Horde/CHORA
Zitat von Derick Rethans [EMAIL PROTECTED]: Looks like a recursive thing here so I wonder if it's really a bug in PHP, but perhaps an assumption in Horde that doesn't work with ZE2? Correct, Horde doesn't work with ZE2 out of the box. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] compile error on HEAD
/home/jan/software/php5/ext/standard/basic_functions.c: In function `php_simple_ini_parser_cb': /home/jan/software/php5/ext/standard/basic_functions.c:2829: `ZEND_INI_PARSER_POP_ENTRY' undeclared (first use in this function) /home/jan/software/php5/ext/standard/basic_functions.c:2829: (Each undeclared identifier is reported only once /home/jan/software/php5/ext/standard/basic_functions.c:2829: for each function it appears in.) Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Compile error in xml-rpc (HEAD)
Zitat von Magnus Määttä [EMAIL PROTECTED]: Hi! gcc -I/opt/DEV/php/php4/ext/xmlrpc/libxmlrpc -DVERSION=0.50 -Iext/xmlrpc/ -I/opt/DEV/php/php4/ext/xmlrpc/ -DPHP_ATOM_INC -I/opt/DEV/php/php4/include -I/opt/DEV/php/php4/main -I/opt/DEV/php/php4 -I/opt/DEV/php/php4/Zend -I/usr/include/libxml2 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/imap -I/usr//include/mysql -I/usr/include/pspell -I/usr/qt/3/include -I/usr//include -I/opt/DEV/php/php4/TSRM -g -Wall -c /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c -o ext/xmlrpc/xmlrpc-epi-php.o echo ext/xmlrpc/xmlrpc-epi-php.lo /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c: In function `set_zval_xmlrpc_type': /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c:1348: structure has no member named `properties' /opt/DEV/php/php4/ext/xmlrpc/xmlrpc-epi-php.c:1349: structure has no member named `properties' make: *** [ext/xmlrpc/xmlrpc-epi-php.lo] Error 1 config.nice #! /bin/sh # # Created by configure './configure' \ '--disable-all' \ '--prefix=/usr/local/www/php4cli' \ '--enable-debug' \ '--enable-sysvshm' \ '--enable-aggregate' \ '--enable-xslt' \ '--enable-bcmath' \ '--enable-calendar' \ '--enable-dbase' \ '--enable-dio' \ '--enable-dbx' \ '--enable-exif' \ '--enable-filepro' \ '--enable-ftp' \ '--enable-gd-native-ttf' \ '--enable-sockets' \ '--enable-yp' \ '--enable-enable-trans-sid' \ '--enable-pcntl' \ '--enable-inline-optimization' \ '--enable-cli' \ '--enable-rpath' \ '--enable-short-tags' \ '--enable-ipv6' \ '--enable-ctype' \ '--enable-overload' \ '--enable-posix' \ '--enable-session' \ '--enable-tokenizer' \ '--enable-xml' \ '--enable-libtool-lock' \ '--with-xslt-sablot=/usr/' \ '--with-expat-dir=/usr' \ '--with-xmlrpc' \ '--with-ming=/usr' \ '--with-swf=/usr' \ '--with-dom=/usr' \ '--with-qtdom' \ '--with-recode' \ '--with-mysql=/usr/' \ '--with-openssl' \ '--with-zlib-dir=/usr' \ '--with-jpeg-dir' \ '--with-tiff-dir' \ '--with-db' \ '--with-gdbm' \ '--with-dom' \ '--with-dom-xslt' \ '--with-gd' \ '--with-pdflib' \ '--with-png-dir' \ '--with-xpm-dir' \ '--with-freetype-dir' \ '--with-ttf' \ '--with-t1lib' \ '--with-gettext' \ '--with-gmp' \ '--with-ldap' \ '--with-mcrypt' \ '--with-mhash' \ '--with-pspell' \ '--with-readline' \ '--with-bz2' \ '--with-snmp' \ '--with-curl' \ '--with-imap' \ '--with-imap-ssl' \ '--with-pcre-regex' \ '--with-pear' \ $@ I get this error too, compiling latest CVS HEAD with ZE2. The attached patch fixed it for me. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft Index: ext/xmlrpc/xmlrpc-epi-php.c === RCS file: /repository/php4/ext/xmlrpc/xmlrpc-epi-php.c,v retrieving revision 1.26 diff -u -r1.26 xmlrpc-epi-php.c --- ext/xmlrpc/xmlrpc-epi-php.c 31 Dec 2002 16:08:09 - 1.26 +++ ext/xmlrpc/xmlrpc-epi-php.c 10 Jan 2003 02:54:18 - @@ -1345,8 +1345,8 @@ ztimestamp-value.lval = timestamp; convert_to_object(value); - if(SUCCESS == zend_hash_update(value-value.obj.properties, OBJECT_TYPE_ATTR, sizeof(OBJECT_TYPE_ATTR), (void *) type, sizeof(zval *), NULL)) { - bSuccess = zend_hash_update(value-value.obj.properties, OBJECT_VALUE_TS_ATTR, sizeof(OBJECT_VALUE_TS_ATTR), (void *) ztimestamp, sizeof(zval *), NULL); + if(SUCCESS == zend_hash_update(Z_OBJPROP_P(value), +OBJECT_TYPE_ATTR, sizeof(OBJECT_TYPE_ATTR), (void *) type, sizeof(zval *), NULL)) { + bSuccess = zend_hash_update(Z_OBJPROP_P(value), +OBJECT_VALUE_TS_ATTR, sizeof(OBJECT_VALUE_TS_ATTR), (void *) ztimestamp, sizeof(zval +*), NULL); } } XMLRPC_CleanupValue(v); -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] configure error on PHP_4_3
Zitat von Derick Rethans [EMAIL PROTECTED]: On Sat, 21 Dec 2002, Jan Schneider wrote: I get this error at the end of running ./configure: config.status: creating pear/scripts/pearize config.status: error: cannot find input file: pear/scripts/pearize.in It might happen because I run it from a PHP_4_2_0 checkout updated to the branch PHP_4_3 though I ran make distclean before. But I wanted to let you know. :-) Dont do that :) Anyway, it's better to just get the new tree, cvs might have some sticky tags on some files. It was even sillier, I forgot to run ./buildconf. :-/ Must have been a bit tired, sorry for the noise. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] php.exe - php-cgi.exe
I know this thread is ridden to death but I want to add one argument for completeness: If the cgi's name will be changed, thousands of administrators need to fix their servers. But if the cli's name will be changed thousands of end users of php cli scripts will have to change the scripts' shebang line. I have no idea if there are more administrators who have to care about php cgi or users who use php cli. But at least the first group will have less problems fixing the name change than the latter. Just my 0.02 Euro. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: #20638 [Opn-Fbk]: Apache cannot start
I'm experiencing the same problem. OS: Windows XP Apache 1.3.27 for Windows MySQL 3.23.53-win PHP 4.2.3 for Windows (php-4.2.3-Win32.zip) After I successfully installed Apache and MySQL, I tried to install PHP as module. Following the instructions of install.txt I got this result: Cannot load [path]/psp/sapi/php4apache.dll into server: module not found. The problem lies somewhere within the line 'LoadModule php4_module c:/[path]' - but if I look into the .dll the module is there.. Regards, Jan 'Mac' Maska P.S. No 'RTFMs', please.. this error was generated using your installation notes. M. __ ..::jan maska::.. +420 608 453492 web developer Systinet, Prague -- [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... ID: 20638 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Apache2 related Operating System: Win2K Advanced Server PHP Version: 4.2.3 New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to Open. Thank you for your interest in PHP. Previous Comments: [2002-11-26 02:18:16] [EMAIL PROTECTED] After I configured PHP as a module in Apache, Apache cannot restart or start. But when I configured PHP as a CGI binary, Apache worked well. I installed PHP following INSTALL.TXT in php package. -- Edit this bug report at http://bugs.php.net/?id=20638edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RAW POST DATA
Zitat von Hartmut Holzgraefe [EMAIL PROTECTED]: Hartmut Holzgraefe wrote: Jan Schneider wrote: To resume: best practice is currently to use $HTTP_RAW_POST_DATA if available and php://input else. And crossing fingers that either of them works, of course. ;-) hmyes, but it *should* be to use php://input and forget about $HTTP_RAW_POST_DATA alltogether hopefully ... from now on i declare it best practice to use php://input for 4.3 while $HTTP_RAW_POST_DATA is still available for BC reasons ... :) That's the behaviour that I already switched Horde's RPC servers to. Though your readfile() one-liner is really neat. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RAW POST DATA
Zitat von Hartmut Holzgraefe [EMAIL PROTECTED]: My approach was to provide a php://input stream instead of the $HTTP_RAW_POST_DATA variable and additional cleanup code that would swallow any unread content on request shutdown. php://input provides the same flexibility as $HTTP_RAW_POST_DATA, without being limited for post requests. It can be safely enabled by default without creating any memory problems as content data is only passed thru the PHP engine without being stored internaly. Do you mean, this is your plan or this already works? The only execption is POST data that already got interpreted by a POST content type handler. As HTTP requests come in via sockets it is not possible to just rewind the stream pointer to the beginning of the content data after it has been read in and analyzed to populate the $_POST array. In this case it either has to be stored in a memory buffer just like $HTTP_RAW_POST_DATA always did or put into a temporary file. With in-memory storage the complete multipart/form-data handler rewrite would be rendered useless as file upload forms would still be limited by memory constraints. File storage on the other hand would lead to a serious processing overhead for small to average size POST requests generated by simple forms while wasting additional disk space for the majority of file uploads. Another alternative for multipart/form-data would be to just store the non-file parts in memory and read back (and MIME-encode) the uploaded files now stored in temporary disk files back on demand, so presenting the user a reconstruction of the original input content. This approach would preserve resources by avoiding redundant storage of data but would also require every content handler that does not just maintain a in-memory copy of input data to provide an interface for data reconstruction. That makes the most sense to me though also sounds most complicated. ;-) None of these approaches has yet been taken, instead raw data is just simply not provided for multipart/form-data requests since 4.2, and i don't see a way to fix this for 4.3 within a reasonable time frame. Still i think my So, I guess this answers my earlier question. introduction of the php://input stream is a great inporvement over the 'raw' variable, especially with file PUT and WebDAV requests in mind. What definetly needs to be fixed is my complete missinterpretation of $HTTP_RAW_POST_DATA itself and the always_populate_raw_post_data setting, this will be done later today (but multipart/form-data POST requests will still be ignored no matter what always_populate... is set to due to memory preservation reasons) If you're ready with your patches could please post a summary or table about what data ($_POST, $HTTP_RAW_POST_DATA, php://input) is available with what content type and what configuration? That'd be great. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RAW POST DATA
Zitat von Hartmut Holzgraefe [EMAIL PROTECTED]: Jan Schneider wrote: Do you mean, this is your plan or this already works? php://input already works with apache 1.x it should be SAPI independant, but for some strange reason it doesn't work for CGI right now, and i haven't tested any other SAPIs yet but with the apache 1 module i already use it for WebDAV PUT and it works fine for me :) To resume: best practice is currently to use $HTTP_RAW_POST_DATA if available and php://input else. And crossing fingers that either of them works, of course. ;-) Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RAW POST DATA
Zitat von Hartmut Holzgraefe [EMAIL PROTECTED]: Jan Schneider wrote: To resume: best practice is currently to use $HTTP_RAW_POST_DATA if available and php://input else. And crossing fingers that either of them works, of course. ;-) hmyes, but it *should* be to use php://input and forget about $HTTP_RAW_POST_DATA alltogether hopefully ... Since which PHP version? Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] htmlspecialchars iso-2022-jp patch
Zitat von Adrian Gartland [EMAIL PROTECTED]: Attached is a patch which allows iso-2022-jp (jis) encoded text to be passed through htmlspecialchars when the character set is set to ISO-2022-JP. It should also fix a tiny bug I found in determine_charset code where len hadn't been set and then doing its charset map walk. Your attachment didn't go through the mailing list filters. Please post a link where the patch can be downloaded. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- 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 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] gettext change the behaviour of double scalar
Zitat von Jean-Pierre Arneodo [EMAIL PROTECTED]: This is verified with 4.1.2 and 4.2.3 but not with 4.3.Opre2 [myFile.php] $lang='fr_FR'; putenv(LANG=$lang); setlocale(LC_ALL,$lang); bindtextdomain($domain,/MyDir/i18n); textdomain($domain); $a=10.12345; echo $a; // print 10.12345 require('myOtherFile.php'); [myOtherFile.php] $b=10.12345; echo $b; // print 10 So, printing a double in a required file after gettext configuration change the behaviour of a double scalar. This probably has nothing to do with gettext but with the setlocale() call. And iirc this has been fixed in the meantime and thus doesn't happen anymore in 4.3.0. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- 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
[PHP-DEV] ZE2 compile failure with xml-rpc ext
/bin/sh libtool --silent --mode=compile gcc -I/home/jan/software/php4/ext/xmlrpc/libxmlrpc -DVERSION=0.50 -Iext/xmlrpc/ -I/home/jan/software/php4/ext/xmlrpc/ -DPHP_ATOM_INC -I/home/jan/software/php4/include -I/home/jan/software/php4/main -I/home/jan/software/php4 -I/home/jan/software/php4/Zend -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/include/mcal -I/home/jan/software/php4/ext/xml/expat -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208107 -DEAPI -I/home/jan/software/php4/TSRM -g -O2 -prefer-pic -c /home/jan/software/php4/ext/xmlrpc/xmlrpc-epi-php.c -o ext/xmlrpc/xmlrpc-epi-php.lo /home/jan/software/php4/ext/xmlrpc/xmlrpc-epi-php.c: In function `set_zval_xmlrpc_type': /home/jan/software/php4/ext/xmlrpc/xmlrpc-epi-php.c:1348: structure has no member named `properties' /home/jan/software/php4/ext/xmlrpc/xmlrpc-epi-php.c:1349: structure has no member named `properties' make: *** [ext/xmlrpc/xmlrpc-epi-php.lo] Fehler 1 Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] compile error with ZE2
Current php from cvs (head) and ZE2: /bin/sh libtool --silent --mode=compile gcc -Imain/ -I/home/jan/software/php4/main/ -DPHP_ATOM_INC -I/home/jan/software/php4/include -I/home/jan/software/php4/main -I/home/jan/software/php4 -I/home/jan/software/php4/Zend -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/include/mcal -I/home/jan/software/php4/ext/xml/expat -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208107 -DEAPI -I/home/jan/software/php4/TSRM -g -O2 -prefer-pic -c main/internal_functions.c -o main/internal_functions.lo main/internal_functions.c:67: `phpext_overload_ptr' undeclared here (not in a function) main/internal_functions.c:67: initializer element is not constant main/internal_functions.c:67: (near initialization for `php_builtin_extensions[6]') make: *** [main/internal_functions.lo] Fehler 1 Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] compile error with ZE2
Zitat von Derick Rethans [EMAIL PROTECTED]: On Wed, 23 Oct 2002, Markus Fischer wrote: I think --disable-overload fixes this. That did it. hmm, I thought I fixed this by putting preprocessor defines around the Overload extension... But it doesn't work. How is determined which engine version is being to used? Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Regex Libraries
On Mon, Oct 21, 2002 at 08:30:53AM -0400, Ilia A. wrote: Currently PHP contains two bundled regular expression libraries, PECL and regex. I am wondering if it would be a good idea to drop the old regex (dates back to 1999) library and use only PECL. The advantage is performance, cleaner code and a more flexible and more recent library. For the people who still use ereg functions, we could create wrappers that would implement their functionality using PECL and possibly add an E_NOTICE indicating that using PECL function preg_* would be a better approach. $mail = str_replace(PECL, PCRE, $mail); Ilia Jan -- http://jan.kneschke.de - localizer, modlogan, pxtools mailto:jan;kneschke.de - Jan Kneschke -- 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] Re: [4.3.0-pre1] output handler 'ob_gzhandler' cannot be used twice
Zitat von Martin Jansen [EMAIL PROTECTED]: On Mon Oct 14, 2002 at 02:4353AM +0200, Jan Schneider wrote: Zitat von Yasuo Ohgaki [EMAIL PROTECTED]: Martin Jansen wrote: With PHP 4.3.0-pre1 I get the following error message in Chora: Warning: (null)() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in Unknown on line 0 Script should be modified... What version has been used here? The start of output compression has already been moved to one single file unless we have overseen one file. The version of Chora was 2.0-cvs, but I don't remember when it has been installed; so it might be actually a bit outdated. Please tell us, if you still see this happen with a recent cvs version. I can't check it myself currently (s. segfault thread ;-)). Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Segfaults in Zend
Zitat von Yasuo Ohgaki [EMAIL PROTECTED]: 0x4055778f in _efree (ptr=0x83476e4) at /home/jan/software/php4/Zend/zend_alloc.c:229 229 REMOVE_POINTER_FROM_LIST(p); (gdb) bt #0 0x4055778f in _efree (ptr=0x83476e4) at /home/jan/software/php4/Zend/zend_alloc.c:229 #1 0x405664a1 in _zval_dtor (zvalue=0x83456bc) at /home/jan/software/php4/Zend/zend_variables.c:44 #2 0x4055e4c1 in _zval_ptr_dtor (zval_ptr=0x40605714) at /home/jan/software/php4/Zend/zend_execute_API.c:293 #3 0x4057516d in execute (op_array=0x835c0c4) If you could tell us what execute() is trying to execute, it would be useful. (gdb) frame 3 #3 0x4057516d in execute (op_array=0x8353ebc) at /home/jan/software/php4/Zend/zend_execute_locks.h:26 26 zval_ptr_dtor(EG(garbage)[--EG(garbage_ptr)]); (gdb) print (char *)(executor_globals.function_state_ptr-function)-common.function_name $1 = 0x82f313c flist flist() is the function mentioned earlier, that segfaults while returning to the calling function. Did you read my email? (and the URL?) http://bugs.php.net/bugs-generating-backtrace.php Sorry, I didn't know that it has been updated with instructions on how to locate the segfaulting function. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: [4.3.0-pre1] output handler 'ob_gzhandler' cannot be used twice
Zitat von Yasuo Ohgaki [EMAIL PROTECTED]: Martin Jansen wrote: With PHP 4.3.0-pre1 I get the following error message in Chora: Warning: (null)() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in Unknown on line 0 ob_gzhandler shouldn't be applied more than once. Script should check if it is enabled in php.ini or not before using it, otherwise it results in this error. Did you change the behaviour of ob_gzhandler, which makes this warning legal, or is it a bug? Script should be modified... What version has been used here? The start of output compression has already been moved to one single file unless we have overseen one file. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Segfaults in Zend
Hi, the segfaults still occur, though on a different machine (pretty vanilla suse 8.0). But now I get a more useful bt: 0x4055778f in _efree (ptr=0x83476e4) at /home/jan/software/php4/Zend/zend_alloc.c:229 229 REMOVE_POINTER_FROM_LIST(p); (gdb) bt #0 0x4055778f in _efree (ptr=0x83476e4) at /home/jan/software/php4/Zend/zend_alloc.c:229 #1 0x405664a1 in _zval_dtor (zvalue=0x83456bc) at /home/jan/software/php4/Zend/zend_variables.c:44 #2 0x4055e4c1 in _zval_ptr_dtor (zval_ptr=0x40605714) at /home/jan/software/php4/Zend/zend_execute_API.c:293 #3 0x4057516d in execute (op_array=0x835c0c4) at /home/jan/software/php4/Zend/zend_execute_locks.h:26 #4 0x4057a30e in execute (op_array=0x836122c) at /home/jan/software/php4/Zend/zend_execute.c:1641 #5 0x4057a30e in execute (op_array=0x82ae00c) at /home/jan/software/php4/Zend/zend_execute.c:1641 #6 0x4057a30e in execute (op_array=0x81592c4) at /home/jan/software/php4/Zend/zend_execute.c:1641 #7 0x40567c83 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/jan/software/php4/Zend/zend.c:839 #8 0x4053d806 in php_execute_script (primary_file=0xb2a8) at /home/jan/software/php4/main/main.c:1542 #9 0x40580b5e in apache_php_module_main (r=0x8142278, display_source_mode=0) at /home/jan/software/php4/sapi/apache/sapi_apache.c:55 #10 0x4058174f in send_php (r=0x8142278, display_source_mode=0, filename=0x0) at /home/jan/software/php4/sapi/apache/mod_php4.c:564 #11 0x405817b5 in send_parsed_php (r=0x8142278) at /home/jan/software/php4/sapi/apache/mod_php4.c:579 #12 0x08054ad8 in ap_invoke_handler () #13 0x080677bc in ap_some_auth_required () #14 0x08067832 in ap_process_request () #15 0x0805fb29 in ap_child_terminate () #16 0x0805fcd8 in ap_child_terminate () #17 0x0805fe2d in ap_child_terminate () #18 0x0806047a in ap_child_terminate () #19 0x08060d15 in main () #20 0x401649ed in __libc_start_main () from /lib/libc.so.6 Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- 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
[PHP-DEV] Segfaults in Zend
Hi, I currently get following segfaults: httpd logs: [Mon Oct 7 17:17:45 2002] [notice] child pid 19460 exit signal Segmentation fault (11) FATAL: emalloc(): Unable to allocate 1515870812 bytes I can understand him well ;-) BT: Program received signal SIGSEGV, Segmentation fault. 0x400d1ab1 in __kill () from /lib/libc.so.6 (gdb) bt #0 0x400d1ab1 in __kill () from /lib/libc.so.6 #1 0x4049945c in _emalloc () at /root/cvs/cvsphp/Zend/zend_alloc.c:560 #2 0x404aad27 in concat_function () at /root/cvs/cvsphp/Zend/zend_operators.c:507 #3 0x404bfda5 in execute () at /root/cvs/cvsphp/Zend/zend_execute.c:963 #4 0x404c2e5c in execute () at /root/cvs/cvsphp/Zend/zend_execute.c:963 #5 0x404c2e5c in execute () at /root/cvs/cvsphp/Zend/zend_execute.c:963 #6 0x404c2e5c in execute () at /root/cvs/cvsphp/Zend/zend_execute.c:963 #7 0x404c4fb6 in execute () at /root/cvs/cvsphp/Zend/zend_execute.c:963 #8 0x404af654 in zend_execute_scripts () at /root/cvs/cvsphp/Zend/zend.c:377 #9 0x40473ce5 in php_execute_script () at /root/cvs/cvsphp/main/main.c:1455 #10 0x404c8110 in apache_php_module_main () at /root/cvs/cvsphp/sapi/apache/sapi_apache.c:65 #11 0x404c9138 in send_php (r=0x816f7a8, display_source_mode=0, filename=0x81715a8 /usr/local/httpd/htdocs/headhorde/imp/folders.php) at /root/cvs/cvsphp/sapi/apache/mod_php4.c:564 #12 0x404c91c3 in send_parsed_php (r=0x816f7a8) at /root/cvs/cvsphp/sapi/apache/mod_php4.c:579 #13 0x8055250 in ap_invoke_handler () #14 0x806791c in ap_some_auth_required () #15 0x8067993 in ap_process_request () #16 0x805fde7 in ap_child_terminate () #17 0x805ff95 in ap_child_terminate () #18 0x80600d6 in ap_child_terminate () #19 0x80606e8 in ap_child_terminate () #20 0x8060f55 in main () #21 0x400cba8e in __libc_start_main () at ../sysdeps/generic/libc-start.c:93 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Segfaults in Zend
Zeev Suraski wrote: What are you doing in order to get it to crash? Calling any page in IMP. This is why I don't know exactly _where_ it segfaults. I don't have an apache version with debug information at hand, so I can't give you more bt details, sorry. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Segfaults in Zend
Zeev Suraski wrote: Try reducing IMP to the smallest possible script that still reproduces the problem (crashes). That will give us something to go on. Chances are it's not a crash in the engine. This one's really strange and I'm afraid not very helpful. PHP segfaults while returning from a function call. If I exit the script before that call all is well. After the call I get the segfault. If I exit the script inside the function call directly _before_ the function returns all is well again. This not a very complicated function (a static method to be exact) and just returns a not very long string by value. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Segfaults in Zend
Jan Schneider wrote: Zeev Suraski wrote: Try reducing IMP to the smallest possible script that still reproduces the problem (crashes). That will give us something to go on. Chances are it's not a crash in the engine. This one's really strange and I'm afraid not very helpful. PHP segfaults while returning from a function call. If I exit the script before that call all is well. After the call I get the segfault. If I exit the script inside the function call directly _before_ the function returns all is well again. This not a very complicated function (a static method to be exact) and just returns a not very long string by value. In another script the segfaults occur in another place. It's hard to trap it down cause it happens during inside a foreach loop. It doesn't happen after the first loop but at any of the subsequent loops. Inside this loop happens - beside a call to imap_utf7_decode() that wasn't called in the the first script - only some assignments and string and array functions. So I guess this actually has something to do with the engine. -- 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] Segfaults in Zend
Derick Rethans wrote: On Mon, 7 Oct 2002, Jan Schneider wrote: In another script the segfaults occur in another place. It's hard to trap it down cause it happens during inside a foreach loop. It doesn't happen after the first loop but at any of the subsequent loops. Inside this loop happens - beside a call to imap_utf7_decode() that wasn't called in the the first script - only some assignments and string and array functions. So I guess this actually has something to do with the engine. If you are on linux, you can try valgrind (http://developer.kde.org/~sewardj/) like this: (first stop httpd) valgrind --gdb-attach /path/to/httpd -X then request your script and check the valgrind console window. It asks to attach when something goes wrong, press Y and then bt from gdb. This should give a good understanding where it goes wrong. I'd like to but I get an unhandled syscall: 197 though I don't even have such a call in unistd.h. :-( -- 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] pear's Mail using smtp not working with cvs php
Zitat von Matt Haught [EMAIL PROTECTED]: I am trying to use pear's Mail functions to send email to my local smtp server (FreeBSD 4.4 using qmail-smtpd), but it sort of gets hung up when communicating with the smtp server. (I also tried a 2nd smtp server with the same hang). It can take many minutes (way over the script's time out strangely) of the script just setting there going very slowly before I guess it finally times out (no errors are given). Using recordio on the smtp server shows what seems to be a very long time for php to respond to the output of the server. The communication that usually takes under a second, is taking multiple minutes. I was using an Oct 1st checkout, which failed so I backed it out a few times (3:00AM EST each day) with fresh copies to try to find where the problem was introduced: I'm seeing this too, and it has nothing to do with Mail_SMTP, not even with Net_Socket in which case this would be the wrong list anyway. I _think_ it happened after one of Wez' stream commits, but as I don't rebuild php daily I can't tell for sure. I guess your detailed list when it worked and when it failed might help to trap this down to one of the stream commits (hopefully). Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] pear's Mail using smtp not working with cvs php
Zitat von Matt Haught [EMAIL PROTECTED]: It appears that fgets is where the problem is occuring. Its taking over a minute. Can anyone confirm? I tried a server at mail.wvwc.edu and received the same sort of results. Confirmed. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- 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: [imp] IMP 3.1 segfault
You should report this to the PHP team. Perhaps it's even fixed in PHP 4.2.3. Zitat von Iain [EMAIL PROTECTED]: Hi, I seem to have found a work around for this. I recompiled the PHP4 debian packages with the option: export DEB_BUILD_OPTIONS=debug nostrip which is equivalent to --enable-debug and not stripping the binaries. Anyway after installing the new packages the bug mysteriously dissappears. Very unsatisfying :( hope this helps someone else. Iain. On Thu, 12 Sep 2002 12:08, Iain wrote: Hi, I have been having a problem with IMP 3.1 causing a segfault. The segfault occurs when I press send-message in the compose window. I have tried this with PHP 4.1.2 and 4.2.2. I am using apache 1.3.26 on a Debian Woody system. I have tried getting a backtrace but am not sure if I am doing the right thing: After running gdb --args apache -X: Program received signal SIGSEGV, Segmentation fault. 0x40146c1b in free () from /lib/libc.so.6 (gdb) backtrace #0 0x40146c1b in free () from /lib/libc.so.6 #1 0x40146aa3 in free () from /lib/libc.so.6 #2 0x4027260b in _efree () from /usr/lib/apache/1.3/libphp4.so #3 0x40272b03 in shutdown_memory_manager () from /usr/lib/apache/1.3/libphp4.so #4 0x40298ba0 in php_request_shutdown () from /usr/lib/apache/1.3/libphp4.so #5 0x40295cb3 in apache_php_module_main () from /usr/lib/apache/1.3/libphp4.so #6 0x4029675e in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so #7 0x402967c5 in php_restore_umask () from /usr/lib/apache/1.3/libphp4.so #8 0x08053a94 in ap_invoke_handler () #9 0x0806339c in ap_some_auth_required () #10 0x080633f8 in ap_process_request () #11 0x0805cbdb in ap_child_terminate () #12 0x0805cd6c in ap_child_terminate () #13 0x0805ce89 in ap_child_terminate () #14 0x0805d365 in ap_child_terminate () #15 0x0805da6d in main () #16 0x400f114f in __libc_start_main () from /lib/libc.so.6 and from running strace apache -X: write(6, 0006 LOGOUT\r\n, 17) = 17 time(NULL) = 1031823615 time(NULL) = 1031823615 select(7, [6], NULL, [6], NULL) = 1 (in [6]) time(NULL) = 1031823615 read(6, * BYE Courier-IMAP server shutti..., 8192) = 71 alarm(0)= 0 alarm(0)= 0 time(NULL) = 1031823615 alarm(0)= 0 alarm(0)= 0 close(6)= 0 alarm(0)= 0 alarm(0)= 0 alarm(0)= 0 alarm(0)= 0 alarm(0)= 0 alarm(0)= 0 alarm(0)= 0 alarm(0)= 0 alarm(0)= 0 alarm(0)= 0 alarm(0)= 0 alarm(0)= 0 brk(0x82b4000) = 0x82b4000 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL) = 0 rt_sigaction(SIGPROF, {0x40284084, [PROF], SA_RESTART|0x400}, {0x40284084, [PROF], SA_RESTART|0x400}, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ Is there something else I should do to debug this problem? thanks, Iain. -- PGP info: http://www.myspinach.org/~iain/pgpinfo.html -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- 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] imap quota broken
OK, thanks for making that clear. Zitat von Dan Kalowsky [EMAIL PROTECTED]: Yes it did. Mainly because the old compatibility was wrong. In the case when a server would respond with multiple resources like so: C: A003 GETQUOTA S: * QUOTA (STORAGE 10 512 MESSAGE 5 256) The imap_get_quota() function would set the usage and limit values to that of the last resource. If there is more than one resource, the last value is NEVER the STORAGE value. The current functionality reflects the proper usage and limit values for all resources, and conforms to RFC 2087. On Thu, 1 Aug 2002, Jan Schneider wrote: One of the lasts commits to the imap quota functions broke backward compatibility with the old imap_get_quota() behaviour. It used to return an array like: array ( 'usage' = 83090, 'limit' = 10, ) but now returns an array like: array ( 'STORAGE' = array ( 'usage' = 83090, 'limit' = 10, ), ) Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] array commits broke something
Zitat von Brad LaFountain [EMAIL PROTECTED]: Sorry.. i miss read your comment... you are correct I just fixed it commiting in a few min. Yes, everything works as expected now. Thanks! Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] imap quota broken
One of the lasts commits to the imap quota functions broke backward compatibility with the old imap_get_quota() behaviour. It used to return an array like: array ( 'usage' = 83090, 'limit' = 10, ) but now returns an array like: array ( 'STORAGE' = array ( 'usage' = 83090, 'limit' = 10, ), ) Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- 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] 4.3 release call to arms (fwd)
Zitat von Dan Kalowsky [EMAIL PROTECTED]: One thing I'd like to see 4.3 is the IMAP quota stuff I've been working on... but I've not had a chance to test it fully... because I have no access to an IMAP server with quota support builtin! (argh). I've sent the patch numerous times to php-dev, gotten no responses, and once to php-general with no response. Suggested recourse of action? I've forwarded your message to the IMP list but no reaction either. Perhaps it's just working or noone tried it. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] W3C html validation issue
Zitat von Jani Taskinen [EMAIL PROTECTED]: You're only supposed to change it in your HTML..NOT in the browser's query line.. As well as in header() calls (as already stated in this thread) and in javascript calls: document.location.href = 'foo.php?bar=1amp;var=2' won't work either. On 22 Jul 2002, Walter A. Boring IV wrote: Howdy, This may be a tad off topic, but it is related to how php deals with building the $_GET superglobal w/ query string vars. According to the W3C HTML validator, it is illegal to build a query string for a url such as foo.php?bar=1myvar=2 They say you HAVE to use foo.php?bar=1amp;myvar=2 in php's case it builds $_GET[bar] = 1; $_GET[amp;myvar] = 2; I don't know of ANYONE on the planet that builds query string vars in this way. Unless you do, your html pages will not validate through the W3C validator. The official W3c spec explanation is at http://www.htmlhelp.com/tools/validator/problems.html#amp I think changing this could potentially break many sites. Does anyone know what other web languages do with amp;myvar=2 ? I think the W3C validator is broken/wrong in this respect, and wanted to know what other folks think about it. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] ob_implict_flush()
Zitat von Dejan Markic [EMAIL PROTECTED]: Hello! If output_buffering in PHP is set and you issue ob_implict_flush() it does not work. I guess it will still buffer those 4096 bytes. Is this a bug or a feature? I think it would be better if this ob_implict_flush() would work even if output_buffering is set since this is what you're explictly trying to set with this function. Just a tought maybe. +1 for this. It took me few weeks to find out why go-pear didn't work. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- 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] html tidy
Zitat von electroteque [EMAIL PROTECTED]: hi guys is it possible to pass a string through html tidy and output the cleaned up content ? i dont really want to have to create temporary files alover the place let us know You can use output buffering for this. Btw, this question belongs to the php-general mailing list. This list is for developers that develop PHP not with PHP. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Compile error (cvs HEAD)
/root/cvs/cvsphp/ext/standard/array.c: In function `zif_array_rand': /root/cvs/cvsphp/ext/standard/array.c:2949: `array_data_shuffle' undeclared (first use in this function) Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- 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: Re[2]: [PHP-DEV] PHP 4.3 charter and release plan
Zitat von Stig S. Bakken [EMAIL PROTECTED]: On Mon, 2002-05-06 at 11:54, Jan Schneider wrote: Zitat von Andrew Sitnikov [EMAIL PROTECTED]: Hello Stig, SSB Huh, are you saying PHP _is_ locale-dependant? Yes. Example: 1.php ? setlocale(LC_ALL,'ru_RU.CP1251'); include('2.php'); ? 2.php ? $var = 1.3; var_dump($var); ? gap /home/local/sitnikov GET http://si.infonet.ee/1.php float(1) Locale ru_RU.CP1251 has decimal delimiter ','; I understand why it occurs (thanks to Stanislav Malyshev), but this is not correct behaviour IMHO, and must be fixed ASAP. Perhaps Bug 16865 (http://bugs.php.net/bug.php?id=16865) falls into the same category of locale dependent bugs: To quote from the bug entry: ---snip--- It seems like some constants are getting undefined if you set the locale to tr_TR. It happens randomly with internally defined and user defined constants and is reproducable with this little script: ?php setlocale(LC_ALL, 'tr_TR'); echo extension_loaded('imap'); echo SORTARRIVAL; ? ---snip--- This happened so far only with this specific locale, 'tr' for example works. Jan. Does this have to do with what Andrew Sitnikov mentioned about locale settings being used in the parser? I have no idea why this happens. But perhaps someone who knows what he's doing can run this sample script through strace and find out. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP-DEV] PHP 4.3 charter and release plan
Zitat von Andrew Sitnikov [EMAIL PROTECTED]: Hello Stig, SSB Huh, are you saying PHP _is_ locale-dependant? Yes. Example: 1.php ? setlocale(LC_ALL,'ru_RU.CP1251'); include('2.php'); ? 2.php ? $var = 1.3; var_dump($var); ? gap /home/local/sitnikov GET http://si.infonet.ee/1.php float(1) Locale ru_RU.CP1251 has decimal delimiter ','; I understand why it occurs (thanks to Stanislav Malyshev), but this is not correct behaviour IMHO, and must be fixed ASAP. Perhaps Bug 16865 (http://bugs.php.net/bug.php?id=16865) falls into the same category of locale dependent bugs: To quote from the bug entry: ---snip--- It seems like some constants are getting undefined if you set the locale to tr_TR. It happens randomly with internally defined and user defined constants and is reproducable with this little script: ?php setlocale(LC_ALL, 'tr_TR'); echo extension_loaded('imap'); echo SORTARRIVAL; ? ---snip--- This happened so far only with this specific locale, 'tr' for example works. Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de - Deine private Tippgemeinschaft -- 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
Re: [PHP-DEV] cvs: php4 /main/main.c [[Re: [PHP-DEV] ErrorLog problem]]
PHP 4.1.2 - it works fine. Sorry for my seek... It will be better to develop it only for me. I really don't know, that some functions in C can't be used JP Markus Fischer [EMAIL PROTECTED] píse v diskusním príspevku [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 4. It's not conditional and who says everthing likes it that way just becayse you want it that way? Hmm ... My opinion is this patch/method shouldn't be considered at all. First discuss implementation issues better... On Sat, Mar 30, 2002 at 12:56:11PM +0100, [EMAIL PROTECTED] wrote : Hello, 1. this patch doesn't work with thread safety, 2. It doesn't use the PHP coding standards and 3. it uses GOTO. I don't think this should have been committed at all. Derick On Sat, 30 Mar 2002, Jan Pavlík wrote: rootshell Fri Mar 29 23:13:29 2002 CET Modified files: /php4/main/main.c Log: lot of same errors are logged as one, cleans errorlog Index: php4/main/main.c diff -u php4/main/main.c:1.404.2.5 php4/main/main.c:1.404.2.6 --- php4/main/main.c:1.404.2.5 Mon Dec 17 22:19:51 2001 +++ php4/main/main.c Fri Mar 29 23:11:03 2002 @@ -18,11 +18,12 @@ +--+ */ -/* $Id: main.c,v 1.404.2.5 2001/12/17 21:19:51 derick Exp $ */ +/* $Id: main.c,v 1.404.2.6 2002/03/29 23:10:05 rootshell Exp $ */ /* {{{ includes */ #include stdio.h +#include string.h #include php.h #ifdef PHP_WIN32 #include win32/time.h @@ -83,6 +84,9 @@ PHPAPI int core_globals_id; #endif +static char _err_buf[1024]; +#define MAX_ERR_LENGTH (buffer_len sizeof(_err_buf) ? sizeof(_err_buf) : buffer_len) + static void php_build_argv(char *s, zval *track_vars_array TSRMLS_DC); @@ -417,6 +421,9 @@ char *append_string = INI_STR(error_append_string); char *error_format; + if(!strncmp(buffer, _err_buf, MAX_ERR_LENGTH)) goto _away; + else strncpy(_err_buf, buffer, MAX_ERR_LENGTH); + error_format = PG(html_errors) ? br\nb%s/b: %s in b%s/b on line b%d/bbr\n : \n%s: %s in %s on line %d\n; @@ -437,6 +444,7 @@ if (append_string) { PUTS(append_string); } +_away: } #if ZEND_DEBUG { -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php --- PHP: Scripting the Web - [EMAIL PROTECTED] All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net --- -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc Mind if I MFH ? What QA did you do on it? the usual? ah... none :) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] ErrorLog problem
Hi, I have problems with logging events in PHP. When some user write example script from PHP.NET: $fd = fopen (/tmp/nonexists.txt, r); while (!feof ($fd)) { $buffer = fgets($fd, 4096); echo $buffer; } fclose ($fd); And when the file not exists, it run 30 seconds and the ended, but my errorlog is full with one errormesage about nonexistent handler $fd Can PHP log only first error and the next (the same, copy of the first) throw out? P.S. Sorry for my English :) -- Jan PAVLIK [EMAIL PROTECTED] ICQ 6611951 ROOTSHELL.CZ - Make it easy and better! -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] ErrorLog problem
I know it, but we're freewebhosting with 10.000 users... and when do users it? Sorry, I will write to general! JP - Original Message - From: Markus Fischer [EMAIL PROTECTED] To: Jan Pavlík [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 10:18 AM Subject: Re: [PHP-DEV] ErrorLog problem Your code is simply broken. You have to make sure $fd is a proper file handle before you try to use it: if ($fd = @fopen($filename, 'r')) { while(!feof($fd)) { ... } fclose($fd); } Btw, next time please ask on php-general@ - Markus On Fri, Mar 29, 2002 at 08:47:27AM +0100, Jan Pavlík wrote : Hi, I have problems with logging events in PHP. When some user write example script from PHP.NET: $fd = fopen (/tmp/nonexists.txt, r); while (!feof ($fd)) { $buffer = fgets($fd, 4096); echo $buffer; } fclose ($fd); And when the file not exists, it run 30 seconds and the ended, but my errorlog is full with one errormesage about nonexistent handler $fd Can PHP log only first error and the next (the same, copy of the first) throw out? P.S. Sorry for my English :) -- Jan PAVLIK [EMAIL PROTECTED] ICQ 6611951 ROOTSHELL.CZ - Make it easy and better! -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc Mind if I MFH ? What QA did you do on it? the usual? ah... none :) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] ErrorLog problem
That not help to me ;) I will rewrite PHP to log only ONE error when the next errors are the same. But I ask only, PHP developers think, that will be better make it as standart. I will send the patch here for PHP 4.1.2... JP Markus Fischer [EMAIL PROTECTED] píse v diskusním príspevku [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Fri, Mar 29, 2002 at 10:30:18AM +0100, Jan Pavlík wrote : I know it, but we're freewebhosting with 10.000 users... and when do users it? That's a general problem of vhosting and allowing user to write/execute arbitrary code if any kind of language. (I *have* a reason not being in that business ;-) - Markus -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc Mind if I MFH ? What QA did you do on it? the usual? ah... none :) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] ErrorLog problem
Sure :) JP Markus Fischer [EMAIL PROTECTED] píse v diskusním príspevku [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Fri, Mar 29, 2002 at 10:43:17AM +0100, Jan Pavlík wrote : That not help to me ;) I will rewrite PHP to log only ONE error when the next errors are the same. But I ask only, PHP developers think, that will be better make it as standart. I will send the patch here for PHP 4.1.2... Only against CVS head and only in unified diff please. -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc Mind if I MFH ? What QA did you do on it? the usual? ah... none :) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] LF function to read in a URL
Alan McKay wrote: Folks, I'm new to PHP and am looking for a function that will allow me to pass it a URL, and it will return a string which is the HTML code found at the given URL. I want to write some plugins for Geeklog which will harvest stock data from financial websites. thanks, -alan Hey, i think this might work for you: untested beta code here, might crash function get_file($url) { return implode('', file($url)); } input: an url with http:// before it or ftp:// output: the contents of the given url as one big string. One small warning though: be sure the other side and your side are fast: sometimes it can take a few seconds (minutes) for the file to be loaded, depending on the speed of your machine and the machine the file is hosted on, and if the machine is reachable. Have fun with it ;) JF Bethlehem -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] cvs: php4 /main/main.c [[Re: [PHP-DEV] ErrorLog problem]]
rootshell Fri Mar 29 23:13:29 2002 CET Modified files: /php4/main/main.c Log: lot of same errors are logged as one, cleans errorlog Index: php4/main/main.c diff -u php4/main/main.c:1.404.2.5 php4/main/main.c:1.404.2.6 --- php4/main/main.c:1.404.2.5 Mon Dec 17 22:19:51 2001 +++ php4/main/main.c Fri Mar 29 23:11:03 2002 -18,11 +18,12 +--+ */ -/* $Id: main.c,v 1.404.2.5 2001/12/17 21:19:51 derick Exp $ */ +/* $Id: main.c,v 1.404.2.6 2002/03/29 23:10:05 rootshell Exp $ */ /* {{{ includes */ #include stdio.h +#include string.h #include php.h #ifdef PHP_WIN32 #include win32/time.h -83,6 +84,9 PHPAPI int core_globals_id; #endif +static char _err_buf[1024]; +#define MAX_ERR_LENGTH (buffer_len sizeof(_err_buf) ? sizeof(_err_buf) : buffer_len) + static void php_build_argv(char *s, zval *track_vars_array TSRMLS_DC); -417,6 +421,9 char *append_string = INI_STR(error_append_string); char *error_format; + if(!strncmp(buffer, _err_buf, MAX_ERR_LENGTH)) goto _away; + else strncpy(_err_buf, buffer, MAX_ERR_LENGTH); + error_format = PG(html_errors) ? br\nb%s/b: %s in b%s/b on line b%d/bbr\n : \n%s: %s in %s on line %d\n; -437,6 +444,7 if (append_string) { PUTS(append_string); } +_away: } #if ZEND_DEBUG { -- 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