[PHP-DEV] so called bugfix doesn't seem to be applied?

2005-04-04 Thread Ron Korving
7;t compile PHP myself, I use a debian file from dotdeb.org, but the phpinfo() shows 5.0.4, so I assume it is installed relatively correctly. Could this be a bad install somehow, or is it possible that the bugfix is missing? Ron Korving -- PHP Internals - PHP Runtime Development Mailing List To uns

[PHP-DEV] Re: Proposal for Implementing Unicode in PHP

2005-06-06 Thread Ron Korving
I couldn't agree with you more. This would be a great new feature for PHP 5.1 (which it probably won't be), or 5.2. Ron "Steven Wittens" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hi, > > As a PHP user I'm sadly confronted daily with PHP's lack of proper > Unicode support. PH

Re: [PHP-DEV] PHP 5.1

2005-06-08 Thread Ron Korving
"Magnus Määttä" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What about ifsetor for 5.1 ? Would anybody be interested in a parameter for ifsetor() that would treat isset() as !empty() or an alternative function that achieves this? I know I'd love to see that. I use empty() a lot

[PHP-DEV] Re: ifsetor(), goto, 5.x, my two cents

2005-06-08 Thread Ron Korving
I must say, I like the coalesce() idea a lot. It gives more flexibility over ifsetor() which sounds to me like it only handles 1 variable that is or isn't set. coalesce() would handle any number of variables. Here's something else to consider though: Would anybody be interested in a parameter for

Re: [PHP-DEV] PHP 5.1

2005-06-12 Thread Ron Korving
The problem with your example of firstNotEmpty() would be that if a variable is not set, I'll get a notice, which I don't want. So it's really no different from an isset() check. You want to be able to apply it to an variable that is not yet set. Ron ""Sara Golemon"" <[EMAIL PROTECTED]> wrote in

Re: [PHP-DEV] PHP 5.1

2005-06-13 Thread Ron Korving
If it were possible at all to make a function accept unset variables without generating a notice, I think ifsetor() shouldn't even be implemented. People could then have the freedom to create such functions themselves. But unfortunately, it doesn't seem to be possible, unless you'd suppress every f

Re: [PHP-DEV] PHP 5.1

2005-06-13 Thread Ron Korving
t; like a sensible goal to me. As nice as it is to be able to roll your > NB> own, code sharing is facilitated when we include de facto behaviors. > NB> The single implementation close to the metal would also help with > NB> speed and code verifiability. > > NB>

Re: [PHP-DEV] PHP 5.1

2005-06-14 Thread Ron Korving
But how about this..: Let's not implement functions that do what you want to achieve, but extend PHP in whatever way necessary that would enable you to write such a function yourself? Say for example that prepending @ to function parameters would make it possible to call the function with an unse

Re: Re[2]: [PHP-DEV] PHP 5.1

2005-06-14 Thread Ron Korving
No, ifsetor() is not possible in user land, because it generates notices, and a php core function ifsetor() would not generate notices. That's really the way it has to be. Ron "Sven Fuchs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Why isn't is possible in userland? Is there a

Re: [PHP-DEV] PHP 5.1

2005-06-14 Thread Ron Korving
Hmm, you're right.. so the reference "&" already takes care of this... Well, then I don't see the point of the whole ifsetor() discussions... people can implement this themselves. Ron "Sebastian Mendel" <[EMAIL PROTECTED]> wrote in message ne

Re: [PHP-DEV] PHP 5.1

2005-06-14 Thread Ron Korving
Hi Zeev, You're absolutely right.. How awful of me that I didn't see this coming. Honestly, what's the point of having an ifsetor() in PHP, when people can obviously write it themselves? Everybody wants a slighty different implementation of an ifsetor(), ifnotemptyor(), coalesce(), etc... Why are

Re: Re[2]: [PHP-DEV] PHP 5.1

