Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)

2004-07-12 Thread Marcus Boerger
Hello Andi, wow i didn't remember seeing that. So with default being a reserved word to me it seems like one of the best choices. Monday, July 12, 2004, 10:01:47 PM, you wrote: > It's a reserved word so I doubt it'll break scripts. > Andi > At 05:37 PM 7/12/2004 +0200, Marcus Boerger wro

Re: [PHP-DEV] PHP 5.0.0 Test roll

2004-07-12 Thread Benj Carson
The file_get_contents() bug still seems to be present in the test roll, but not in the latest snap: Reproduce code (from the bug report for 29099): -- #!/usr/bin/php http://www.php.net/";); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $str1 = curl_exec($ch); curl_close($ch); $str

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

2004-07-12 Thread Jochem Maas
Adam Maccabee Trachtenberg wrote: On Thu, 8 Jul 2004, Marc Richards wrote: Are you saying PHP will never introduce an operator that doesn't already exist in a large number of other languages? I certainly hope not. (Well, I guess === and !=== are exceptions to this statement.) Compound Ternary op

Re: [PHP-DEV] PHP 5.0.0 Test roll

2004-07-12 Thread Derrell . Lipman
Andi Gutmans <[EMAIL PROTECTED]> writes: > I did a test roll of PHP 5.0.0 (without version change). Please download and > make sure there are no serious show stoppers. You can grab it at > http://snaps.php.net/~andi/ 5.0.0 Test Roll is working fine for me, including the sqlite 2.8.14 upgrade. Th

Re: [PHP-DEV] New construct discussion Summary

2004-07-12 Thread Adam Maccabee Trachtenberg
On Mon, 12 Jul 2004, John Coggeshall wrote: > Not to bust everyone's bubble here, but frankly what is the point of a > 90-100+ thread on this? I mean can't this just be implemented as a PHP > function without all this discussion? Maybe we should name the function bikeshed()? :) http://www.unixgu

Re: [PHP-DEV] New construct discussion Summary

2004-07-12 Thread John Coggeshall
Not to bust everyone's bubble here, but frankly what is the point of a 90-100+ thread on this? I mean can't this just be implemented as a PHP function without all this discussion? Coogle. -- -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=- John Coggeshall http://www

[PHP-DEV] alternative syntax for do...while

2004-07-12 Thread Marc Richards
I guess this is too late for 5.0, and I feel like there is bound to be opposition, but this has been bugging me for a while, so I figured I would ask. I use the alternative syntax for control structures almost exclusively within my HTML code but I have to revert to braces for do...while. Why c

Re: [PHP-DEV] New construct discussion Summary

2004-07-12 Thread Marc Richards
Marc Richards wrote: I also think that what Rasmus suggeted is a good idea: "So, perhaps introduce the value() function which doesn't do any type casting and enhance the intval(), strval() and floatval() functions to act like value() but cast appropriately unless the default arg is returned." I

Re: [PHP-DEV] New construct discussion Summary

