Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-24 Thread Alain Williams
esting to ensure that nothing else breaks. $$ I don't want to be rude about her, so maybe I ought to use a different group of clueless people, politicians perhaps ? :-) -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-24 Thread Alain Williams
and, as others have explained, can be ambiguous, non-reversible, ... > If you wish to enforce case sensitivity in projects which you > control then go ahead. Just don't try to enforce it on everybody > else. May I suggest that you create your own fork of PHP and leave the rest of us al

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-16 Thread Alain Williams
which deals with them. Thereby increasing the complexity of the PHP engine - which means more bugs and slower execution. It also makes it harder for the user to understand: they need to get their heads round the corner cases. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-15 Thread Alain Williams
code.org/faq/casemap_charprop.html -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include -- PHP I

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-15 Thread Alain Williams
mmenting on your assertion: > >>Because the English-speaking world invented both computers and the > >>languages used to program them. > > Thus because we are English speaking we do not have a special position to dictate the development of computers and languages -- especially

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-14 Thread Alain Williams
glish man (Joseph Swan), the television by a Scott (John Logie Baird); so should the Brits and Scots be the ones that define light bulb and TV standards to suit their convenience ? -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 66

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-14 Thread Alain Williams
he many just to satisfy the few. Translation: I do not use these character sets, those who do are not important. PHP (& File systems) are best staying away from things like that. Not attempting case folding, and similar, makes it simpler, faster & more robust (not worrying about what sort o

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-14 Thread Alain Williams
tended; different browsers make different guesses and render the page differently. The user then blames browser X for getting it wrong rather than the incompetent web developer who can't be bothered to check that their markup is correct. -- Alain Williams Linux/GNU Consultant - Mail systems, Web si

Re: [PHP-DEV] [RFC][Discuss] Arrow Functions

2017-01-31 Thread Alain Williams
eloper.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Arrow_functions -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: htt

Re: [PHP-DEV] Re: Improving PHP's type system

2016-04-14 Thread Alain Williams
indrance. Type juggling is useful, but somewhere you do need to check your input. I doubt that we will agree, but we don't need to: we prob have different aims and goals. There is no reason that PHP cannot satisfy both of us. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Net

Re: [PHP-DEV] Add spaceship assignment operator

2016-03-24 Thread Alain Williams
told me some 35 years ago. We keep them because all Unixy languages have them. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://w

Re: [PHP-DEV] Add spaceship assignment operator

2016-03-24 Thread Alain Williams
ors: !=== === !== Comparison operators: === !== == != I must confess to checking the date when I first saw the proposal. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers

Re: [PHP-DEV] [RFC] Number Format Separator

2015-12-30 Thread Alain Williams
, it does improve readability. There is not a BC problem since today something like 1_000 is illegal as a constant in a program. I think that it is a good idea. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http:

Re: [PHP-DEV] RFC proposal for alternative list syntax

2015-12-27 Thread Alain Williams
as: [$b, $a] = [$a, $b]; Looked at that way (left hand of '=' only) it is not that bad. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information

Re: [PHP-DEV] PHP 5.6 life cycle

2015-12-07 Thread Alain Williams
achine together to do something and then don't want to fiddle with it (which might break applications) for as long as possible. But also they, naturally, want bug fixes. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668

Re: [PHP-DEV] [RFC] Fix the Tenary Operator -- Please!? Please?

2015-03-26 Thread Alain Williams
of languages'' that is key here. The point is that PHP associativity for ?: is different from other languages and it is that that confuses and leads to bugs. What is right/wrong is not as important as all others doing it the other way. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites

Re: [PHP-DEV] 回复: [RFC][DISCUSSION] Add preg_replace_callback_array function

2015-03-20 Thread Alain Williams
). Let see what the other think :) I used s/something/code/ge in a perl script that I wrote a few days ago. Very useful. It would have been a lot more work to do it another way. So: +1 to the ability to do this, regardless of what mechanism is eventually chosen. -- Alain Williams Linux/GNU

Re: [PHP-DEV] Consistent function names

