[PHP-DEV] Re: ++$i++ (was Re: [PHP-DEV] call_builtin_function_array() possible?)

2001-01-10 Thread Andrei Zmievski
On Wed, 10 Jan 2001, Cynic wrote: I recently needed to process every other element of a numerically indexed array. for( $i = 0 ; $i count( $a ) ; $x = $a[ ++$i++ ] ) would have saved me one statement. I had to use for( $i = 0 ; $i count( $a ) ; $x = $a[ $i++ ] , $i++ ) I know, this

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/vpopmail .cvsignore CREDITS Makefile.in config.m4 php_vpopmail.c php_vpopmail.h

2001-01-17 Thread Andrei Zmievski
On Wed, 17 Jan 2001, Boian Bonev wrote: sorry for broken english. I just wanted to say that vpopmail's api uses function naming convention which is incomatible with php style. This is the reason to name php functions after vpopmail api, prefixing them with vpopmail_. We can fix this easy.

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/vpopmail .cvsignore CREDITS Makefile.in config.m4 php_vpopmail.c php_vpopmail.h

2001-01-17 Thread Andrei Zmievski
On Wed, 17 Jan 2001, Boian Bonev wrote: hi, sure. can i ask you another style question? snips form a config.m4 file: --- AC_MSG_RESULT(found in $VPOPMAIL_LIB_DIR) --- --- AC_MSG_CHECKING(for vpopmail install directory) ... code follows... AC_MSG_RESULT($VPOPMAIL_DIR) --- i

Re: [PHP-DEV] Timezone offset differences

2001-01-17 Thread Andrei Zmievski
On Wed, 17 Jan 2001, Jim Winstead wrote: i didn't check how date('Z') is defined (do you add it to local time to get UTC or subtract it?) but it may be that systems where struct tm has a tm_gmtoff member and systems that use the timezone global may define it different ways. Well, I am in

Re: [PHP-DEV] Timezone offset differences

2001-01-18 Thread Andrei Zmievski
On Wed, 17 Jan 2001, Chuck Hagenbuch wrote: For the record, I reported a similar problem on win32 a while ago, though it was with date('r') (rfc822 date), but showed the same thing - wrong sign for the timezone offset. Fixed. -Andrei "Music expresses that which can not be said and on

Re: [PHP-DEV] Mean

2001-01-19 Thread Andrei Zmievski
On Fri, 19 Jan 2001, Jason Greene wrote: I was just looking at php4/TODO. What is the desired capability for array_mean? Is this refering to the mean of all numerical elements in the list? Is the desired functionality to count non numerical data as 0's or to completly ignore them from the

Re: [PHP-DEV] string replacement

2001-01-22 Thread Andrei Zmievski
On Mon, 22 Jan 2001, Jan Borsodi wrote: So I ask again: Are there any plans to make str_replace and ereg_replace take arrays as parameters as well, in the same manner as preg_replace does? (a simple yes or no will suffice) Or do I have to do this myself? I could modify str_replace() to

Re: [PHP-DEV] string replacement

2001-01-22 Thread Andrei Zmievski
Done. On Mon, 22 Jan 2001, Martin Jansen wrote: On Mon, 22 Jan 2001 16:28:09 +0100 (CET), Derick Rethans wrote: On Mon, 22 Jan 2001, Andrei Zmievski wrote: I could modify str_replace() to have the same behavior with regard to arrays as preg_replace() - if people agree that it's a good

Re: [PHP-DEV] array_add

2001-01-22 Thread Andrei Zmievski
On Mon, 22 Jan 2001, Jason Greene wrote: Is array_add in TODO refering to the summation of the individual elements in an array? ex (1,2,3) +(2,3,4)=(3,5,7)? No, something else. I'll try to remember to what, exactly. -Andrei It is commonly the case with technologies that you can get the best

Re: [PHP-DEV] le_ why static?

2001-01-26 Thread Andrei Zmievski
On Fri, 26 Jan 2001, Sam Liddicott wrote: Why are le_* garbage destructor handles declared static? As far as I can tell this means other c files in the same module can't "extern" it but as it is static in file scope it has none of the other benefits of being static? Is it to do with

Re: [PHP-DEV] Karma request

2001-01-31 Thread Andrei Zmievski
Ok, you got it. Let me know if just you or the whole QA team needs access to qaweb. On Wed, 31 Jan 2001, Zak Greant wrote: Anyone care to grant me enough karma to update qaweb? :) --zak -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP-DEV] PHP 4.0 Bug #9029: preg_split inconsistency