2005-06-14 Thread Ron Korving
Personally, I doubt this is a problem.. I mean, how many ifsetor() variables are we talking here? You call the function, so therefor the variable could be set, otherwise you wouldn't be checking for it. In the case it was set, it would've been in the symbol table anyway. Ron "Sven Fuchs" <[EMAIL

Re: Re[2]: [PHP-DEV] PHP 5.1

2005-06-14 Thread Ron Korving
Personally, I doubt this is a problem.. I mean, how many ifsetor() variables are we talking here? You call the function, so therefor the variable could be set, otherwise you wouldn't be checking for it. In the case it was set, it would've been in the symbol table anyway. Ron "Sven Fuchs" <[EMAIL

Re: Re[2]: [PHP-DEV] PHP 5.1

2005-06-14 Thread Ron Korving
There is one case though, which can still not be implemented (probably?) by users, and that's a coalesce function, since that would require fetching values by using func_get_args(), which doesn't return references. So the only way I could imagine implementing such coalesce() function would be like

[PHP-DEV] Re: Summer of Code

2005-06-18 Thread Ron Korving
Quote from http://code.google.com We're Expanding the Summer of Code... - 17/Jun/2005 After spot reviewing the applications we've received for the Summer of Code, we were struck with their high quality. As a result, we were able to increase the funds available to support 400 students, double our o

[PHP-DEV] Re: 'include' Considered Harmful

2005-06-24 Thread Ron Korving
E_STRICT would be a nice place to leave a warning, but of course, the naive programmers don't use E_STRICT, so what's the point in that? Personally, I think include is just fine the way it is. What I could imagine though, is that the include() function would be enhanced with parameters to allow/dis

Re: [PHP-DEV] Re: 'include' Considered Harmful

2005-06-28 Thread Ron Korving
> If the very first thing you have to do with a language feature is make > sure that it doesn't function as designed (which is to execute hostile > content with local privileges), then clearly the design of that > feature is wrong. Or the default value of the configuration setting has been a bad c

Re: [PHP-DEV] php 4.4 BC break

2005-07-16 Thread Ron Korving
> >Lastly, there IS a note in the announcement stating that the major version > >increase is due to a non-BC change, I don't see what everyone is > >complaining about. Perhaps you should request that your users read what > >they're downloading before they download it. > > Wrong, read the announceme

Re: [PHP-DEV] php 4.4 BC break

2005-07-16 Thread Ron Korving
ews:[EMAIL PROTECTED] > On Sat, 16 Jul 2005, Ron Korving wrote: > > > It doesn't matter how wrong the programmers were by abusing PHP in this way. > > You have to feel sympathy for the fact that these people will be upgrading > > their servers only to find out their code

[PHP-DEV] zlib problem

2005-07-29 Thread Ron Korving
Hi, Will there be a gzdecode() function in the future? I really need it, and the function provided by Aaron G. on http://nl2.php.net/manual/en/function.gzencode.php#44470 doesn't always seem to work ("data error" warning on a newly gzipped file). I tried to go through the ext/zlib code, trying to

[PHP-DEV] is this a bug?

2005-08-01 Thread Ron Korving
When I receive a warning that an XSD file could not be opened, it urlencodes the filepath. That doesn't make sense to me... Example: Warning: I/O warning : failed to load external entity "/var/www/my%20test%20schema.xsd" in /var/www/test.php on line 10 Is this a bug? Ron PS: Weird thing is that

Re: [PHP-DEV] is this a bug?

2005-08-01 Thread Ron Korving
s is probably a bug. > I don't know if it easy fixable. > You can post it into bugs.php.net, and I'll look into it (when I'll have > time for it). > > Thanks. Dmitry. > > > -Original Message- > > From: Ron Korving [mailto:[EMAIL PROTECTED] >

Re: [PHP-DEV] is this a bug?

2005-08-02 Thread Ron Korving
external entitity. Either surpress the errors when calling > whichever function or you can use the new error handling for xml in 5.1 > which wont issue/display errors directly but any can be retrieved after > the function call. > > Rob > > Ron Korving wrote: > > >Yes, sp

Re: [PHP-DEV] is this a bug?

2005-08-02 Thread Ron Korving
the information that says the actual XSD-file is missing. Again, for me personally, this requires no fix. Ron "Christian Stocker" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > > > On 2.8.2005 10:16 Uhr, Ron Korving wrote: > > Shouldn't PHP sup

[PHP-DEV] custom superglobals

2005-08-06 Thread Ron Korving
Hi, Wouldn't it be a good feature to have users create their own superglobals? I think it would be good for at least two reasons (rather similar though): - Application settings can be stored in such a global, so that objects can use them without needing the information passed to functions or usin

[PHP-DEV] non-standard behavior of socket_recvfrom()

2005-08-07 Thread Ron Korving
Hi, This may be an odd suggestion/request, and nothing in the line of what's currently hot around here (PHP 5.1 that is), but I'm making it anyway: The current behavior of socket_recvfrom() (/etc/sockets/socket.h) on a connection error, is that it frees the buffer (recv_buf), throws an error and

[PHP-DEV] drastic memory consumption with a sequence of exceptions

2005-08-09 Thread Ron Korving
I've noticed that in a script of mine, memory consumption can explode quite drastically when Exceptions are thrown, opposed to very normal memory consumption when exceptions are not thrown. This is the idea: process(); } catch (Exception $e) { $errors[] = $e->getMessage(); } } ?> Whe

[PHP-DEV] Re: drastic memory consumption with a sequence of exceptions

2005-08-09 Thread Ron Korving
It is very likely that this has something to do with DOM. It's a huge piece of code though, making it hard to test where the problem really lies. ""Ron Korving"" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > I've noticed that in a script

[PHP-DEV] Re: drastic memory consumption with a sequence of exceptions

2005-08-09 Thread Ron Korving
in the foreach(). It seems the $largeResultSet is not freed in this case. Using the foreach by reference or not (&$item or $item) does not make a difference. Ron ""Ron Korving"" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > It is very likely that

Re: [PHP-DEV] Moving to PHP5.1 and Apache 2.2 next year, need help

2005-08-09 Thread Ron Korving
Nonetheless, Rasmus, isn't it something to work on? Like Steve said, #1 and #2 can be accomplished, and that would at least be a good start. You are right about the libraries, but in time, even these may become thread safe (of course, likely not by anyone from the PHP-community). Why is this thread

Re: [PHP-DEV] Re: drastic memory consumption with a sequenceof exceptions

2005-08-09 Thread Ron Korving
e > problem? Thanks. > > At 05:27 PM 8/9/2005 +0200, Ron Korving wrote: > >The problem occurs in this particular situation: > > > >public function process($data) > >{ > > $largeResultSet = $this->xmlParser->parseString($data); > > > > fo

Re: [PHP-DEV] Re: drastic memory consumption with a sequenceof exceptions

2005-08-10 Thread Ron Korving
You're right, using that file to create a big piece of data was just for demonstration purposes. In my personal case it's XML parsing. The way I read what you just said is that this is behavior by design. But if I don't throw Exceptions, memory usage stays constant. Throwing and catching these exce

[PHP-DEV] Re: PHP Unicode support design document

2005-08-10 Thread Ron Korving
This looks very promising, I'm impressed by the work you guys have done (big thumbs up). There are a few issues/questions I have after reading your document: "Therefore, command such as 'print' and 'echo' automatically convert their arguments to the specified encoding. No automatic output encodi

Re: [PHP-DEV] Re: drastic memory consumption with a sequenceof exceptions

2005-08-10 Thread Ron Korving
icht news:[EMAIL PROTECTED] > I have opened the bug #34065, but it is very hard to fix it. > > Thanks. Dmitry. > > > -Original Message- > > From: Ron Korving [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 10, 2005 1:55 PM > > To: internals@lists.

Re: [PHP-DEV] Re: drastic memory consumption with a sequenceofexceptions

2005-08-10 Thread Ron Korving
ans" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > On Wed, 10 Aug 2005, Ron Korving wrote: > > > Perhaps it would require an revised garbage collection mechanism? If that's > > the case and you think it's worth investing time in, I think it w

Re: [PHP-DEV] Re: drastic memory consumption with a sequenceofexceptions

2005-08-10 Thread Ron Korving
"Derick Rethans" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > On Wed, 10 Aug 2005, Ron Korving wrote: > > > My situation is parsing a number of XML-reports. If parsing goes wrong in > > any way (XML parsing fails, XML validation fails, databa

Re: [PHP-DEV] Re: drastic memory consumption with a sequenceofexceptions

2005-08-10 Thread Ron Korving
cribe is hard to detect. I > will however put it on our TODO list because this case could possibly be > improved on. > > Andi > > At 11:54 AM 8/10/2005 +0200, Ron Korving wrote: > >You're right, using that file to create a big piece of data was just for > >demonstr

Re: [PHP-DEV] Re: drastic memory consumption with a sequenceofexceptions

2005-08-10 Thread Ron Korving
pply if you use the reference operator? > > foreach ($data as &$lines) { .. > > ? > > - Markus > > Wez Furlong wrote: > > foreach() 'copies' $data, and it's the copy that isn't going away. > > > > --Wez. > > > > On 8

Re: [PHP-DEV] Re: PHP Unicode support design document

2005-08-10 Thread Ron Korving
Exactly. That's how I understood it too: "Ah, the __toString behavior". I'm very glad this is not the case. Ron "George Schlossnagle" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > > On Aug 10, 2005, at 10:30 AM, Rasmus Lerdorf wrote: > > > Yeah, print/echo was just a way of des

Re: [PHP-DEV] Re: PHP Unicode support design document

2005-08-10 Thread Ron Korving
I firmly believe though, that all outputting functions should act the same. It's the same problem otherwise as with __toString(). I would use __toString if it wasn't just restricted to echo and print, but right now it's pretty useless to me. I hope that behavior can change in a major version update

Re: [PHP-DEV] Re: PHP Unicode support design document

2005-08-10 Thread Ron Korving
Sounds absolutely great :) Ron "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Ron, > > i had a chat with Andi about __toString() and i hope that he finally > undestood why a lot of ppl wanted it right from the beginning. To me the > current situation is si

[PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-12 Thread Ron Korving
Now I'm not the person with the kind of karma that should make you guys listen, but in case you are interested, I'll just add my 2 cents > 1. Remove register_globals completely +1 > 2. Remove magic_quotes_* +1000 > 6. Remove some stuff that has been marked deprecated since PHP 3/4 +1 > A cou

[PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-12 Thread Ron Korving
Oh, and I almost forgot one wishlist item I've had on my list for a long time (I hope you guys have an open mind) How about doubling integer precision to 64 bits and float/double precision to 128 bits? It's in line with 64 bit CPU capabilities, and personally, I wouldn't mind it a bit if i

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-13 Thread Ron Korving
What's bad about using [] for strings? I think people who come from a C-background (like myself) really like that syntax. I'd prefer it to stay the way it is. Ron "Andrei Zmievski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > We did, but we never arrived at consensus. I don't rea

[PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-13 Thread Ron Korving
Perhaps the named parameters could even be constant-like? How would this syntax be? foo(id => 42, name => "foo"); Ron "Matthew Weier O'Phinney" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Christian Schneider <[EMAIL PROTECTED]> : > > 9. Named parameters. Preferred way would

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-13 Thread Ron Korving
"Christian Schneider" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > foo(id: 64738, name: "foo"); Oh, I love that syntax ;) Ron -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-31 Thread Ron Korving
But why doesn't work? If that'd work, I just might start using Ron "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Paul Reinheimer wrote: > > My prefrerence would be for the interpreter to look for " > short tags is enabled (that was brace, question mark, white sp

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-31 Thread Ron Korving
Can't help it... ;) By the way, I thought all programmers were lazy to some extent? Seriously though, I think it would be nice and consistent if it would work. I just really like the short wrote in message news:[EMAIL PROTECTED] Why do you find the need to be lazy and use lol j/k i always use

[PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-31 Thread Ron Korving
It's unclear to me what the position of the big kahuna's is on the following issues, but I hope they can become a reality in PHP6: 1) named parameters. in user functions, but also in core functions: $result = in_array(needle: "foo", haystack: $array); 2) error reporting using exceptions. I would

[PHP-DEV] Re: Real properties in PHP

2005-08-31 Thread Ron Korving
I very much like your idea and syntax. I come from a Delphi background (when it comes to properties) and I must say I like your solution. It's easy and effective. Yes, it can be done with __set() and __get(), but it sure is uglier when you have a wide and constant range of properties. +1 (with 0 k

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-08-31 Thread Ron Korving
>> like a much better idea to me then trying to expand upon it. > >> > >> Cheers, > >> > >> John > >> > >> On Wed, 2005-08-31 at 15:23 +0200, Ron Korving wrote: > >> > Can't help it... ;) By the way, I thought a

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-31 Thread Ron Korving
"Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Ron, > > Wednesday, August 31, 2005, 3:37:51 PM, you wrote: > > > 2) error reporting using exceptions. > > I would like it if I could catch PHP-errors and take appropriate action > > (such as logging it to a datab

Re: [PHP-DEV] Re: PHP 6.0 Wishlist

2005-08-31 Thread Ron Korving
Hi, > >> > 2) error reporting using exceptions. > >> > I would like it if I could catch PHP-errors and take appropriate action > >> > (such as logging it to a database or whatever). > >> > >> You can already do that with 5.1 by adding three lines of code. > > > Sounds awesome.. is this documented

[PHP-DEV] Re: E_NOTICE/E_STRICT/E_WARNING thrown on bad arrays initialization?

2005-09-04 Thread Ron Korving
I agree. I've always found it weird that no notice is thrown in this situation. Still I discourage people to code like this. Ron "Etienne Kneuss" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > As you surely know, arrays are often badly initialized: > > // $array is undefi

[PHP-DEV] Re: crc32

2005-09-05 Thread Ron Korving
Wouldn't it be more practical to implement these as stream filters? Ron "Wojtek Meler" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > I've patched original crc32 PHP function to allow incremental crc32 > counting. > It touches only a few lines of original code. > New crc32 funct

[PHP-DEV] Re: crc32

2005-09-06 Thread Ron Korving
in bericht news:[EMAIL PROTECTED] > Ron Korving wrote: > > Wouldn't it be more practical to implement these as stream filters? > > Sure - I was not aware PHP5 streams - I'm still using PHP4 > string.base64 is good choice. But I'm not sure if crc fit to streams. > You

[PHP-DEV] references in arrays

2005-09-15 Thread Ron Korving
Hi, For performance' sake, I have to know if this is true: Is it the case that when I do this: array(0,1,2), "two" => array(4,5,6)); $one = $array["one"]; ?> That $one is not a copy, but a reference to $array["one"] and will only become a copy when I alter the contents of $one? I know this i

Re: [PHP-DEV] Reference handling change and PHP 4.4.0

2005-09-15 Thread Ron Korving
> Yes it is legal because it worked That's nonsense. Even in the C-language certain things have worked in the past because of compiler bugs. Newer GCC versions have fixed it and broken C-code. Too bad for the users, but it improved the compiler's C-compliance. Something might work, but that doesn'

Re: [PHP-DEV] references in arrays

2005-09-15 Thread Ron Korving
Perfect :) I've been doing it wrong all the time, thinking I was improving performance. It's good to know how things really work under the hood. Thanks, Ron "Zeev Suraski" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > At 13:35 15/09/2005, Ron Kor

Re: [PHP-DEV] Re: Bogusing bot (Was: [PHP-DEV] Reference handlingchangeandPHP 4.4.0)

2005-09-15 Thread Ron Korving
Yeah, it's awesome. I heard there's even a number of kids in Finland who can speak, read and write Finnish. Awesome! ;) Ron "Oliver Grätz" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Jani Taskinen schrieb: > > 10 seconds? Sheesh. If english was my native language, maybe

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-09-15 Thread Ron Korving
"Mike Bretz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Also an useful feature would be "const" on function parameters. Hmm, I like that ;) That may even provide a performance increasing opportunity... I have another idea I came up with today: regular expression switches, but i

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-09-15 Thread Ron Korving
ot;regcase" either and it's quite a diversion from the known syntax. Ron "Hartmut Holzgraefe" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Ron Korving wrote: > > I have another idea I came up with today: regular expression switches, but > > it

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-09-15 Thread Ron Korving
case (preg_match('/^[0-9]+$/i', $str)): > echo "it was a number!\n"; > break; > default: > echo "it was no number :-(\n"; > break; > } > > *shrug* > > -james &g

[PHP-DEV] quite a big bug in DOM

2005-09-16 Thread Ron Korving
;foo bar'); echo "'".$doc->getElementsByTagName('body')->item(0)->textContent."'\n"; ?> Output: ' ' 'foo bar' Where the heck do these 'Â's come from when it parses an   ? I hope anyone can shed some light on the next step to be taken in order to fix this. Thanks, Ron Korving -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: quite a big bug in DOM

2005-09-16 Thread Ron Korving
problem, but they output other bad characters. I've tried playing with a in the HTML-data while changing the characterset, but nothing changed. Ron ""Ron Korving"" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hi, > > I found a bug in DOM. I

Re: [PHP-DEV] quite a big bug in DOM

2005-09-16 Thread Ron Korving
Damn.. I feel stupid now... Sorry guys. Is it normal for DOM to output everything in UTF8 without an ability to influence this? I figured that it wouldn't be a UTF8 problem because it outputs 2 bytes, and I thought UTF8 was just 1 byte (hence the name UTF8). Guess I was wrong. Sorry again, I reall

Re: [PHP-DEV] quite a big bug in DOM

2005-09-16 Thread Ron Korving
""messju mohr"" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] A thank you to you as well. In general: By the way, wouldn't it be time for trim() to start trimming off ascii characters 160 too since that's what   represents? It's no biggy, but maybe something to consider. Ron --

[PHP-DEV] big reference bug in (at least) PHP 5.0.5

2005-09-16 Thread Ron Korving
foreach() is obviously buggy. With this foreach it works just fine: foreach ($array as $i => $item) $array[$i]["bar"] = $item["foo"] * 2; I fear this bug is not just present in PHP 5.0.5, but in older versions too. Ron Korving -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP 6.0 Wishlist

2005-09-16 Thread Ron Korving
ECTED] > This one time, at band camp, "Ron Korving" <[EMAIL PROTECTED]> wrote: > > > The problem with this would be that it can't be decided on a per-case basis, > > but only for the whole switch, which would make the execution slower. That's > >

Re: [PHP-DEV] big reference bug in (at least) PHP 5.0.5

2005-09-16 Thread Ron Korving
every item, because within this foreach() the $foo's should overwrite eachother with your logic. Ron "Antony Dovgal" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > On 16.09.2005 16:29, Ron Korving wrote: > > My apologies for my DOM-mistake today, but

Re: [PHP-DEV] big reference bug in (at least) PHP 5.0.5

2005-09-16 Thread Ron Korving
Good point. I think it's somehow undesired behavior, but what can one do to change this? I guess it somehow is desired behavior... My bad I guess, Ron "Matthew Charles Kavanagh" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Ron Korving wrote: > >

[PHP-DEV] PDO questions

2005-09-22 Thread Ron Korving
After reading the php|architect article on PDO by Ilia I have a couple of questions: 1) Does unsetting $stmt trigger a closeCursor() as well? I assume so, but the article doesn't mention it. It only talks about the importance of calling that method. 2) Could it be a good idea (performance wise) an

