Re: [PHP-DEV] While-else

2007-05-03 Thread Ron Korving
It can save you one if-statement, where the condition would be identical to the where condition. Example: if ($i = 10) { while ($i = 10) { $i++; } } else { echo $i is more than 10\n; } I personally hate overspecifications, and this is one situation where that's the case. So

Re: [PHP-DEV] While-else

2007-05-03 Thread Andrew Brampton
- Original Message - On Sat, April 28, 2007 1:03 pm, Pelle Ravn Rosfeldt wrote: Is it possible to make a while with a else-statement in PHP6? I know that it's not the first time this subject is up, but my research shows that a lot of people miss it. Including me. Here's an example of

Re: [PHP-DEV] Trying to understand PHP6's unicode support

2007-05-03 Thread Alexey Zakhlestin
php6 always handles all internal work in utf-8 But, from what I remember, there should be a way to specify encoding in which you expect data to arrive (in this example from mysql_*) I think, that someone who knows more will give you more details On 5/3/07, Rangel Reale [EMAIL PROTECTED] wrote:

Re: [PHP-DEV] Trying to understand PHP6's unicode support

2007-05-03 Thread Derick Rethans
On Thu, 3 May 2007, Alexey Zakhlestin wrote: php6 always handles all internal work in utf-8 No, it is UTF-16 internally. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] How to find a bug: is_link troubles

2007-05-03 Thread Tijnema !
On 5/2/07, Arnold Daniels [EMAIL PROTECTED] wrote: Hi, I've got a bug with is_link and lstats. Any symlinks not created in the current session, will not be read. This only occurs in the Apache 2 SAPI version, not in the CLI version. Script: ? $symlink = '/tmp/link-test'; if

Re: [PHP-DEV] Re: Help with the snaps site

2007-05-03 Thread Tijnema !
On 5/2/07, Edin Kadribasic [EMAIL PROTECTED] wrote: Jan Reininghaus wrote: I would like to suggest a redesign of the page. In my opinion the page is too complex, so for example I find it a bit hard to match the information for the next snapshots in the left of the page with the snapshots

Re: [PHP-DEV] Re: Help with the snaps site

2007-05-03 Thread Richard Quadling
How about something along these lines ... (Not pretty as I'm crap at the design - sorry). http://rquadling.php1h.com/snap.html Use icons for the labels (BZ2, GZ, ZIP, PECL, INST, COMP, SNAP). The logs for failed builds could also be included. Richard. On 03/05/07, Tijnema ! [EMAIL

Re: [PHP-DEV] Trying to understand PHP6's unicode support

2007-05-03 Thread Rangel Reale
Hmm ok, so what does the parameter unicode.runtime_encoding = iso-8859-1 do? This means that, when unicode.semantics = on, internally everything is utf-16, event text read from iso-8859-1 script files and database data, so if I want to return iso-8859-1 data, I need to set

Re: [PHP-DEV] Trying to understand PHP6's unicode support

2007-05-03 Thread Tomas Kuliavas
Hello! I am trying to understand how PHP6 handling of unicode works, I think I am missing something. My config is: ; Unicode settings ; unicode.semantics = on unicode.runtime_encoding = iso-8859-1 unicode.script_encoding = iso-8859-1

Re: [PHP-DEV] Trying to understand PHP6's unicode support

2007-05-03 Thread Tijnema !
On 5/3/07, Rangel Reale [EMAIL PROTECTED] wrote: Hmm ok, so what does the parameter unicode.runtime_encoding = iso-8859-1 do? This means that, when unicode.semantics = on, internally everything is utf-16, event text read from iso-8859-1 script files and database data, so if I want to return

Re: [PHP-DEV] Re: Help with the snaps site

2007-05-03 Thread Michael Wallner
Richard Quadling wrote: How about something along these lines ... (Not pretty as I'm crap at the design - sorry). http://rquadling.php1h.com/snap.html Eeek! ;) -- Michael -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] While-else

2007-05-03 Thread Sean Bright
This fails the Make PHP code easier to read test I think. But it passes the I'm a lazy programmer test with flying colors! ;-) I mean seriously, what real value does this add to the language? Its just syntactic sugar to save yourself a few keystrokes. On 5/3/07, Andrew Brampton [EMAIL

[PHP-DEV] CVS Account Request: siml

2007-05-03 Thread Tretter Simon
submitting a patch for a php extension in pecl tree (spread) i made a patch for php5.2 and spread 4.0 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] CVS Account Request: siml

2007-05-03 Thread Tijnema !
On 5/3/07, Tretter Simon [EMAIL PROTECTED] wrote: submitting a patch for a php extension in pecl tree (spread) i made a patch for php5.2 and spread 4.0 You don't need a CVS account for submitting one patch, send it to this list and someone will submit the patch. Tijnema -- PHP Internals -

Re: [PHP-DEV] CVS Account Request: siml

2007-05-03 Thread Antony Dovgal
On 05/03/2007 05:24 PM, Tretter Simon wrote: submitting a patch for a php extension in pecl tree (spread) i made a patch for php5.2 and spread 4.0 CVS account is not required to submit a patch. You can send it to [EMAIL PROTECTED] and CC spread maintainers. --- Wbr, Antony Dovgal -- PHP

Re: [PHP-DEV] Trying to understand PHP6's unicode support

2007-05-03 Thread Stanislav Malyshev
Hmm ok, so what does the parameter unicode.runtime_encoding = iso-8859-1 do? IIRC runtime_encoding is used to translate Unicode strings (UTF-16) to plain strings if some internal function accepts only plain strings. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED]