2001-01-31 Thread Andrei Zmievski
On Wed, 31 Jan 2001, [EMAIL PROTECTED] wrote: The brackets aren't captured, which makes the Scheme parsing a bit difficult :-) There are other ways to do this, of course, but the preg_split() would be the simplest and the most efficient way to do it, as far as we can see. I noticed that

Re: [PHP-DEV] nested functions

2001-02-02 Thread Andrei Zmievski
On Fri, 02 Feb 2001, Hartmut Holzgraefe wrote: it is right now possible to declare functions within functions (see bug#9064) this will lead to redeclaration errors if you call the outer function more then once i'm not sure about it, is this a usefull feature (although it behaves very

Re: [PHP-DEV] PHP 4.0 Bug #9041 Updated: Extra #! at top of web output.

2001-02-05 Thread Andrei Zmievski
Actually PHP does check for #! in the first line and skips that line if needed. It works on Linux and used to work on Solaris until 4.0.4pl1.. On Mon, 05 Feb 2001, [EMAIL PROTECTED] wrote: ID: 9041 Updated by: jmoore Reported By: [EMAIL PROTECTED] Status: Analyzed Bug Type: *Configuration

Re: [PHP-DEV] #! scripts as PHP scripts

2001-02-05 Thread Andrei Zmievski
At 02:31 AM 2/6/01 +0200, Zeev Suraski wrote: In my opinion - if people want to run such files as CGI's, they should be using .cgi extension and +x them, and not run them through the php.exe CGI as .php files. At any rate, we need to decide which of the two behaviors is correct, because right

Re: [PHP-DEV] wrong implementation of isset()?

2001-02-06 Thread Andrei Zmievski
On Tue, 06 Feb 2001, Martin Jansen wrote: The following was reported today in the german language newsgroup news:de.comp.lang.php: ?php $a = NULL; if (isset($a)) { print "ok, du hast recht"; } ? Shouldn't this script generate some output? IMO $a is set and isset() should return true.

Re: [PHP-DEV] wrong implementation of isset()?

2001-02-06 Thread Andrei Zmievski
On Tue, 06 Feb 2001, Bjoern Hoehrmann wrote: NULL == not set Great analysis. What about answering the question? Stanislav Malyshev said some months ago this is 'strange', see the discussion around bug 6076. Tell us at least, why this actually isn't strange. By default, any unset variable

Re: [PHP-DEV] time to upgrade bundled PCRE?

2001-02-19 Thread Andrei Zmievski
On Mon, 19 Feb 2001, Thies C. Arntzen wrote: current version is 3.4 we use 3.2 andrei? I will, probably in the next couple of days. -Andrei * On the keyboard of life, always keep one finger on the escape key. * -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

Re: [PHP-DEV] PHP 4.0 Bug #9337 Updated: make in_array return key, if searched value was found

2001-02-19 Thread Andrei Zmievski
How about using array_keys($array, $value) to find the key? On Mon, 19 Feb 2001, [EMAIL PROTECTED] wrote: ID: 9337 Updated by: andre Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: Feature/Change Request Assigned To: Comments: maybe a fourth parameter

Re: [PHP-DEV] PHP 4.0 Bug #9337 Updated: make in_array return key, if searched value was found

2001-02-19 Thread Andrei Zmievski
On Mon, 19 Feb 2001, Jason Greene wrote: Some of my thoughts: 1. if you change the return value of in_array to return the key, you can get a false error in your if statement, imagine if in_array found the element in key 0? : ) 2. I would say that returning a key is a bit more useful then an

Re: [PHP-DEV] PHP 4.0 Bug #9337 Updated: make in_array return key, if searched value was found

2001-02-19 Thread Andrei Zmievski
On Mon, 19 Feb 2001, Jason Greene wrote: We can change in_array() to return the the key if it's found, and false if it's not, but imagine all the scripts it would break.. about 1/4th of mine : ) Well I think the basic problem is that people are using in_array against its intention. It

Re: [PHP-DEV] PHP 4.0 Bug #9337 Updated: make in_array return key, if searched value was found

2001-02-20 Thread Andrei Zmievski
On Tue, 20 Feb 2001, Stig Venaas wrote: Not quite sure we need array_find(). If we can have in_array() set the array pointer to point to the entry found, one can get the key by using key(). If in_array() also searches from the pointer onwards, one can find all entries with the value by doing:

[PHP-DEV] Re: [PHP-PEAR] PEAR issue #2 (pear-dev) vote

2001-02-23 Thread Andrei Zmievski
On Thu, 22 Feb 2001, Andr Langhorst wrote: [X] do not change anything ( ) pear-users and pear-dev ( ) pear-general and pear-dev [ ] any other idea -Andrei "In My Egotistical Opinion, most people's C programs should be indented six feet downward and covered with dirt." -- Blair P.