[PHP-DEV] Re: PDO questions

2005-09-22 Thread Ron Korving
> Ron Korving wrote: > > > 1) Does unsetting $stmt trigger a closeCursor() as well? I assume so, but > > the article doesn't mention it. It only talks about the importance of > > calling that method. > > yes this is done automatically .. Great :) > > 2)

[PHP-DEV] Re: [PATCH] __toString()

2005-09-25 Thread Ron Korving
Marcus, you are my hero :) Will it end up in 5.1? Ron "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello internals, > > the patch implements __toString to have obejcts be automatically converted > to strings anywhere a string is requested. We have talked a lot

Re: [PHP-DEV] Re: [PATCH] __toString()

2005-09-25 Thread Ron Korving
I knew I had forgotten something ;) Ron "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Ron, > > no, we declined it for 5.1 becasue it was to late in release process > when we (i) rememebred itso blame me for not having it in 5.1, or blame > yourself for

Re: [PHP-DEV] timezones & date() breakage

2005-09-28 Thread Ron Korving
> Again and for the record in this thread, I told you and here many > times, the only safe way is to develop the new features in a separate > code base (ext/date was planned to be used for this exact purpose > before you decided to move your code there). A separate code base is > the only way to ke

Re: [PHP-DEV] timezones & date() breakage