2015-03-01 Thread Alain Williams
a new language ... or what feels like a new language. In this respect, some version of UString makes more sense, because (if well-defined) it actually gives users some advantage over the current functions. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking

Re: [PHP-DEV] [Discussion] Last chance for case-sensitive engine

2015-02-24 Thread Alain Williams
sensitivity switch +1 There will be those who just won't make changes and for who PHP9 will be a ''surprise'' - but similar happened with the removal of register globals. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256

[PHP-DEV] Broken link in PHP manual

2015-02-15 Thread Alain Williams
http://php.net/manual/en/features.gc.collecting-cycles.php has a reference ''Concurrent Cycle Collection in Reference Counted Systems'' to http://www.research.ibm.com/people/d/dfb/papers/Bacon01Concurrent.pdf The PDF is no longer there. -- Alain Williams Linux/GNU Consultant - Mail systems

Re: [PHP-DEV] [RFC] Void Return Type

2015-02-14 Thread Alain Williams
earn you about it, though. All *existing* functions have a return value. That would not change. If someone makes one of their functions void then where they use it could not be where a value is needed. So: expect it in new code; but in 5 years time that code will be mature. -- Alain Williams

Re: [PHP-DEV] [RFC] Void Return Type

2015-02-14 Thread Alain Williams
first thought. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP

Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2

2015-02-02 Thread Alain Williams
put this issue to bed. Thanks again. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include

Re: [PHP-DEV] Is it a good idea to have a strict mode?

2015-01-30 Thread Alain Williams
); }); $a = $b; That catches the use of an undefined variable $b. What I am talking about is assignment to an *undeclared* variable $baz (or $a). This is not caught by your code - PHP does not have a concept of declaring variables. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites

Re: [PHP-DEV] Is it a good idea to have a strict mode?

2015-01-30 Thread Alain Williams
for $bar -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP Internals - PHP

Re: [PHP-DEV] [RFC] Fix foreach behavior

2015-01-30 Thread Alain Williams
the following still work: foreach($_POST as $v) $v = trim($v); Otherwise - good. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http

Re: [PHP-DEV] [RFC] Combined Comparison (Spaceship) Operator

2015-01-23 Thread Alain Williams
are of different types - what does it return in that case ? FALSE ? But the same as = if the types are the same ? -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd

Re: [PHP-DEV] [RFC] Combined Comparison (Spaceship) Operator

2015-01-19 Thread Alain Williams
. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP Internals - PHP

Re: [PHP-DEV] [RFC] Combined Comparison (Spaceship) Operator

2015-01-19 Thread Alain Williams
On Mon, Jan 19, 2015 at 12:30:14PM +, Andrea Faulds wrote: Hi Alain, On 19 Jan 2015, at 11:06, Alain Williams a...@phcomp.co.uk wrote: On Mon, Jan 19, 2015 at 08:28:17AM +, Andrea Faulds wrote: The RFC is here: https://wiki.php.net/rfc/combined-comparison-operator I

Re: [PHP-DEV] [RFC] Scalar Type Hints

2015-01-02 Thread Alain Williams
there are optimisations to be made if they know that a value is really an int and not a string cleanly convertable to an int. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd

Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols

2014-12-25 Thread Alain Williams
it. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP Internals - PHP Runtime

Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols

2014-12-25 Thread Alain Williams
. also sounds very weird to me. It is bringing in complexity that is not needed. Regards -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information

Re: [PHP-DEV] [RFC] Remove deprecated functionality in PHP 7

2014-12-22 Thread Alain Williams
be a disclaimer like 'not officially endorsed by the PHP group'. That would be really useful! -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information

Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols

2014-12-22 Thread Alain Williams
- this is what I called ''US ASCII chauvinism''. See: http://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block) -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd

Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols

2014-12-22 Thread Alain Williams
On Mon, Dec 22, 2014 at 11:40:33PM -0200, guilhermebla...@gmail.com wrote: +1 for adding E_DEPRECATED and removing support in PHP 8. +1 -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk

Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols

2014-12-21 Thread Alain Williams
On Sun, Dec 21, 2014 at 04:20:13PM +1100, Pierre Joye wrote: I have hard time to see the benefits of breaking so many codes for that. Has anyone done any benchmarking on the overhead of the internal/hidden convert to lower case of function/... names ? -- Alain Williams Linux/GNU Consultant

Re: [PHP-DEV] Re: [RFC] Remove deprecated functionality in PHP 7

2014-12-21 Thread Alain Williams
with a reasonably current version of WP. But anyway, I get that not everyone agrees with removing ext/mysql - that's why we're having votes on this kind of stuff ;) Nikita -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http

Re: [PHP-DEV] [RFC] Remove deprecated functionality in PHP 7

2014-12-21 Thread Alain Williams
comes with the operating system distribution. Showing them easy ways of upgrading and staying (security) patched might help. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill

Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols

2014-12-20 Thread Alain Williams
doing. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP Internals

Re: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols

2014-12-20 Thread Alain Williams
them as case sensitive in those parts. It is a BC break, but a very unusual one in that once code is fixed in, say PHP 7, it would continue to work when copies back to a PHP 5 environment. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44

Re: [PHP-DEV] Fix incorrect ternary '?' associativity for 7.0?

2014-12-16 Thread Alain Williams
On Tue, Dec 16, 2014 at 06:48:14PM +0900, Yasuo Ohgaki wrote: Instead of polling people, how about provide a compatibility check script? This would be easy with tokenizer, I suppose. +1 -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer

[PHP-DEV] Question on Null Coalesce Operator ( ?? )

2014-12-11 Thread Alain Williams
I am updating a PHP course that I occasionally teach ... Null Coalesce Operator ( ?? ) What are the precedence and associativity ? https://wiki.php.net/rfc/isset_ternary TIA -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787

Re: [PHP-DEV] [VOTE][RFC] Unicode Codepoint Escape Syntax