Re: [PHP-DEV] Karma for php-gtk

2001-02-24 Thread Andrei Zmievski
At 07:10 PM 2/24/01 +0100, Peter \"[DiSAStA]\" Petermann wrote: Karma for php-gtk Why do you want karma for php-gtk? -Andrei -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP-DEV] call_user_method_array

2001-02-26 Thread Andrei Zmievski
On Sun, 25 Feb 2001, Wez Furlong wrote: Hi, I have written a call_user_method_array function that, This function has already been implemented for the next release. -Andrei * The future is not what it used to be. * -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail:

Re: [PHP-DEV] Any way of finding out what files have been included?

2001-03-02 Thread Andrei Zmievski
On Fri, 02 Mar 2001, Neil Kimber wrote: I'm testing for efficiency and realise that it's possible that some pages include files, that in turn include files, that in turn etc Some of these includes are probably not needed and are bloating my site. Is there an easy way to determine which

[PHP-DEV] Announcing PHP-GTK

2001-03-01 Thread Andrei Zmievski
The first release of PHP-GTK is now available. PHP-GTK is a PHP extension that provides an object-oriented interface to GTK+ toolkit and enables you to write client-side cross-platform GUI applications. For more information, visit http://gtk.php.net/. -Andrei UNIX is like sex: If you don't know

[PHP-DEV] Re: [PHP-GTK] Re: [PHP-DEV] Function dl()

2001-03-07 Thread Andrei Zmievski
On Wed, 07 Mar 2001, Andrew Lawrence wrote: Andrei Zmievski can probably explain this better than I can, but loading the library through php.ini is not desirable or possible I believe. That was a bug, it's been fixed now. -Andrei * If it ain't broken, it doesn't have enough features yet

Re: [PHP-DEV] Re: What have you done to your website!!! ???

2001-03-08 Thread Andrei Zmievski
On Thu, 08 Mar 2001, Jani Taskinen wrote: My thoughts exactly! I hate that new look. It's..depressing! I must have missed some discussion about the new web design? And when was it decided (and by WHO?!) that this new design is ok? e.g. The font is not Linux-Netscape-friendly and the manual

Re: [PHP-DEV] The new design

2001-03-08 Thread Andrei Zmievski
On Thu, 08 Mar 2001, Varun Shoor wrote: This is really not the good approach... when couple of people in #php were talking about a new redesigned PHP site, i was expecting a much better.. and good looking site not like one that is up currently. I miss almost every feature.. those quickref

[PHP-DEV] Static vars in methods

2001-03-09 Thread Andrei Zmievski
Just ran into something (well, actually searching for it) and wanted to know what everyone's thoughts on this were and whether it should stay that way. ?php class Foo { function get() { static $i = 0; return ++$i; } } $c1 = new Foo; var_dump($c1-get());

[PHP-DEV] Re: Static vars in methods

2001-03-09 Thread Andrei Zmievski
On Fri, 09 Mar 2001, Andi Gutmans wrote: We need to think of static class variables. I don't think it's very easy to do this in a way which wouldn't cause a general performance loss but I'll put on my thinking cap. Ok, I was gonna try to hack it in myself, but you are obviously more

[PHP-DEV] Re: Static vars in methods

2001-03-09 Thread Andrei Zmievski
On Fri, 09 Mar 2001, Andi Gutmans wrote: Yeah, it's supposed to be this way. We copied C++. Ok, so I can rely on this behavior in the future. On a similar note, what about static class variables, can those be done? -Andrei * What were the first 15 billion years of the universe like for you? *

[PHP-DEV] Re: Static vars in methods

2001-03-09 Thread Andrei Zmievski
On Fri, 09 Mar 2001, Andi Gutmans wrote: By the way, if you need something that works you can just add the following line in your constructor: $this-mystatic = $GLOBALS["__myclass_mystatic"]; Then use $this-mystatic in all of your methods. It's not built-in but it should work pretty

Re: [PHP-DEV] static call bugs?

2001-03-09 Thread Andrei Zmievski
On Sat, 10 Mar 2001, Andr Langhorst wrote: Hi, 1) I am currently completing the php documentation to cover all undocumented features and I have noticed that using a static method call to the same class from on instanciated object exhibits the presence of the instance within the static

Re: [PHP-DEV] static call bugs?

2001-03-09 Thread Andrei Zmievski
On Sat, 10 Mar 2001, Andr Langhorst wrote: could you elaborate (I guess you do not have parent:: in your mind writing from parent classes)? I don't understand the question. Can you rephrase? -Andrei Any sufficiently advanced bug is indistinguishable from a feature. -- Rich