2005-09-28 Thread Ron Korving
Well, if PHP integers are turned into int64 datatypes, there'd be more room to operate for dates (I read in Derick's PDF that 2^31 presents problems, and therefor abstraction by an object class helps out). Then an OO datatype for dates wouldn't be needed. But on the other hand, I can't say I'd min

Re: [PHP-DEV] timezones & date() breakage

2005-09-28 Thread Ron Korving
Stanislav, You are absolutely right. date() has always worked just fine and 100% reliable. Maybe it wasn't suitable for certain applications, but for others it has been very suitable. If it is decided that the date extension will be replaced by new behavior and will break older applications, I thi

Re: [PHP-DEV] Comment on Bug #30153: FATAL erealloc() error whenusing gzinflate()

2005-10-04 Thread Ron Korving
Tim, I'm no core PHP developer (just a user) but I'm pretty convinced that there's nothing that can be done to solve this from PHP. PHP just passes bytes to the zlib functions (which are implemented by the zlib guys). If one of these functions causes a segfault, there's really nothing you can do.

Re: [PHP-DEV] Comment on Bug #30153: FATAL erealloc() error whenusinggzinflate()

2005-10-04 Thread Ron Korving
> handle the error. While I have not dug into the PHP code, I don't > understand why the technique used to cap memory usage at the script > level can't be used to detect a problem in zlib Perhaps passing a > max memory usage parameter to gzinflate that is lower that the script