2014-12-10 Thread Alain Williams
On Wed, Dec 10, 2014 at 06:59:39PM +, Andrea Faulds wrote: A possible compromise might be to let ‘\u’ through but not ‘\u{‘. +1 I can see that some people might have \u (for what reason I do not know), but it would be more unlikely for \u{ to be found in 'legacy' code. -- Alain Williams

Re: [PHP-DEV] [VOTE][RFC] Unicode Codepoint Escape Syntax

2014-12-08 Thread Alain Williams
in 10 days’ time (2014-12-18). I vote 'yes'. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include

Re: [PHP-DEV] [VOTE][RFC] Unicode Codepoint Escape Syntax

2014-12-08 Thread Alain Williams
On Tue, Dec 09, 2014 at 12:38:54AM +, Andrea Faulds wrote: Hi Alain, On 9 Dec 2014, at 00:11, Alain Williams a...@phcomp.co.uk wrote: I vote 'yes’. At the risk of stating the obvious: I don’t see your vote on the page’s voting widget. Please vote there. I looked ... I now see

Re: [PHP-DEV] [RFC] Unicode Escape Syntax

2014-11-25 Thread Alain Williams
then we could extend the syntax a bit to allow the encoding to be specified, eg: \U{utf-8: arabic letter alef} \U{iso-8859-6: arabic letter alef} Ie, allow this to be optionally specified and terminated by ':'. If not specified then assume utf-8. -- Alain Williams Linux/GNU Consultant

Re: [PHP-DEV] [RFC] Unicode Escape Syntax

2014-11-25 Thread Alain Williams
. http://uk1.php.net/manual/en/control-structures.declare.php#control-structures.declare.encoding I can see how it would change a \U{arabic letter alef} -- but not what it does today. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787

Re: [PHP-DEV] [RFC] Unicode Escape Syntax

2014-11-24 Thread Alain Williams
. It would be nice since a code point is just a big number without any really obvious meaning, but a name makes for greater clarity. However: I suspect that interpretting this might be considerably slower which means slower compilation. Regards -- Alain Williams Linux/GNU Consultant - Mail

Re: [PHP-DEV] [RFC] Unicode Escape Syntax

2014-11-24 Thread Alain Williams
On Mon, Nov 24, 2014 at 11:36:28PM +, Andrea Faulds wrote: On 24 Nov 2014, at 23:29, Alain Williams a...@phcomp.co.uk wrote: echo \U{arabic letter alef}\n”; Ooh, that’s an interesting idea. I believe Perl actually has this already, although it uses the \N syntax: http

[PHP-DEV] Re: [OFFTOPIC] conditional compilation, WAS [RFC] Remove PHP 4 Constructors

2014-11-21 Thread Alain Williams
$# else $# endif Without wanting to make it too complicated, it might be nice to allow a 'set' (or 'define'), this would allow setting of flags, eg: $# if PHP_VERSION_ID 50500 $# set FINALLY 1 $# endif $# if FINALLY ... $#endif -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites

Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors

2014-11-19 Thread Alain Williams
they are still some use of them Yes keeping PHP 4 for PEAR is a bad idea Maybe this would spur PEAR to moving to a modern PHP, they could always maintain a separate PEAR legacy. PHP 4 support ended some 6 years ago. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking

Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors

2014-11-19 Thread Alain Williams
PHP 4 ? IMHO: making PHP 5.3+ the PEAR baseline would not seem unreasonable. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http

Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors

2014-11-19 Thread Alain Williams
) { } finally { ... tidy up } # else } catch(PDOException $e) { ... tidy up not quite where I want it } # endif OK: '#' might not be a good character since it is start of comment, but that is the idea. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer

Re: [PHP-DEV] [RFC] Readonly Properties

2014-10-24 Thread Alain Williams
related class, but only set by the class itself! -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php

Re: [PHP-DEV] [RFC] Readonly Properties

2014-10-24 Thread Alain Williams
$callback as rwsr-x--x; A callback that when executed/called would have 'private' access permissions on properties! -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers

Re: [PHP-DEV] New globals for PUT and DELETE

2014-10-14 Thread Alain Williams
method=post ... and specifically check $_GET['context'] - there might be a $_POST['context'] but that is treated completely differently. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk

Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast

2014-09-14 Thread Alain Williams
On Sun, Sep 14, 2014 at 01:10:20AM +0100, Andrea Faulds wrote: On 14 Sep 2014, at 01:07, Alain Williams a...@phcomp.co.uk wrote: You give an option for float to int casting to truncate. Where? Possible Changes Float to Int Casting Rules ... This could be relaxed for semi

Re: [PHP-DEV] [VOTE][RFC] Scalar Type Hinting with Cast

2014-09-13 Thread Alain Williams
or round in a negative direction ? So, should -1.5 become -1 or -2 ? Or should it depend on the floating point unit on the machine (not all do the same) ? Currently PHP (CentOS on an AMD CPU) a cast to int converts -1.5 to -1. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking

[PHP-DEV] Documentation error

2014-08-28 Thread Alain Williams
associative. http://php.net/migration56.new-features -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php

Re: [PHP-DEV] [RFC] Binary String Comparison

2014-08-18 Thread Alain Williams
($, $b) is about 176% slower than $a === $b $a = 1234; $b = 4567 $a == $b is about 20% slower than $a === $b strcmp($, $b) is about 162% slower than $a === $b -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http

Re: [PHP-DEV] [RFC] Introduce Abstract Syntax Tree

2014-08-14 Thread Alain Williams
' or 'ba': $TwoChars = fgetc($in) . fgetc($in); Some code is just broken. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http

Re: [PHP-DEV] [RFC] Disallow multiple default blocks in a single switch statement

2014-08-13 Thread Alain Williams
breakage - so just leave it there. When there is a major upgrade it is expected that a few things might not work - so do it when people a rebuilding systems and expect such things. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-16 Thread Alain Williams
element with value $bar. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-15 Thread Alain Williams
by catching user/coder errors earlier and so make their life easier. There is trade off bet -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-14 Thread Alain Williams
it from the typed function arguments. As with all of this: if you don't find it then don't use it, leave it for those who do understand the benefits. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-14 Thread Alain Williams
conditional includes). This means that these errors will be picked up very quickly. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-14 Thread Alain Williams
for optimisation) but decided that that would risk of opening more cans of worms. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-14 Thread Alain Williams
towards a benefit of adding a numeric hint as well (which will accept (and cast to) either an int or a float, exactly how is_numeric_string() does internally)... Which is something that may want to be considered for this RFC. +1 -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-14 Thread Alain Williams
is there for not adopting the syntax some of the semantics of Hack ? http://docs.hhvm.com/manual/en/hack.annotations.php NIH is not a good reason. NIH = Not Invented Here -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-14 Thread Alain Williams
On Mon, Jul 14, 2014 at 06:09:22PM +0100, Andrea Faulds wrote: On 14 Jul 2014, at 18:01, Alain Williams a...@phcomp.co.uk wrote: But if you have: function foo(int $a) { ... $a = 3 / 2; } What do you expect $a to contain ? I would suggest integer 1. I’d

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-14 Thread Alain Williams
: fun($num, $list) - arguments passed as is, not type checking/juggling -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-13 Thread Alain Williams
checking that it brings. Should I raise an RFC for this ? -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-13 Thread Alain Williams
.] (*) I couldn't find that email quickly enough so apologies if I'm not completely accurate on this. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration

[PHP-DEV] Re: [PHP] PHP CLI setting cooked terminal mode

2013-09-30 Thread Alain Williams
On Mon, Sep 30, 2013 at 02:02:06AM -0400, Curt Zirzow wrote: On Wed, Sep 11, 2013 at 12:37 PM, Alain Williams a...@phcomp.co.uk wrote: Hi, I am running a PHP script at the command line and piping the output through less: ./myScript | less This works as expected for 99

Re: [PHP-DEV] Fwd: ezmlm warning

2013-09-23 Thread Alain Williams
occasionally get this sort of thing, after the first few times I just ignored them with no real consequence for me -- ie I was not chucked off the list. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http

Re: [PHP-DEV] Re: Re: PHP Crypt functions - security audit

2013-09-19 Thread Alain Williams
to their users. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP Internals

Re: [PHP-DEV] PHP CLI setting cooked terminal mode

2013-09-18 Thread Alain Williams
is needed is for this to NOT be called if the standard output is not connected to a tty. Should I raise this as a bug ? Remi. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill

Re: [PHP-DEV] PHP CLI setting cooked terminal mode

2013-09-18 Thread Alain Williams
On Wed, Sep 18, 2013 at 04:13:39PM +0200, Remi Collet wrote: Le 18/09/2013 16:04, Alain Williams a écrit : What is needed is for this to NOT be called if the standard output is not connected to a tty. From your previous message: ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400

Re: [PHP-DEV] PHP CLI setting cooked terminal mode

2013-09-18 Thread Alain Williams
. The version that I have been using is PHP 5.3.3. The code above is from PHP 5.5.3. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http

[PHP-DEV] PHP Crypt functions - security audit

2013-09-16 Thread Alain Williams
living under a stone recently: https://www.schneier.com/blog/archives/2013/09/the_nsa_is_brea.html -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration

Re: [PHP-DEV] PHP Crypt functions - security audit

2013-09-16 Thread Alain Williams
On Mon, Sep 16, 2013 at 01:56:58PM +0200, Johannes Schlüter wrote: On Mon, 2013-09-16 at 11:56 +0100, Alain Williams wrote: In the light of the recent scandal of the NSA ( others) attacking encryption would it be a good idea to see if we can get an audit of all the security related code

Re: [PHP-DEV] PHP Crypt functions - security audit

2013-09-16 Thread Alain Williams
On Mon, Sep 16, 2013 at 01:44:16PM +0100, Alain Williams wrote: Note that most of these things don't refer to PHP directly. i.e. encryption between user and PHP is usually done by the web server. Encryption between PHP and databases by database libraries. If applications built on top

Re: [PHP-DEV] PHP CLI setting cooked terminal mode