Re: [PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / zend_API.c zend_API.h

2001-03-12 Thread Andrei Zmievski
Use zend_snprintf() instead or what? On Mon, 12 Mar 2001, Zeev Suraski wrote: snprintf() isn't accessible in the Zend engine... Zeev At 08:43 12/3/2001, Sebastian Bergmann wrote: Andrei Zmievski wrote: andrei Mon Mar 12 05:08:29 2001 EDT Modified files: /Zend

Re: [PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / zend_API.c zend_API.h

2001-03-12 Thread Andrei Zmievski
On Mon, 12 Mar 2001, Zeev Suraski wrote: No, it's really inaccessible :) We managed to write the engine without needing it... Is it impossible to replace it with other functions? How do you sprintf to buffer of fixed size without possible overflow? I suppose I could use strlcat() to build

Re: [PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / zend_API.c zend_API.h

2001-03-12 Thread Andrei Zmievski
On Mon, 12 Mar 2001, Jason Greene wrote: strlcpy, and strlcat are in the win32 build (main/strlcat.c main/strlcpy.c) why dont you malloc a buffer that would fit the sprintf data, and then strlcpy the size restriction? Hmm, and how would you know how big the sprintf buffer would need to be for

Re: [PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / zend_API.c zend_API.h

2001-03-12 Thread Andrei Zmievski
On Mon, 12 Mar 2001, Andi Gutmans wrote: I commited a patch but didn't test it. Andrei, please make sure I don't have some dumb bug there. Thanks. -Andrei * Life may be expensive, but it includes an annual free trip around the sun. * -- PHP Development Mailing List http://www.php.net/ To

Re: [PHP-DEV] PHP 4.0 Bug #9712: zend_is_callable clobbers values if using arrays as parameters for preg_replace

2001-03-12 Thread Andrei Zmievski
On Mon, 12 Mar 2001, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: any PHP version: 4.0 Latest CVS (12/03/2001) PHP Bug Type: PCRE related Bug description: zend_is_callable clobbers values if using arrays as parameters for preg_replace $search =

Re: [PHP-DEV] Err : Invalid library

2001-03-13 Thread Andrei Zmievski
On Tue, 13 Mar 2001, Alexander Bokovoy wrote: 2. PHP-GTK suffers from other bug. It is also a problem with build environment: when you do #include "php_config.h" in SCE module, then main PHP4 php_config.h which is installed on the system is included, not locally created

Re: [PHP-DEV] PHP 4.0 Bug #9794: array_keys resets the array pointer and can not be used when looping

2001-03-16 Thread Andrei Zmievski
I'll fix this problem soon. It's even in the TODO. On Fri, 16 Mar 2001, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Operating system: linux 2.2.16 PHP version: 4.0.4pl1 PHP Bug Type: Scripting Engine problem Bug description: array_keys resets the array pointer and

Re: [PHP-DEV] PHP 4.0 Bug #9794: array_keys resets the array pointer and can not be used when looping

2001-03-16 Thread Andrei Zmievski
On Fri, 16 Mar 2001, Daniel Beckham wrote: Awesome. Are you planning to just fix the array_keys function, or will there be a change as to how the array functions work with the array pointers? It'll be on a case-by-case basis. Some functions do need to move the pointers. -Andrei It is

Re: [PHP-DEV] PHP 4.0 Bug #9794 Updated: array_keys resets the array pointer and can not be used when looping

2001-03-16 Thread Andrei Zmievski
Working on it right now, in fact.. On Fri, 16 Mar 2001, [EMAIL PROTECTED] wrote: ID: 9794 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Assigned Bug Type: Scripting Engine problem Assigned To: andrei Comments: I'll fix this problem soon. It's even in the

Re: [PHP-DEV] PHP 4.0 Bug #9794: array_keys resets the array pointer and can not be used when looping

2001-03-16 Thread Andrei Zmievski
On Fri, 16 Mar 2001, Stig Venaas wrote: It seems like this is a common problem, I think perhaps most of the PHP code (the C code) could be made cleaner if the Zend API separated pointers from the array structure. So that one could create a pointer and pass it as an argument to Zend hash

Re: [PHP-DEV] preg_grep bug?!?

2001-03-19 Thread Andrei Zmievski
On Mon, 19 Mar 2001, William N. Zanatta wrote: Hello ppl, I have a dropdown menu which lists some countries. These countries are also in a database and each of them have an ID number used for control. Well, when I insert an entry for each of the countries in the database, the next time I

Re: [PHP-DEV] Zend build

2001-03-19 Thread Andrei Zmievski
On Mon, 19 Mar 2001, [EMAIL PROTECTED] wrote: Is there something wrong with build of Zend as of this morning? I get: $ make Making all in Zend make[1]: Entering directory `/data/src/cvs-php/Zend' make[1]: *** No rule to make target `@MAINTAINER_MODE_TRUE@', needed by

Re: [PHP-DEV] Zend build

2001-03-19 Thread Andrei Zmievski
On Mon, 19 Mar 2001, Alexander Bokovoy wrote: PHP4 has no means except AC_OUTPUT() to replace variables in header files through templates in modules. If I'm using PHP_SUBST and PHP_OUTPUT then php_midgard.h didn't generated from php_midgard.in. The only way to generate it is to use AC_OUTPUT

Re: [PHP-DEV] Function design recomendation?

2001-03-21 Thread Andrei Zmievski
On Wed, 21 Mar 2001, Fredrik Ohrn wrote: I'm about to properly implement cpdf_set_viewer_preferences which is currently just a stub. The underlying function takes a struct with 8 fields. I'd like to avoid having to specify 8 parameters to the PHP equivalent (especially as most of them

Re: [PHP-DEV] is_reference() ?

2001-03-21 Thread Andrei Zmievski
On Wed, 21 Mar 2001, Bjrn Schotte wrote: I recently had a discussion with Alexander Aulbach (submitter of bug reports with unset() and the inconsistencies with unset($foo) and unset($bar["bla"]) (the latter works, the former not)) and we agreed that there definitively would be need of a

Re: [PHP-DEV] PHP 4.0.5 Release Midgard Problems

2001-04-02 Thread Andrei Zmievski
On Mon, 02 Apr 2001, Alexander Bokovoy wrote: Andrei didn't use C coding in Smarty simply because his team failed to produce effective solution in reasonable time, but it does not mean that such solution impossible (no offense for IPSI at all, just facts from Smarty documentation). We have

Re: [PHP-DEV] PHP 4.0.5 Release Midgard Problems

2001-04-02 Thread Andrei Zmievski
On Mon, 02 Apr 2001, Andi Gutmans wrote: I very much liked Andrei's implementation of Smary templates. It uses the Zend (PHP) scripting language and caches templated scripts without messing with the core of PHP. Just nitpicking, Andi, but really, it's Zend that needs to be in parenthesis

[PHP-DEV] Re: [PHP-QA] PHP 4.0.5 Release Candidate testing

2001-04-02 Thread Andrei Zmievski
On Mon, 02 Apr 2001, Alexander Feldman wrote: Hi, These are the results and questions from some tests I run yesterday on the last 4.0.5 release candidate. Note that all differences are from PHP 4.0.4pl1. 1. The function array_flip($array) puts one extra zero byte at the end of each

Re: [PHP-DEV] Re: [PHP-QA] PHP 4.0.5 Release Candidate testing

2001-04-02 Thread Andrei Zmievski
It's done. On Mon, 02 Apr 2001, Andi Gutmans wrote: Andrei, Can you please merge this to 4.0.5. I think it should be in and we better release a final RC6. I think it's better to have another quick RC (I can roll it today or tomorrow) before we get 4.0.5 out of the door. Andi -Andrei

Re: [PHP-DEV] Re: [PHP-CVS] cvs: pear /ScienceChemistry.php/Science/ChemistryAtom.php Atom_PDB.php Coordinates.phpElement.phpMacromolecule.phpMacromolecule_PDB.php Molecule.phpMolecule_XYZ.phpPDBFile.php PDBPa

2001-04-11 Thread Andrei Zmievski
On Tue, 10 Apr 2001, Sebastian Bergmann wrote: Jon Parise wrote: It appears as though he committed it to pear/, not php4/pear/. It looks like PEAR will slowly become its own module. Yup, and that's good to see. Sorry, Jesus! Ok, good. -Andrei * I wish life had an UNDO function. * --

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / TODO-4.1.txt

2001-04-17 Thread Andrei Zmievski
At 05:33 AM 4/17/01 -0400, Stig Sther Bakken wrote: I don't see 4.1 happening if we have to keep coordinating the TODO lists of 80 extensions. Yep, the main reason I didn't want to add php-gtk to the default PHP dist. -Andrei -- PHP Development Mailing List http://www.php.net/ To unsubscribe,

Re: [PHP-DEV] request

2001-04-20 Thread Andrei Zmievski
On Tue, 17 Apr 2001, Stanislav Malyshev wrote: Generally, since PHP is not a strongly typed language, it's not too hard to implement multiple inheritance, I guess. Question is - is it worth the effort? Does it need to be done? With multiple inheritance you have a way to implement interfaces

Re: [PHP-DEV] Enabling WDDX

2001-04-20 Thread Andrei Zmievski
On Tue, 17 Apr 2001, Tom wrote: I run websites on server farms - and am usually faced with difficulties as a result of the PHP configuration being at the whim of the ISV staff - especially when version upgrades are made - they frequently fail to include all the needed -with- and -enable-

Re: [PHP-DEV] lxr.php.net and the php4/core directory

2001-04-20 Thread Andrei Zmievski
I'll take a look at it. On Thu, 19 Apr 2001, Hartmut Holzgraefe wrote: could someone please make lxr ignore the old php4/core directory when indexing the source? -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 -- PHP Development Mailing List

Re: [PHP-DEV] Suggestion for in_array

2001-04-20 Thread Andrei Zmievski
See array_search() function. On Fri, 20 Apr 2001, Thomas Deliduka wrote: Perhaps having in_array return the index for the element that contains the needle. That would be very useful. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your

Re: [PHP-DEV] lxr.php.net and the php4/core directory

2001-04-20 Thread Andrei Zmievski
Should be fixed. On Fri, 20 Apr 2001, Andrei Zmievski wrote: I'll take a look at it. On Thu, 19 Apr 2001, Hartmut Holzgraefe wrote: could someone please make lxr ignore the old php4/core directory when indexing the source? -- Hartmut Holzgraefe [EMAIL PROTECTED] http

Re: [PHP-DEV] Enabling WDDX

2001-04-20 Thread Andrei Zmievski
On Fri, 20 Apr 2001, TomHenry wrote: Adrei I guess the underlaying thread was lost -- the whole issue is just that I don't have control over compiling PHP in the first place. I needed a solution that could be implemented w/o being the one compiling 0 I I compiled then I wouldn't have

Re: [PHP-DEV] Enabling WDDX

2001-04-20 Thread Andrei Zmievski
On Fri, 20 Apr 2001, TomHenry wrote: Adrei I guess the underlaying thread was lost -- the whole issue is just that I don't have control over compiling PHP in the first place. I needed a solution that could be implemented w/o being the one compiling 0 I I compiled then I wouldn't have

Re: [PHP-DEV] request

2001-04-21 Thread Andrei Zmievski
On Sat, 21 Apr 2001, Chuck Hagenbuch wrote: This could result in really confusing and unpredictable behavior if "the first encountered definition" changed under any circumstances. I'd vote for making any name conflicts an error. You could have two classes both defining an innocent method

Re: [PHP-DEV] request

2001-04-22 Thread Andrei Zmievski
At 12:44 PM 4/22/01 +0300, Stanislav Malyshev wrote: That would be what I call weirdness and would raise WTF factor significantly. Changing some class declaration is some unrelated module could then make all your code inside out and you have absolutely no control on it and no means to prevent

Re: [PHP-DEV] request

2001-04-22 Thread Andrei Zmievski
At 12:54 PM 4/22/01 +0300, Stanislav Malyshev wrote: Sure this is a hard error. And double sure using first method is wrong. Why the first one is better than the second? The third? The 42th? The toString function should or be overriden in inherited object, which resolves the conflict, or uniquely

Re: [PHP-DEV] Fwd: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext/standard array.c

2001-04-24 Thread Andrei Zmievski
I see it in RC7. On Tue, 24 Apr 2001, Andi Gutmans wrote: Looks like it got merged before RC7. Can you check if your source includes this fix? From: Andrei Zmievski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon, 02 Apr 2001 16:12:07 - Subject: [PHP-CVS] cvs: php4(PHP_4_0_5) /ext

Re: [PHP-DEV] 4.0.5 release

2001-04-24 Thread Andrei Zmievski
On Tue, 24 Apr 2001, Cynic wrote: RC7 still appends a binary zero to every element in the array returned by get_defined_functions(). IIRC Andrei said he fixed it (but maybe in HEAD only?). Seems like it'd be easy to fix, shouldn't it be done for 4.0.5? It's been merged into the release

Re: [PHP-DEV] hebrew error messages?

2001-04-24 Thread Andrei Zmievski
On Tue, 24 Apr 2001, Colin Viebrock wrote: Parse error: parse error, expecting `T_PAAMAYIM_NEKUDOTAYIM' or `'('' in /path/to/file.php on line 246 Zeev/Andi ... ? :) Read expecting '::' or '('. -Andrei Commitment, n.: Commitment can be illustrated by a breakfast of ham and eggs. The

Re: [PHP-DEV] hebrew error messages?

2001-04-25 Thread Andrei Zmievski
Hardly. :) I just asked the same question of you, oh, about a year ago. On Wed, 25 Apr 2001, Zeev Suraski wrote: Andrei's Hebrew sure is getting better :) At 21:15 24/4/2001, Andrei Zmievski wrote: On Tue, 24 Apr 2001, Colin Viebrock wrote: Parse error: parse error, expecting

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] 4.0.5: Merge Request

2001-04-25 Thread Andrei Zmievski
On Tue, 24 Apr 2001, Sterling Hughes wrote: Hrmm.. I think its not a bad idea to encourage (even more :) bug fixing for the next release, but I don't think restricting valuable and/or needed features is a good idea. Grr.. I'd really like for 4.0.5 to come out soon, it's holding up a number

[PHP-DEV] sprintf and strings with NULL byte

2001-04-25 Thread Andrei Zmievski
Do we have any facilities (in C) for sprintf'ing the strings that may have NULL byte inside? For example, if name is foo\0bar, and name_len is 7, sprintf(buf, name: %*s, name_len, name); Does not give the correct result - stops at the first null byte. -Andrei The secret of flying is

Re: [PHP-DEV] sprintf and strings with NULL byte

2001-04-25 Thread Andrei Zmievski
On Wed, 25 Apr 2001, Rasmus Lerdorf wrote: Don't think so. And it also doesn't work if the format string contains a null byte because the parsing loop does: while (format[inpos]) { ... I don't see any reason to not change this to loop over (*args[0])-value.str.len instead here. As

Re: [PHP-DEV] sprintf and strings with NULL byte

2001-04-25 Thread Andrei Zmievski
On Wed, 25 Apr 2001, [EMAIL PROTECTED] wrote: Oh, and I went and fixed this anyway. That's cool. I'd just split that php_formatted_print() function into two parts. One that does the argument handling and one that just does the work like we have done with so many other functions. Yes, we

Re: [PHP-DEV] sprintf and strings with NULL byte

2001-04-25 Thread Andrei Zmievski
On Wed, 25 Apr 2001, [EMAIL PROTECTED] wrote: Well, no, because it is now binary-clean! ;) Do you need exact 1:1 parity? It does most of the things that glibc printf() does. I don't need it right now, just venting it out as a thought for the future.. -Andrei * If Bill Gates had a nickel

Re: [PHP-DEV] 4.0.5: Merge Request

2001-04-26 Thread Andrei Zmievski
On Wed, 25 Apr 2001, Sterling Hughes wrote: I actually think the general idea is good, have a release where all the regular contributors agree to work on fixing bugs. Or like the debian folk do, have a bug squashing party. I'm just saying that a feature freeze seems un-necessary, I see no

Re: [PHP-DEV] 4.0.5: Merge Request

2001-04-26 Thread Andrei Zmievski
On Wed, 25 Apr 2001, Sterling Hughes wrote: Naturally, but what does waiting 7 (an arbitrary number) of days do to make the new feature have less bugs. The way I see it, the sooner the feature is in there, the sooner the bug gets identified the sooner we're able to fix it, the better.

Re: [PHP-DEV] function table

2001-04-26 Thread Andrei Zmievski
On Thu, 26 Apr 2001, David Croft wrote: Hello, I'm implementing an extension that allows user callbacks. The Zend API document suggests using the Compiler globals to access the function table. However I see the XML extension is using Executor globals. Which is correct? is there a

Re: [PHP-DEV] Re: Assigned PHP 4 bugs reminder

2001-04-28 Thread Andrei Zmievski
On Sat, 28 Apr 2001, Derick Rethans wrote: Hello, this time I got two of those, but still no PHP 4 Bug Summary... On 28 Apr 2001 [EMAIL PROTECTED] wrote: 9163: mcrypt_list_algorithms doesn't work 10187: Warning: mcrypt module initialization failed 10518:

Re: [PHP-DEV] key_exists from php

2001-04-29 Thread Andrei Zmievski
At 09:50 PM 4/29/01 -0400, David Croft wrote: There doesn't seem to be any way for a php script to determine whether a given key exists in an array. isset($arr['x']) fails when it exists but has a null value. I know there are ways around it like using foreach or array_keys but these don't seem

Re: [PHP-DEV] key_exists from php

2001-04-29 Thread Andrei Zmievski
At 10:00 PM 4/29/01 -0400, David Croft wrote: should that be separate e.g. index_exists? No, just have it take either string or number for a key. -Andrei -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/session php_session.h session.c /ext/wddx php_wddx_api.h wddx.c

2001-05-01 Thread Andrei Zmievski
On Wed, 02 May 2001, Alexander Bokovoy wrote: On Tue, May 01, 2001 at 11:15:56PM +0200, [EMAIL PROTECTED] wrote: Hello Alexander, We (The SRM Team) also have great interest in this. Maybe we can collaborate on this. OK. Andrei, what changes are actually need to be done in session

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Zeev Suraski wrote: At 13:27 3/5/2001, Jani Taskinen wrote: I just want to remind everyone that the 4.0.6 is suppose to have mainly bug fixes..or wasn't this agreed on yet? Yes it was. Does that mean I should take my array_map() and array_filter() functions out? ;-)

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Andi Gutmans wrote: Nah but I think it means that you shouldn't add any more array_foobar() functions before 4.0.7-dev :) Geez, just when I finished array_foobar().. By the way, what happened to that array_defined() or whatever function which was added? Didn't we say

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Andi Gutmans wrote: key_exists(), you mean? I didn't put it in, and as far as I know it's still there. I'd really like to nuke it. I can sort of see his point really, if $array['foo'] = NULL there is no way to know whether key 'foo' exists or not.. -Andrei * Power

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Andi Gutmans wrote: Yeah but I'm afraid it'll make scripts be written on behavior which shouldn't be counted on. Maybe in future versions of Zend $array['foo'] won't be defined. There are certain situations where I think it was impossible to not define it so it was

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Zeev Suraski wrote: Hmmm, looks like the MySQL module was changed to add NULL elements to the array. It even looks as if you changed it :) I intentionally removed the code that populated return values with NULL's, to avoid inconsistencies. People should use the

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Zeev Suraski wrote: Yes, it requires adding of functions that duplicate isset()'s behavior in a way that may change in the future (implementation dependent). What do you mean? You won't be able to store NULL's in the arrays? -Andrei * I don't mind going nowhere as long

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Andi Gutmans wrote: Anyway, it's not something I think we should change right now. I think Andrei's MySQL patch should be reverted though. Many people are doing isset($row[foo]) on their MySQL query results. Today if foo is NULL it will return false. If this is ever

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Andi Gutmans wrote: Also, have you seen people complain about my patch to MySQL that adds NULL's to the result set? No because isset() returns false for NULL values. But many people would like it to return true, and then it would break people's scripts. I guess at

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Zeev Suraski wrote: Sure. I just did. :) Adding an isnull() language construct may be the right way to solve this situation; key_exists() and the today's function is_null() are both functions that duplicate language-level functionality, and shouldn't exist IMHO.

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Andi Gutmans wrote: How do you know today if it's NULL or not? is_null()? -Andrei We all have photographic memories, it's just that some of us don't have any film. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP-DEV] 4.1 Declaration Case Persistance

2001-05-03 Thread Andrei Zmievski
On Thu, 03 May 2001, Wez Furlong wrote: I just read Colins comments (but deleted the message already!). OK, so +1 to get_declared_class() which returns the class name with original case preserved. Umm, that sounds kind of arbitrary. There could be an optional parameter to get_class(),

Re: [PHP-DEV] 4.1 Declaration Case Persistance

2001-05-03 Thread Andrei Zmievski
At 02:38 AM 5/4/01 +0300, Andi Gutmans wrote: I don't think it is trivial to implement this without: a) Creating a second version of our hash tables (I don't like duplicate code). b) Adding more complexity to the already complex hash tables. I may be missing something here, but why not simply

