Re[2]: [PHP-DEV] PHP 4.3 charter and release plan
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. SSB I was not aware of that SSB (but then again I always use the C locale). SSB - Stig Best regards, Andrew Sitnikov e-mail : [EMAIL PROTECTED] GSM: (+372) 56491109 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Feature Request: Session Module
Hi! What really would be useful for the session module, is a grouping mechanism for sessions, so i can set up variable scopes and share variables among different session: every session has private variables. that's the way it works now. i can register a variable to a session and there's no way to share them with other sessions with the standard php features. but what if i could set up session groups, each with a own set of local variables. i could register my session to the desired groups, and gain access to their local variables. I could set up as many session groups as I want to. This would be the most flexible solution imo. Regards Michael -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Feature Request: Session Module
In this way i could have the normal private session variables, like it is now and additionally have different sets of variables and share them among different sessions. Regards Michael Michael Virnstein [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi! What really would be useful for the session module, is a grouping mechanism for sessions, so i can set up variable scopes and share variables among different session: every session has private variables. that's the way it works now. i can register a variable to a session and there's no way to share them with other sessions with the standard php features. but what if i could set up session groups, each with a own set of local variables. i could register my session to the desired groups, and gain access to their local variables. I could set up as many session groups as I want to. This would be the most flexible solution imo. Regards Michael -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Feature Request: Session Module
Hi, I think what you want can (and should) be done with shared memory, ext/shmop . This way you exchange values as you want (it's not tied to sessions in anyway, btw). - Markus On Sat, May 04, 2002 at 11:08:52AM +0200, Michael Virnstein wrote : Hi! What really would be useful for the session module, is a grouping mechanism for sessions, so i can set up variable scopes and share variables among different session: every session has private variables. that's the way it works now. i can register a variable to a session and there's no way to share them with other sessions with the standard php features. but what if i could set up session groups, each with a own set of local variables. i could register my session to the desired groups, and gain access to their local variables. I could set up as many session groups as I want to. This would be the most flexible solution imo. Regards Michael -- 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] CVS Account Request: arnab
To learn PHP -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Feature Request: Session Module
Markus Fischer wrote: Hi, I think what you want can (and should) be done with shared memory, ext/shmop . This way you exchange values as you want (it's not tied to sessions in anyway, btw). Markus' method works nicely for single server It is recommended way. Try session_pgsql or srm if you need application level variables for sevral servers. For session_pgsql, you need serializable transaction isolation if you need strict consistency. Serializable tranzaction isolation would be bottle neck of performance, so use it with caution. -- Yasuo Ohgaki -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: CVS Account Request: arnab
Arnab Bagchi wrote: To learn PHP You don't need CVS account for learning/creating module/etc. -- Yasuo Ohgaki -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Anybody have Sablotron working with a recent PHP?
A quick test of various versions of Sablotron with HEAD: 0.90 Sablotron error on line 1: unknown encoding '' 0.81 Sablotron error on line 1: unknown encoding '' 0.71 Sablotron error on line 1: unknown encoding '' 0.65 /home/rasmus/php4/ext/xslt/sablot.c:198: undefined reference to `SablotCreateProcessorForSituation' 0.52 In file included from /home/rasmus/php4/ext/xslt/sablot.c:27: /home/rasmus/php4/ext/xslt/php_sablot.h:96: parse error before `SablotSituation' /home/rasmus/php4/ext/xslt/php_sablot.h:96: warning: no semicolon at end of struct or union /home/rasmus/php4/ext/xslt/php_sablot.h:99: parse error before `}' /home/rasmus/php4/ext/xslt/php_sablot.h:114: field `processor' has incomplete type /home/rasmus/php4/ext/xslt/php_sablot.h:118: confused by earlier errors, bailing out 0.44 Trouble building Sablotron itself because of expat issues The test script was: $p = xslt_create(); $res = xslt_process($p,'foo.xml','foo.xsl'); if(!$res) echo xslt_error($p); echo $res; xslt_free($p); foo.xml: ?xml version=1.0 encoding=utf-8? data item type=1abc/item item type=2efg/item /data foo.xsl: ?xml version=1.0 encoding=utf-8? xsl:stylesheet version=1.0 xmlns:xsl=Transform xsl:output method=xml indent=yes omit-xml-declaration=yes/ xsl:param name=par01/ xsl:template match=/ xsl:apply-templates select=data/ /xsl:template xsl:template match=data html body bgcolor='#e0ffe0' h2result:/h2 ul xsl:for-each select=item lixsl:value-of select=.//li /xsl:for-each li xsl:value-of select=$par01/ /li li xsl:value-of select=document('arg:/data2')/data/item/ /li /ul /body /html /xsl:template /xsl:stylesheet (Yes, I downloaded the Transform file - not that it matters) -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] resource problem, advice wanted
On Fri, May 03, 2002 at 03:34:46PM +0300, Zeev Suraski wrote: If ldap_first_entry() relies on the resource that is passed onto it, then it should add a reference count to it, using zend_list_addref(). The resource ldap_first_entry returns should be responsible for this reference, and its destructor should call zend_list_delete(). Then, only when no resources need the resource returned by ldap_read(), it'll be allowed to be freed. Thanks, I've done that now. If you (or anyone else) have the time, please review the ldap.c changes I just committed. Stig -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] ZIP functions
Could anyone provide me with the precompiled dll needed to use zip functions (e.g. http://uk.php.net/manual/en/ref.zip.php ) I have the zziplib.dll file from http://zziplib.sourceforge.net/ but need the php_zzip.dll TYIA Mike -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Still warnings in ext/mbstring
mbregex.c C:\home\php\php4\ext\mbstring\mbfilter_tw.c(99) : warning C4700: Lokale Variable 'c1' wurde ohne Initialisierung verwendet C:\home\php\php4\ext\mbstring\mbregex.c(2207) : warning C4018: '=' : Konflikt z wischen signed und unsigned C:\home\php\php4\ext\mbstring\mbregex.c(2390) : warning C4018: '=' : Konflikt z wischen signed und unsigned C:\home\php\php4\ext\mbstring\mbregex.c(3870) : warning C4018: '=' : Konflikt z wischen signed und unsigned mbstring.c C:\home\php\php4\ext\mbstring\mbstring.c(439) : warning C4013: 'mbre_free_patter n' undefiniert; Annahme: extern mit Rueckgabetyp int -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP 4.3 charter and release plan
Well, since I was the one that talked about interfaces when that discussion started, I will gladly give my vote for it! +1 - Original Message - From: Stig S. Bakken [EMAIL PROTECTED] To: Wez Furlong [EMAIL PROTECTED] Cc: Stig S. Bakken [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, May 03, 2002 7:10 PM Subject: Re: [PHP-DEV] PHP 4.3 charter and release plan On Fri, 2002-05-03 at 11:40, Wez Furlong wrote: On 03/05/02, Stig S. Bakken [EMAIL PROTECTED] wrote: Here's the list of major changes, and the person I would like to invite as responsible for that part of 4.3: 2. PHP Streams (Wez) Sure, but I'm a bit limited for time over the next month. That's fine. Predictability is the key. When someone has signed up for each major change, I want to get a feeling for how much work remains and make a rough internal release schedule. The PHP_4_3_0 branch will be created when everyone says their stuff is ready for full testing. One of the remaining todos for streams is making sure that the persistent sockets stuff works (pfsockopen); if there are any persistent resources gurus out there, your advice would be appreciated because there appear to be a couple of different ways of making things persistent but none of those methods are clear or documented. I'd also like to have a general consensus on the interfaces idea/RFC that I brought up recently: if the opinion is in favour then I would like to get that infrastructure in place and have the streams code make use of it: that serves two purposes - it will demonstrate how to use the interface API, and will reduce binary compatibility issues if we do decide to introduce it later on. I have already written the code for the interface API, so it's really just a matter of getting a majority vote in favour of having it in PHP. +1 from me. I think it'd be nice to play with it for a while to collect experience that can be used to make interfaces perfect in PHP 5 :-) - Stig -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] PHP 4.3 charter and release plan
Stig, I have a bit of work to do still with the bundled ext/gd/libgd so I would add bundled libgd to the list of major changes. May need a bit of Sascha-help to get it building correctly in the new build system. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Feature Request: Session Module
I just tried ext/shmop, and without even using it, the fact that it is compiled in to php causes it to segfault on every request. Here's my ./configure line ./configure --with-mysql=/usr --with-pgsql --enable-ftp --with-ldap --with-gmp --disable-pear --enable-shmop --enable-apc --with-apache=/usr/local/src/apache_1.3.24 --enable-track-vars --with-msession I tried it with 4.1.2, and since that didn't work, I tried 4.2.1RC1, with the same result. I'm also using mod_ssl, if that matters. Do you need a backtrace of it? If so, how do I do that? Markus Fischer wrote: Hi, I think what you want can (and should) be done with shared memory, ext/shmop . This way you exchange values as you want (it's not tied to sessions in anyway, btw). - Markus On Sat, May 04, 2002 at 11:08:52AM +0200, Michael Virnstein wrote : Hi! What really would be useful for the session module, is a grouping mechanism for sessions, so i can set up variable scopes and share variables among different session: every session has private variables. that's the way it works now. i can register a variable to a session and there's no way to share them with other sessions with the standard php features. but what if i could set up session groups, each with a own set of local variables. i could register my session to the desired groups, and gain access to their local variables. I could set up as many session groups as I want to. This would be the most flexible solution imo. Regards Michael -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Win32 testing and run-tests.php (was: PHP 4 Bug Summary Report)
Is anyone working on getting the run-tests.php and tests/* running on Win32? Who is adding test cases as bugs are closed? Fixed run-tests.php and added a Win32 project to run the tests. During the test run PHP faults (bad pointer/index during mbstring tests). This is a good thing, as it looks like this found a real PHP bug. Configuration: tests - Win32 Debug set TEST_PHP_EXECUTABLE=Debug_TS\php-cgi.exe cd .. Debug_TS\php-cgi.exe -q -c php.ini-dist run-tests.php OK - TEST_PHP_EXECUTABLE = Debug_TS\\php-cgi.exe Running tests in C:/net.php/php4-current/ext/bz2/tests == [all 2 test(s) skipped] Running tests in C:/net.php/php4-current/ext/crack/tests [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/ctype/tests ctype on integers... passed ctype on strings (002.phpt) ... failed Running tests in C:/net.php/php4-current/ext/cybermut/tests === [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/db/tests = [all 6 test(s) skipped] Running tests in C:/net.php/php4-current/ext/dbplus/tests = [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/dbx/tests == [all 8 test(s) skipped] Running tests in C:/net.php/php4-current/ext/dio/tests == [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/domxml/tests = [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/exif/tests === [all 3 test(s) skipped] Running tests in C:/net.php/php4-current/ext/gmp/tests == [all 3 test(s) skipped] Running tests in C:/net.php/php4-current/ext/iconv/tests [all 5 test(s) skipped] Running tests in C:/net.php/php4-current/ext/interbase/tests [all 6 test(s) skipped] Running tests in C:/net.php/php4-current/ext/mbstring/tests === Simple multi-byte print test (EUC-JP)... passed mb_internal_encoding() test ... passed mb_http_input() (003.phpt) ... failed mb_http_output() ... passed mb_detect_order() (005.phpt) ... failed mb_substitute_character()... passed mb_output_handler() (EUC-JP) ... passed mb_preferred_mime_name() ... passed mb_strlen() ... passed mb_strpos() ... passed mb_strrpos() ... passed mb_substr() ... passed mb_strcut() ... passed mb_strimwidth() ... passed mb_convert_variables() (015.phpt)... failed mb_convert_encoding()... passed mb_detect_encoding() ... passed mb_strwidth()... passed mb_strlen() ... passed Running tests in C:/net.php/php4-current/ext/mcrypt/tests = [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/mcve/tests === [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/ncurses/tests == [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/openssl/tests == [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/pcntl/tests [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/pgsql/tests [all 19 test(s) skipped] Running tests in
RE: [PHP-DEV] Win32 testing and run-tests.php (was: PHP 4 Bug Summary Report)
Yes, i'm working on getting tests working on all platforms... but not today, probably very soon. james -Original Message- From: Preston L. Bannister [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 05, 2002 2:14 AM To: [EMAIL PROTECTED] Subject: [PHP-DEV] Win32 testing and run-tests.php (was: PHP 4 Bug Summary Report) Is anyone working on getting the run-tests.php and tests/* running on Win32? Who is adding test cases as bugs are closed? Fixed run-tests.php and added a Win32 project to run the tests. During the test run PHP faults (bad pointer/index during mbstring tests). This is a good thing, as it looks like this found a real PHP bug. Configuration: tests - Win32 Debug set TEST_PHP_EXECUTABLE=Debug_TS\php-cgi.exe cd .. Debug_TS\php-cgi.exe -q -c php.ini-dist run-tests.php OK - TEST_PHP_EXECUTABLE = Debug_TS\\php-cgi.exe Running tests in C:/net.php/php4-current/ext/bz2/tests == [all 2 test(s) skipped] Running tests in C:/net.php/php4-current/ext/crack/tests [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/ctype/tests ctype on integers ... passed ctype on strings (002.phpt) ... failed Running tests in C:/net.php/php4-current/ext/cybermut/tests === [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/db/tests = [all 6 test(s) skipped] Running tests in C:/net.php/php4-current/ext/dbplus/tests = [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/dbx/tests == [all 8 test(s) skipped] Running tests in C:/net.php/php4-current/ext/dio/tests == [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/domxml/tests = [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/exif/tests === [all 3 test(s) skipped] Running tests in C:/net.php/php4-current/ext/gmp/tests == [all 3 test(s) skipped] Running tests in C:/net.php/php4-current/ext/iconv/tests [all 5 test(s) skipped] Running tests in C:/net.php/php4-current/ext/interbase/tests [all 6 test(s) skipped] Running tests in C:/net.php/php4-current/ext/mbstring/tests === Simple multi-byte print test (EUC-JP) ... passed mb_internal_encoding() test ... passed mb_http_input() (003.phpt) ... failed mb_http_output() ... passed mb_detect_order() (005.phpt) ... failed mb_substitute_character() ... passed mb_output_handler() (EUC-JP) ... passed mb_preferred_mime_name() ... passed mb_strlen() ... passed mb_strpos() ... passed mb_strrpos() ... passed mb_substr() ... passed mb_strcut() ... passed mb_strimwidth() ... passed mb_convert_variables() (015.phpt) ... failed mb_convert_encoding() ... passed mb_detect_encoding() ... passed mb_strwidth() ... passed mb_strlen() ... passed Running tests in C:/net.php/php4-current/ext/mcrypt/tests = [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/mcve/tests === [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/ncurses/tests == [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/openssl/tests == [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/pcntl/tests [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/pgsql/tests [all 19 test(s) skipped] Running tests in C:/net.php/php4-current/ext/pspell/tests = [all 1 test(s) skipped] Running tests in C:/net.php/php4-current/ext/session/tests == Session Object Serialization ... passed session_unset() without any session ... passed Session Object Deserialization ... passed session_set_save_handler test ... passed Custom save handler, multiple session_start()s, complex data structu ...
Re: [PHP-DEV] Another addition to session-module ... while were on topic
If you use msession, this should all just work. $sid = session_id(); $array_users = msession_get_array('users'); $array_globals = msession_get_array('globals'); $array_my = session_get_array($sid); Msession does not handle classes all that well. It uses discrete variables. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Session does not work at all...
Following script works for older with 4.1.2-dev. It does not work at all with current CVS versions, both 4.3.0-dev and 4.2.1-dev Anyone? ?php session_name('files'); session_module_name('files'); echo 'Save handler '. session_module_name(). 'br'; //ini_set('sessin.save_path','/path/does/not/exist'); session_start(); if (!isset($_SESSION['abc'])) { $_SESSION['abc'] = 1; $_SESSION['xyz'] = 1; } else { $_SESSION['abc']++; $_SESSION['xyz']++; } echo $_SESSION['abc'].\n; echo $_SESSION['xyz'].\n; ? -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: Anybody have Sablotron working with a recent PHP?
I've been using Sablo 0.90 fine with 4.1.2, 4.2.0 and 4.2.1RC1 without any major problems so far. (Although at first I was having problems with encodings, but that's a Sablotron problem, not PHP.) I'm building on linux with gcc/g++ 2.96. J Hush provide the worlds most secure, easy to use online applications - which solution is right for you? HushMail Secure Email http://www.hushmail.com/ HushDrive Secure Online Storage http://www.hushmail.com/hushdrive/ Hush Business - security for your Business http://www.hush.com/ Hush Enterprise - Secure Solutions for your Enterprise http://www.hush.com/ Looking for a good deal on a domain name? http://www.hush.com/partners/offers.cgi?id=domainpeople -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php