2004-07-12 Thread Marc Richards
Jason Garber wrote: MR> $level = value($_POST['level'], NULL, INT); MR> switch($level){ MR> case 0: MR> echo "Welcome to level 0"; MR> break; MR> case 1: MR> echo "Welcome to level 1"; MR> break; MR> case 2: MR> echo "Welcome to level 2"; MR> break; MR> default: MR> echo "

Re: [PHP-DEV] New construct discussion Summary

2004-07-12 Thread Curt Zirzow
* Thus wrote Rasmus Lerdorf: > > So, perhaps introduce the value() function which doesn't do any type > casting and enhance the intval(), strval() and floatval() functions to act > like value() but cast appropriately unless the default arg is returned. > To retain backward compatibility the intval

Re: [PHP-DEV] New construct discussion Summary

2004-07-12 Thread Jason Garber
MR> $level = value($_POST['level'], NULL, INT); MR> switch($level){ MR> case 0: MR> echo "Welcome to level 0"; MR> break; MR> case 1: MR> echo "Welcome to level 1"; MR> break; MR> case 2: MR> echo "Welcome to level 2"; MR> break; MR> default: MR> echo "That level is in

Re: [PHP-DEV] New construct discussion Summary

2004-07-12 Thread Marc Richards
Jason Garber wrote: Sunday, July 11, 2004, 10:48:06 PM, you wrote: RL> On Sun, 11 Jul 2004, Jason Garber wrote: The concept is desirable, but can be achieved if you need it just as simply using already available syntax (ie a cast): $level = (integer) value($_SESSION['level'], 1); RL> The problem

[PHP-DEV] PHP 5.0.0 Test roll

2004-07-12 Thread Andi Gutmans
I did a test roll of PHP 5.0.0 (without version change). Please download and make sure there are no serious show stoppers. You can grab it at http://snaps.php.net/~andi/ Edin, it might be a good idea for you to roll a test package too. If all goes well, I'll do version changes and will roll the r

Re: [PHP-DEV] Re: Memory manager

2004-07-12 Thread Wez Furlong
There was a bugfix that wasn't merged from the 4.3 branch. Fixed in CVS now. --Wez. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Memory manager

2004-07-12 Thread dv
> More info please... how big is a "certain size"? for me, the "certain size" is right at 12kb. 12,000 bytes es ok; 12,001 no es ok. i would trace/step if i knew how. > How about running "strace -e trace=net" ? > Even better, can you sit down and step through and find out where the > read is bei

Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)

2004-07-12 Thread Andi Gutmans
It's a reserved word so I doubt it'll break scripts. Andi At 05:37 PM 7/12/2004 +0200, Marcus Boerger wrote: Hello Derick, Monday, July 12, 2004, 11:21:06 AM, you wrote: > On Mon, 12 Jul 2004, Sebastian Bergmann wrote: >> Andi Gutmans wrote: >> > How about default($var, expr)? >> >> It might be a

Re: [PHP-DEV] Re: Memory manager

2004-07-12 Thread Wez Furlong
More info please... how big is a "certain size"? How about running "strace -e trace=net" ? Even better, can you sit down and step through and find out where the read is being cut short? The thing is that file_get_contents() should not have been sensitive to the greedy read problem (since it reads

Re: [PHP-DEV] Re: Memory manager

2004-07-12 Thread Red Wingate
works fine with the latest CVS-Snap for me php5-win32-200407121430.zip Win2K Apache2 -- red Curt Zirzow wrote: * Thus wrote Antony Dovgal: On Mon, 12 Jul 2004 15:00:09 + Curt Zirzow <[EMAIL PROTECTED]> wrote: * Thus wrote Andi Gutmans: When did you try that? Did you check with latest CVS beca

Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)

2004-07-12 Thread Marcus Boerger
Hello George, Monday, July 12, 2004, 6:36:22 PM, you wrote: > On Jul 12, 2004, at 11:37 AM, Marcus Boerger wrote: >> Hello Derick, >> >> Monday, July 12, 2004, 11:21:06 AM, you wrote: >> >>> Agreed, and I also like default() >> >> The problem with default() is that there will be tons of scripts

Re: [PHP-DEV] Re: Memory manager

2004-07-12 Thread Curt Zirzow
* Thus wrote Antony Dovgal: > On Mon, 12 Jul 2004 15:00:09 + > Curt Zirzow <[EMAIL PROTECTED]> wrote: > > > * Thus wrote Andi Gutmans: > > > When did you try that? Did you check with latest CVS because Wez > > > made some fixes. > > > > Just rechecked with current CVS version this morning and

[PHP-DEV] Periodic table of operators

2004-07-12 Thread Andrei Zmievski
Let's not end up like this. http://www.ozonehouse.com/mark/blog/code/PeriodicTable.pdf - Andrei -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)

2004-07-12 Thread Jason Garber
>> >> The problem with default() is that there will be tons of scripts out >> there >> that will be broken by this. Hence i'd like to see a more non intuitive >> name (like the ifsetor). Probably getvalue() was the best compromise so >> far. GS> what was wrong with nvl() (of oracle fame)? ifset(

Re: [PHP-DEV] issue in copying the hash table(Reposted third time)

2004-07-12 Thread Andi Gutmans
Weird, maybe the commit failed. I just commited it again. At 01:25 AM 7/12/2004 -0700, Kamesh Jayachandran wrote: I could not see the patch yet. With regards Kamesh Jayachandran On Sun, 11 Jul 2004 23:26:54 -0700, "Andi Gutmans" <[EMAIL PROTECTED]> said: > You seem to be right. I commited a patch.

Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)

2004-07-12 Thread George Schlossnagle
On Jul 12, 2004, at 11:37 AM, Marcus Boerger wrote: Hello Derick, Monday, July 12, 2004, 11:21:06 AM, you wrote: Agreed, and I also like default() The problem with default() is that there will be tons of scripts out there that will be broken by this. Hence i'd like to see a more non intuitive name

Re: [PHP-DEV] Re: Memory manager

2004-07-12 Thread dv
it's broken for me too using latest snap: php5-win32-200407121430 file_get_contents('http://php.net/'); > On Mon, 12 Jul 2004 15:00:09 + > Curt Zirzow <[EMAIL PROTECTED]> wrote: > >> * Thus wrote Andi Gutmans: >> > When did you try that? Did you check with latest CVS because Wez >> > made som

Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)