[PHP-DEV] CLI in PHP6

2005-10-06 Thread Ron Korving
nstability (for lack of a better word) comes from, but could it be possible for this to be resolved for PHP6 so that PHP becomes an extremely viable solution for CLI daemon scripts? Thanks, Ron Korving -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: CLI in PHP6

2005-10-06 Thread Ron Korving
I've had PHP scripts die after weeks or months on Linux without an obvious reason, and honestly I'm a little bit puzzled on how to debug the situation. Any suggestions? Ron "James Aylett" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > On Thu, Oct 06, 2005 at 12:33:16PM +0200, Pe

Re: [PHP-DEV] CLI in PHP6

2005-10-06 Thread Ron Korving
ons a day with our PHP-based daemons. We chose to try using PHP to share business logic and it paid off. -- Allen -Original Message- From: Ron Korving [mailto:[EMAIL PROTECTED] Sent: Thursday, October 06, 2005 2:49 AM To: internals@lists.php.net Subject: [PHP-DEV] CLI in PHP6 Hi, There was o

Re: [PHP-DEV] Re: CLI in PHP6

2005-10-06 Thread Ron Korving
That would be nice. If all memory, even the stuff allocated by functions, is freed at the end of the request, I can see where the problem is. It would be very useful if this memory really would be freed at the moment all references to it disappear. This would be a lot better for the CLI environment

Re: [PHP-DEV] Unicode Implementation

2005-10-13 Thread Ron Korving
Well, if you want my 2 cents as well, the 2 cents a PHP user is very willing to share with you guys... PHP6 is a major release. BC is a priority, but as far as I'm concerned not the top priority. I wouldn't mind a unicode-only PHP at all. Like a few others here, I think the speed penalty won't be

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-30 Thread Ron Korving
I'm a big fan of coalesce($param1, $param2, ..., $paramN) (or firstset()). The syntax allows for more than what ifsetor($var, $value) would do. Ifsetor() could be done in userspace, but I don't see how coalesce() could, because of the variable number of parameters. Ron "Sean Coates" <[EMAIL PROT

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-30 Thread Ron Korving
Marcus, my point was that this simple function: function ifsetor(&$var, $value) { return (isset($var)) ? $var : $value; } can be done in userspace, and that a coalesce() like function will have the added benefit of a variable number of parameters, which as far as I know, cannot be done

Re: [PHP-DEV] what happened to that new isset() like language

2005-10-30 Thread Ron Korving
mind this whole ifsetor() in userspace issue, because it's not applicable anyway, but just for the record, this function does not generate an E_NOTICE. Ron "Jasper Bryant-Greene" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sun, 2005-10-30 at 09:52 +010

[PHP-DEV] Re: Array_merge, safety and race condition?

2005-11-13 Thread Ron Korving
Now I'm no core developer, but I think what you fear is impossible. If I'm not mistaken: array_merge() will write it's result to a piece of data and when it's finished, it will make $array1 point to it, as I expect this to work in every function that returns something. Ron "Ezra Nugroho" <[EM

[PHP-DEV] results of the PHP6 wishlists

2005-11-14 Thread Ron Korving
I was wondering; we've seen quite a few PHP6 wishlists passing by here. Is there (and if not: should there be) a centralized spot where changes and new features are logged, perhaps with a status saying whether somebody (and who) is working on this, or if it's still being considered, or if it has

Re: [PHP-DEV] PHP 5.1.0 - sha256() and sha256_file() support

2005-11-16 Thread Ron Korving
I just read this news that an MD5 collision can now be done by anyone in 45 minutes (avg) on a P4 1.6 GHz: http://it.slashdot.org/article.pl?sid=05/11/15/2037232&threshold=-1&tid=172&tid=93&tid=228 http://www.stachliu.com.nyud.net:8090/collisions.html MD5 as the standard for hashing is definately

Re: [PHP-DEV] PHP 5.1.0 - sha256() and sha256_file() support

2005-11-16 Thread Ron Korving
"Ilia Alshanetsky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ron Korving wrote: > > I just read this news that an MD5 collision can now be done by anyone in 45 > > minutes (avg) on a P4 1.6 GHz: > > http://it.slashdot.org/article.pl?sid=

[PHP-DEV] a performance question

2005-11-17 Thread Ron Korving
If anybody should know this for certain, it's core developers, hence my question here. I'm curious if type certainty requires an extra check, or a check less. Which of these is faster? if ($str === 'abc') { } if ($str == 'abc') { } I expect the triple '=' to be faster, but I'd like to be sure.

Re: [PHP-DEV] dropping curly braces

2005-11-18 Thread Ron Korving
I hear a lot of opinions here on the curly braces issue, and while I don't use them, they're not in the way. I'd say let's keep them in. > > As far a code readability and obviousness goes, I doubt anybody would > > guess their way to the $str{5} syntax. If you were new to > > PHP and you > > we

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Ron Korving
> On 11/25/05, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: > > Does this include anytime a new function/class is added we need to make > > a prominent notice about since it reserves some name space? > Yes of course, especially if it's such an obvious name like "date". I disagree strongly. Date is

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-25 Thread Ron Korving
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jessie Hernandez wrote: > > Hi Marcus, > > > > Marcus Boerger wrote: > >> Hello Jessie, > >> > >> that's only one case,go with consts. now try > >> $x = $y ? foo:bar:baz:stupid; > >> > >> now what? > >> > >> best rega

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps out there)

2005-11-26 Thread Ron Korving
"Jessie Hernandez" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bob Silva wrote: > >>$x = $y ? foo:bar:baz:stupid; > > > > > > I think "stupid" is the key word here, by forcing the whitespace or (), you > > are making the language itself stupid by not knowing how to parse itself.

Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps outthere)

2005-11-26 Thread Ron Korving
> Speaking of this, I like Greg's suggestion about prefixing all internal > classes with PHP_. While there are certainly classes out there that are > prefixed with it, we could tell developers that starting with e.g. PHP 6 > the PHP_* class scope is reserved for the language core and must not be >

Re: [PHP-DEV] namespace separator poll, update

2005-11-28 Thread Ron Korving
wow, I like foo~>bar~>obj->method() I love ':' best, but if that really can't be, I must say '~>' looks pretty cool to me, cute even, like a little fishie ;) anywaaay.. the best alternative to ':' i've seen so far, and i doubt it'll cause problems with any existing operator. - ron ""Ford, Mi

[PHP-DEV] Re: Labeled Breaks (not the G-word))

2005-11-28 Thread Ron Korving
Well, at least now we know that 'goto' is the way to go: http://developers.slashdot.org/developers/05/11/28/1257216.shtml?tid=156&tid=218 j/k of course :) Ron -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   >