2013-09-16 Thread Alain Williams
On Mon, Sep 16, 2013 at 10:01:37PM +0200, Martin Jansen wrote: On 14.09.13 13:45, Alain Williams wrote: ./myScript | less Since less is an interactive program it puts the terminal into 'raw' mode so that it can read characters one at a time. However, when I do the above I find

[PHP-DEV] PHP CLI setting cooked terminal mode

2013-09-14 Thread Alain Williams
running PHP 5.3.3 on CentOS 6. I posted this to php-gene...@lists.php.net a few days ago, but did not get a sensible reply. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill

Re: [PHP-DEV] Allow (...)-foo() expressions not only for `new`

2013-02-26 Thread Alain Williams
, I do agree that it might be a bit confusing. What is disappointing is that I cannot go: ($f = new Foo)-bar(); That does not suffer from a lack of clarity on intent. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256

Re: [PHP-DEV] Re: [RFC] Allow trailing comma in function call argument lists

2013-02-20 Thread Alain Williams
and arrays can already have trailing commands Also: many other languages (eg C, Perl) allow a trailing comma in arrays, but not to function arguments. This change would make PHP different from what many programmers might expect. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites

[PHP-DEV] Problem with php_value open_basedir and apache containers

2012-11-16 Thread Alain Williams
system. Regards -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP

Re: [PHP-DEV] Re: [PROPOSED] password_hash RFC - Implementing simplified password hashing functions

2012-08-28 Thread Alain Williams
that the returned string is stored in should be. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include

Re: [PHP-DEV] PHP class files without ?php at the top

2012-04-07 Thread Alain Williams
like this numbers should start + -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include

Re: [PHP-DEV] PHP class files without ?php at the top

2012-04-07 Thread Alain Williams
that the parser would start out in PHP mode. would you please leave this world in peace? ... You may not agree with his proposal (neither do I) but please remain kind polite to him. He is not trolling. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer

Re: [PHP-DEV] Scalar Type Hinting

2012-03-08 Thread Alain Williams
sources has NOT been correctly filtered -- but that should be a rare event and indicative of a bug. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration

Re: [PHP-DEV] Scalar Type Intentions

2012-03-01 Thread Alain Williams
is about communication of intent, not just with the computer (compiler) but also with programmers who subsequently read the code. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill

Re: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Alain Williams
the compiler complain if it sees a variable that has not been declared. In a large program the occasional typeo on variable names does happen, catching them with 'use strict' is great! I have proposed this before and people did not like it. Here is to hopeing for a different sentiment. -- Alain

Re: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Alain Williams
allowing the class users to not be strict. Just because Java has a feature that you appear to not like, does not mean that others might not want it in some circumstances. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http

Re: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Alain Williams
asking to make type hinting for variable declaration an available option. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http

Re: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Alain Williams
checking completely if it knows everywhere a function (probably a class method) can be called from and knows the types of the arguments that are passed in to it. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http

Re: [PHP-DEV] Return Type Hinting for Methods RFC

2011-12-22 Thread Alain Williams
too complicated. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP

Re: [PHP-DEV] Ternary operator performance improvements

2011-10-18 Thread Alain Williams
On Tue, Oct 18, 2011 at 10:09:37PM +0200, Arnaud Le Blanc wrote: Hi, Le Monday 17 October 2011 15:07:30, Alain Williams a écrit : On Fri, Oct 14, 2011 at 08:08:56PM +0200, Arnaud Le Blanc wrote: Hi, I've already posted this patch and it has since been reviewed and improved. I'm

Re: [PHP-DEV] Ternary operator performance improvements

2011-10-17 Thread Alain Williams
slow compared to an if/else when the operand is an array for example: Is that why the following does not work as I expected: $dbh = $how == 'r' ? ($dbh_r) : ($dbh_w); $dbh is NOT a reference to $dbh_r or $dbh_w. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking

Re: [PHP-DEV] RFC: Short syntax for Arrays (redux)

2011-06-02 Thread Alain Williams
-- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php #include std_disclaimer.h -- PHP Internals - PHP

  1   2   3   >