[PHP-DEV] CVS Account Request: siml

2007-05-03 Thread Tijnema !
Forwarding to the list... Tijnema -- Forwarded message -- From: Simon tretter [EMAIL PROTECTED] Hy, i've attached my patch, it's not perfect and it's not complete.. the codebase is a little bit awful and my code isn't much better ;), however - now it works with php 5.2.1 and

Re: [PHP-DEV] CVS Account Request: siml

2007-05-03 Thread David Coallier
On 5/3/07, Tijnema ! [EMAIL PROTECTED] wrote: Forwarding to the list... Tijnema -- Forwarded message -- From: Simon tretter [EMAIL PROTECTED] Hy, i've attached my patch, it's not perfect and it's not complete.. the codebase is a little bit awful and my code isn't much better

Re: [PHP-DEV] CVS Account Request: siml

2007-05-03 Thread Tijnema !
Ok, forwarding to the pecl-dev list now Tijnema On 5/3/07, David Coallier [EMAIL PROTECTED] wrote: On 5/3/07, Tijnema ! [EMAIL PROTECTED] wrote: Forwarding to the list... Tijnema -- Forwarded message -- From: Simon tretter [EMAIL PROTECTED] Hy, i've attached my

Re: [PHP-DEV] CVS Account Request: siml

2007-05-03 Thread Pierre
On 5/3/07, Tretter Simon [EMAIL PROTECTED] wrote: submitting a patch for a php extension in pecl tree (spread) i made a patch for php5.2 and spread 4.0 What you did is the right thing, submit a bug report and wait a bit until one (in this case, it will certainly be me) answer. Further

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-05-03 Thread Jingcheng Zhang
Hi, In this way, classes can be considered as polymorphism, just like objects. So is it OK to allow abstract static function in abstract class to support this feature directory? Currently it is forbidden in HEAD, only interfaces can have static function. Thanks 2007/4/27, Etienne Kneuss [EMAIL

Re: [PHP-DEV] While-else

2007-05-03 Thread Robin Vickery
On 28/04/07, Pelle Ravn Rosfeldt [EMAIL PROTECTED] wrote: Hi there. Is it possible to make a while with a else-statement in PHP6? I know that it's not the first time this subject is up, but my research shows that a lot of people miss it. Including me. Here's an example of what I mean:

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-05-03 Thread Stanislav Malyshev
I've already proposed that 1-2 months ago, but now seems to be a good time to discuss new things, so let's try again: I believe it would be nice to be able to dynamically reference static members, constants, and methods. Currently, there is no way to do that and the only way would be to create

Re: [PHP-DEV] CVS Account Request: siml

2007-05-03 Thread Simon tretter
Hy, i've attached my patch, it's not perfect and it's not complete.. the codebase is a little bit awful and my code isn't much better ;) , however - now it works with php 5.2.1 and spread 4.0. (only worked on connecting + sending spread messages, the rest of the code i didn't touched, so i

Re: [PHP-DEV] Trying to understand PHP6's unicode support

2007-05-03 Thread Johannes Schlüter
On Thu, 2007-05-03 at 14:29 +0300, Tomas Kuliavas wrote: I think you are confusing PHP features with MySQL features. By running 'SET NAMES' query you set client, connection and result character sets in MySQL (see http://dev.mysql.com/doc/refman/4.1/en/charset.html). It is not related to PHP.

Re: [PHP-DEV] While-else

2007-05-03 Thread Richard Lynch
On Thu, May 3, 2007 2:34 am, Andrew Brampton wrote: - Original Message - On Sat, April 28, 2007 1:03 pm, Pelle Ravn Rosfeldt wrote: Is it possible to make a while with a else-statement in PHP6? I know that it's not the first time this subject is up, but my research shows that a lot

Re: [PHP-DEV] [patch] Dynamic access of static members/methods, and constants

2007-05-03 Thread Etienne Kneuss
Hi, Stanislav Malyshev wrote: Could you describe a couple of use cases where you would use such things (i.e. in real world scripts/libraries)? Sure, let's take an example: You have a library that uses a factory pattern, but you'd like to cache those already generated objects in a static

Re: [PHP-DEV] While-else

2007-05-03 Thread Oliver Block
Am Donnerstag, 3. Mai 2007 09:34 schrieb Andrew Brampton: I have wanted to use this kind of syntax a couple of times, for example: ?php while ($line = mysql_fetch_array(...)) { echo $line; } else { echo 'Sorry no records'; } ? This example leaves me speechless.:) Regard, Oliver

Re: [PHP-DEV] Re: Help with the snaps site

2007-05-03 Thread Jan Reininghaus
Edin Kadribasic schrieb: The page is a bit confusing and I didn't want too much new stuff to it without thinking about it first. Your suggestion is promising, but it might be a bit too wide for people that have smaller screen resolutions. I think we need to make it look good at 1024x768. Yes,