lid with an error " a() return nothing"
+1 - my 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.phc
. I expect IDEs and such could 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
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 Consu
hard work here.
You had the courage to attack some difficult & contentious problems.
Best wishes at whatever you do next.
To misquote Douglass Adams:
So long and thanks for all the patches!
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT
Lectu
> PHP9 - remove case 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
PHP 9 and removal in PHP 11.
It would, however, almost create 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.
--
s 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 Consultant - Mail systems, Web sites, Networking, Programmer, IT
Lecturer.
+44 (0) 787 668 0256 http://www.
''all sorts 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 Co
;use strict' is great!
I have proposed this before and people did not like it. Here is to hopeing for a
different sentiment.
--
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 C
ght
want to be really strict while 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
Le
> To clarify I am 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. Registrati
lace where he thinks that it is needed
(ie at the package interfaces), but there is always the small possibility that
something slips through the net and causes mayhem - this will stop it.
The other reason for having type checking is that it allows PHP compilers such
as hip-hop to do more globa
g ... but seems 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
--
PHP
e to some of the ghastly pseudo comment
conventions that are currently used as means of documentations.
Programming 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 - Ma
atch where input from external 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 Comput
Tom Boutell
> P'unk Avenue
> 215 755 1330
What country would that be ? On a list 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 Comput
ould work just like
> > include, require and require_once, except 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 trollin
er logged in.
Also: the RFC (or final documentation) should state how long the returned string
will be, so that the programmer knows how big the database_column/whatever
that the returned string is stored in should be.
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites,
an exception thrown when you call a non existent method on an
> object, since it's not possible to catch E_ERROR with a user defined
> function using set_error_handler() I can't see anyway to accomplish
> this in the current implementation?
What is wrong with __call() ?
See:
d if needed converted (eg string -> integer) when the
function is called; it then need not be converted again when it is used in
the function. This will presumably be a win if the value is used more than once.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Le
point of function call rather than having
to put a check within SumToN()
--
Alain Williams
Linux 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.phc
On Thu, Jan 03, 2008 at 07:36:48PM +0100, Markus Fischer wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hello,
>
> Alain Williams wrote:
> > On Thu, Jan 03, 2008 at 12:21:21PM -0500, Sam Barrow wrote:
> >> I think E_WARNING would be appropri
s used in a string context, the juggling will still happen.
What you are doing to allowing the function author to protect the integrity
of his code without having to resort to a regex/... to check what the arguments
are.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking,
is used several times within the code (presumably as a number)
then the type juggle 'string of digits -> number' will not need to be done
since it was done on function entry.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44
still need to validate the input for range, or is_numeric() or
No. The point is NOT to save input ($_GET, etc) validation -- that will
still need to be done; the point is to help pick up programming errors
where you accidentally get the type wrong.
Granted: some idiots will use it as cheap in
perhaps 'INT' -
whatever
we agree on it should have a defined capitalisation.
Just an off the wall thought ... if the type is not a known scalar type or
class, then check to see if the
word is a constant ... could be interesting aka C's typedefs.
--
Alain Williams
Linux Cons
t style):
>
>
> function foo( $a, $b ){}
>
> foo( '5', 'bleh' ); // <-- no exceptions or type conversions
>
> ?>
>
> Thoughts?
>
> Cheers,
> Rob.
> --
> ...
> SwarmBuy.com - http:
y very true.
But the liklyhood is that the programmer will pass an int/float/string/...
rather than the wrong resource type. 'resource' will still be very useful
and catch many errors without being 100% perfect.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, P
gt; echo 'Foo: '.(sprintf( '%d', '5five' ))."\n";
>
> ?>
>
> All produce 5.
But the string 'foobar' converts to a 0 (zero) -- not what is wanted.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Program
is happily worked and worked correctly. And short
"1" and 1 should both be acceptable to type hint 'int'.
What this means is that the function is written in the assumption
that $_REQUEST['age'] has been checked for numeric before the function
is called.
--
Alai
xists it will always overwrite the GET/POST content and therefore
> unwanted requests will be performed)
OK
> And well... This thread continues without a single valid (!= personal
> opinion) reason why type hinting should NOT be introduced. BTW accepting
> the string '1' where an
s:
Starting
top as string 6.147411108017
top as number 3.7645990848541
There is thus considerable advantage on doing the type juggling as part of the
type hinting on function call.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0
27;5' to int) ? If so
succeed.
* fail
Type HINTING is not type ENFORCEMENT. PHP type juggling is still allowed, so
PDO returning results as strings
is quite OK as long as what is defined to be numeric *really* has a VALUE that
is a number.
OK: the above does not apply with some things
On Sun, Jan 06, 2008 at 12:51:20PM +0100, Kore Nordmann wrote:
>
> Am Sonntag, den 06.01.2008, 11:28 + schrieb Alain Williams:
> > PLEASE READ CAREFULLY
> >
> > You have NOT understood what type hinting is about.
> >
> > You are confusing the TYPE and t
standings of what this is about.
Sam Barrow was trying to put together a precise description. It might be good to
wait until he has posted that before we continue going round in circles.
> Stefan Esser
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer,
Having yet another way of conversion which is different from any
> existing one in PHP scares me really ...
To accept 'foobar' as integer zero (as with current conversion) would make
a total nonsense of type hinting.
--
Alain Williams
Linux Consultant - Mail systems, Web s
this nature of PHP.
+1
--
Alain Williams
Linux 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
Chairman of UKUUG: http://www.ukuu
ets killed when the function returns.
What if type hinting wasn't used ? The program would continue and prob
do something stupid like putting a zero in some database column, or worse.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
ept cookies and the session ID is propagated via
_GET/_POST. However: I am quite willing to accept the argument that the trivial
amount of extra code to do this properly is the 'right' solution.
What Stefan is saying ought to be listed with the security issues on the PHP
web site.
oposal to this list, with examples & the arguments for/against.
We could then look at it carefully and evaluate his idea.
Regards
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Comp
ave the
> type checks _once_ inside the functions/methods, instead of multiple
> times on every call.
But you are assuming that you can identify the 'right' places to put the
checks ... not always easy, especially in code that changes.
--
Alain Williams
Linux Consul
riority: 3 (Normal)
Message-ID: <[EMAIL PROTECTED]>
To: Benjamin Schulz <[EMAIL PROTECTED]>
CC: internals Mailing List
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding:
integer $x times ... which will eat
CPU if $x is large -- I tried it.
An:
assert (is_int($x))
followed by:
$x = (int)$x
is the way to go.
> This only serves to include an additional type juggling system into php,
> which is very confusing.
If you don't understand it: don
t; AFTER the parameter list,
> but I also need to pass it to zend_do_begin_function_declaration. Is
> this even possible?
>
> What I'm trying to acheive is this:
>
> function a($arg1, $arg2) return int {
> }
>
> Currently:
>
> function a return int($arg1
int& doThing(string $foo) { return 1; }
I would suggest the second, ie just before the function name.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registrati
ho "a called aa=$aa\n";
function b() {
global $aa;
echo "in b aa=$aa\n";
}
b();
}
a('this is aa');
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.c
come together and should be implemented together,
Sam has done much work on param type hinting, we should thank him for his hard
work.
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hil
On Wed, Apr 30, 2008 at 10:42:04PM +0200, Keryx Web wrote:
> Alain Williams skrev:
> >Taking it a bit further, if the function returns a reference (eg to its
> >argument):
> >
> > function int &myfunction(int &$param)
> >
> >Alternative could b
ike this would be global and
might mess up some code written elsewhere. Mind you: any programmer
going '$a == $b' on true floating point has got to expect rubbish.
This is making things easier for the naive/novice programmer. In this case
I don't think that it realy helps since th
for type money to
be
money::plus()
Would this fit well with the PHP type juggling.
Why not use the BC Math Functions ?
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers
t;
> 1) one namespace per file (look at frameworks like Symphony which compile
> their classes together for performance, they will never be able to switch to,
> or support namespaces).
> ...
To which I would add: namespaces are not for variables, this I would like to
see.
--
A
unref()
However: the PHP parser will take that to be a call to a function named
'funref'.
So you need to change the syntax to, perhaps, something like C:
(funref)()
I can't see people understanding that.
Stick with what we have.
--
Alain Williams
Linux Consultant - Mai
n without the dollar sign for a custom application. It's
> just
> crazy!
I doubt that that was a serious suggestion. Just a joke.
Although I do like the idea of replacing dollar with euro :-)
--
Alain Williams
Linux Consultant - Mail systems, Web sites, Networking, Programmer,
... if people *really* want it we could always define:
$_NAMESPACEVARS['foo:.:bar']
as an array of variables in namespace foo:.:bar.
Maybe $_NAMESPACES would be an array of all namespaces that are defined.
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Pr
se are lower case, thus you
have:
use strict;
use IO::File
Nobody is made to do anything, however you loose the option to complain if your
namespace starts with a lower case character.
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, I
o (2) because system variables tend to be in upper case
anyway (think: $_GET). (3) also has the virtue that system things tend to start
with an underscore.
This scheme is nice and simple.
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT
Lecturer.
+4
Hi,
just trying to canvass support for the ability to enforce declaration of
variables as with perl's use strict:
http://bugs.php.net/bug.php?id=39091
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer
oesn't do the same thing, it won't pick up the following:
$fo0 = 'bill';
...
$foo = 'ben';
One is a typeo.
> On 10-Oct-06, at 2:52 PM, Alain Williams wrote:
> > http://bugs.php.net/bug.php?id=39091
--
Alain Williams
Parliament
it would be to 59.21 N, 9.608 E
Skein in Norway ... where you live ?
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
#include
--
PHP Internals - PHP Runtime Develop
t those cases assigning to what foo() returns would be reasonable.
If foo were to return a constant or a value (not a reference) then
the above should be errors.
Since functions don't have fixed return types the error test needs to be
done at run time.
--
Alain Williams
Parliament Hill
] (perhaps
($months->lengths)[$month]) but
-> is not listed as an operator in the precedence table. Please can someone put
it in!
> --
> [1] http://en.wikipedia.org/wiki/Law_of_Demeter
> [2] http://www.martinfowler.com/bliki/FluentInterface.html
--
Alain Williams
Parliament Hi
p is easy to write, that is good. Unfortunately this also means that
bad/simple/careless programmers can use php ... these are the ones who
cause many of the php script errors that cause problems.
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Netwo
benefits are somewhat ambiguous, but in all fairness the full
> consequences are hard to predict without sample code.
It is OFF by default.
RegisterGlobals was initially ON by detault since loosing it broke
a lot of code. PHP survived that.
--
Alain Williams
Parliament Hill Computers Ltd.
L
n the above declarations for $c and $d ($c switches on strict
mode, $d does not).
This would be OPTIONAL - ie if you do not want it then do not use 'var' and it
will not impinge; if you use it then you get the extra checking that it brings.
Should I raise an RFC for this ?
--
Alain Will
= 17;
}
function CanDrive(int $age)
{
return $age >= 17;
}
The above is how I write programs. [I do realise that the 2 above are not
exactly the same.]
> (*) I couldn't find that email quickly enough so apologies if I'm not
> completely accurate on th
"var integer $variable" has a use where do you know they type, eg you got 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 sy
rror should be picked up the first time that the script is
compiled, it does not need to be executed (other than 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.
code where the argument is known to be of the type and no convertion
will be done - if there is a type mismatch - generate an error.
function PrintMonth(int $month) {
...
}
for($mon = 0; $mon <= 12; $mon++)
PrintMonth($mon)
I wanted to say something about f
ger 1.
> And that also hints 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
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)
On Mon, Jul 14, 2014 at 06:09:22PM +0100, Andrea Faulds wrote:
>
> On 14 Jul 2014, at 18:01, Alain Williams wrote:
>
> > But if you have:
> >
> >function foo(int $a) {
> >...
> > $a = 3 / 2;
> >}
> >
> > Wha
etain the current syntax:
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 I
learn.
The benefit of this is fewer issues in libraries. It may also help 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
make an array containing one 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/conta
he next major version. There are prob a few bits of code
that have this in there -- accidentally. People expect to perform minor upgrades
without 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
characters on input are 'a' then 'b' what gets assigned
could either be 'ab' 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.
ot;abcd";
$b = "ghij"
$a == $b is about 24% slower than $a === $b
strcmp($, $b) is about 168% slower than $a === $b
$a = "abcd";
$b = "4567"
$a == $b is about 20% slower than $a === $b
strcmp($, $b) is about 176% slower than $a === $b
$a = "1234&qu
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
happens with negaitve numbers ? Do you round towards zero 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 Will
On Sun, Sep 14, 2014 at 01:10:20AM +0100, Andrea Faulds wrote:
>
> On 14 Sep 2014, at 01:07, Alain Williams wrote:
>
> > You give an option for float to int casting to truncate.
>
> Where?
Possible Changes
Float to Int Casting Rules
...
This coul
the URL. I will sometimes use them together, eg:
...
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
efine a property that contains an anonymous function that could be called
by anyone, inspected by the class & 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:
var $callback as rwxrw---x;
+1, although that would have been:
var $callback as rwxr-x--x;
Again musing further:
var $callback as rwsr-x--x;
A callback that when executed/called would have 'private' access permissions on
properties!
--
Alain Williams
Linux/GNU Consultant - Mai
libraries on PEAR forge.
>
> Yes 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 Con
many people would get annoyed if PEAR stopped supporting 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/
Parliamen
atch(PDOException $e) {
} 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
ently reminicent of C to be helpful of those of us
with that background.
$# if PHP_VERSION_ID > 50500
$# 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
$# s
quot;\U{arabic letter alef}\n";
If you think that it is a bad idea, please update the RFC to say why this is a
bad idea and so why it is not going to happen - for now.
It would be nice since a code point is just a big number without any really
obvious
meaning, but a name makes for greater
On Mon, Nov 24, 2014 at 11:36:28PM +, Andrea Faulds wrote:
>
> > On 24 Nov 2014, at 23:29, Alain Williams wrote:
> > echo "\U{arabic letter alef}\n”;
>
> Ooh, that’s an interesting idea. I believe Perl actually has this already,
> although it
rs using \Xxx or
use mb_convert_encoding($string, $output_encoding, 'utf-8').
If we decide to support non-utf-8 encoding at compile time 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 a
) does.
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.
;
> Voting starts today (2014-12-08) and ends 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. R
On Tue, Dec 09, 2014 at 12:38:54AM +, Andrea Faulds wrote:
> Hi Alain,
>
> > On 9 Dec 2014, at 00:11, Alain Williams 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
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.
--
A
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
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
Le
manner it
will cause problems, however I would suggest that it would be worth 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:
ht
the top bit
set sees 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, Programme
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 Consult
, so
> people who want to use PHP 7 can do so 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 Consulta
1 - 100 of 223 matches
Mail list logo