Re: [PHP-DEV] 4.1 Declaration Case Persistance

2001-05-03 Thread Andrei Zmievski
At 02:50 AM 5/4/01 +0300, Andi Gutmans wrote: I still don't think this is something lots of PHP users will benefit from. On the contrary, I think semantically it is more correct to define what the case insensitivity means (names are converted to lower case). How many examples can you think of

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
At 06:31 PM 5/3/01 -0500, Richard Lynch wrote: Um, lots of people use isset($row['foo]) to detect NULL in the database... Are you going to change that behaviour? Don't. If the column is missing, they screwed up their SQL, which is not within the pervue of PHP to fix in the first place... You

Re: [PHP-DEV] 4.1 Declaration Case Persistance

2001-05-03 Thread Andrei Zmievski
At 03:12 AM 5/4/01 +0300, Andi Gutmans wrote: In the constructor of your class you can save the class name to a variable if it's that important to you :) sigh -Andrei -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Release process

2001-05-03 Thread Andrei Zmievski
At 03:14 AM 5/4/01 +0300, Andi Gutmans wrote: Not exactly. No matter if it is set to NULL or unset then isset() will give the same result. And most people use isset() AFAIK. Whatever the current situation, there needs to be a way to check whether a certain array entry is NULL or not. -Andrei

Re: [PHP-DEV] mailparse extension

2001-05-04 Thread Andrei Zmievski
On Fri, 04 May 2001, Hartmut Holzgraefe wrote: oops, we are going to have internal extension dependencies beside those to ext/standard? ext/wddx already depends on ext/xml. -Andrei Some people try to achieve immortality through their work, others through their children. I hope to achieve

  1   2   3   4   5   6   >