2004-07-12 Thread Marcus Boerger
Hello Derick, Monday, July 12, 2004, 11:21:06 AM, you wrote: > On Mon, 12 Jul 2004, Sebastian Bergmann wrote: >> Andi Gutmans wrote: >> > How about default($var, expr)? >> >> It might be a good idea to decide on a name for the construct before >> the PHP 5.0.0 release in order to make it a r

Re: [PHP-DEV] Re: Memory manager

2004-07-12 Thread Antony Dovgal
On Mon, 12 Jul 2004 15:00:09 + Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Andi Gutmans: > > When did you try that? Did you check with latest CVS because Wez > > made some fixes. > > Just rechecked with current CVS version this morning and the > problem still persists. > > Not only

Re: [PHP-DEV] Re: Memory manager

2004-07-12 Thread Curt Zirzow
* Thus wrote Andi Gutmans: > When did you try that? Did you check with latest CVS because Wez made some > fixes. Just rechecked with current CVS version this morning and the problem still persists. Not only is it comming back with partial content, there seems to be blocks of ^@ chars between the

[PHP-DEV] Re: New construct discussion Summary

2004-07-12 Thread Bert Slagter
Marc Richards wrote: 3) So this leaves a function call which begs two questions: What do we call it, and what is the function syntax. (a) What do we call it We have a function that pretty much serves the same purpose: makeset($var, 'default'). The name was born because this function was made to

Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)

2004-07-12 Thread Derick Rethans
On Mon, 12 Jul 2004, l0t3k wrote: > > "Andi Gutmans" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > How about default($var, expr)? > my only reservation is that "default" is already part of a language > construct : ... > i'd say use defaultvalue Too long IMO. Derick -- PHP

Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)

2004-07-12 Thread l0t3k
"Andi Gutmans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How about default($var, expr)? my only reservation is that "default" is already part of a language construct : switch ($param = $_GET["param"]) { case "foo" : bar(); break; case "this" : that();

[PHP-DEV] Re: [PHP-DOC] cvs: phpdoc /en/reference/zlib ini.xml reference.xml /en/reference/zlib/functions gzclose.xml gzcompress.xml gzdeflate.xml gzencode.xml

2004-07-12 Thread Marco Cucinato
On Mon, 12 Jul 2004, Derick Rethans wrote: > You should *never* do that, always use cvs diff + patch + cvs commit to > revert changes. "cvs admin" is dangerous and should only be used if you > are REALLY sure what you are doing. Ok, sorry. -- PHP Internals - PHP Runtime Development Mailing Lis

[PHP-DEV] Re: [PHP-DOC] cvs: phpdoc /en/reference/zlib ini.xml reference.xml /en/reference/zlib/functions gzclose.xml gzcompress.xml gzdeflate.xml gzencode.xml

2004-07-12 Thread Derick Rethans
On Mon, 12 Jul 2004, Marco Cucinato wrote: > > > Whooops... dunno what happened > > > perhaps the CVS directory got copied from the EN section... > > > I'm reverting them now. > > > > I did not see the revert commit message, can you please check? > > Yes, i did a "cvs admin" and deleted the la

[PHP-DEV] CVS Account Request: tacker

2004-07-12 Thread Markus Tacker
I am maintainer of the new PEAR Package File_Formats::Bittorrent and I want to administrate the code in PHP CVS. http://pear.php.net/pepr/pepr-proposal-show.php?id=100 So access is needed to File/Bittorrent -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http:/

Re: [PHP-DEV] New construct discussion Summary (was: what happened to that new isset() like language construct)

2004-07-12 Thread Derick Rethans
On Mon, 12 Jul 2004, Sebastian Bergmann wrote: > Andi Gutmans wrote: > > How about default($var, expr)? > > It might be a good idea to decide on a name for the construct before > the PHP 5.0.0 release in order to make it a reserved word (marked for > future use). Agreed, and I also like def

Re: [PHP-DEV] SQLite weirdness

2004-07-12 Thread Derick Rethans
On Fri, 9 Jul 2004, Wez Furlong wrote: > Stas already came up with a solution for the non-oo api; it probably > just needs porting to the oo interface. It already is it seams, the execQuery() method. Though I still don't like the way how things are working :) regards, Derick -- PHP Internals -

Re: [PHP-DEV] issue in copying the hash table(Reposted third time)

2004-07-12 Thread Kamesh Jayachandran
I could not see the patch yet. With regards Kamesh Jayachandran On Sun, 11 Jul 2004 23:26:54 -0700, "Andi Gutmans" <[EMAIL PROTECTED]> said: > You seem to be right. I commited a patch. Please take a look and see if > it > solves your problems. > > At 11:02 PM 7/11/2004 -0700, Kamesh Jayachandran