« first day (1682 days earlier)      last day (3266 days later) » 

11:15 AM
how both of these codes words 1 - $dom = new DomDocument; and 2 - $dom = new DomDocument();
 
@santosh if the constructor accepts no arguments, you can instantiate the object without the parens
 
So no idea about the Magento thing?
 
@r3wt ok thanks
 
@samaYo btw, i guess that the blank page
 
@sitilge unfortunately no. i'm just here winding down pre bedtime
 
11:17 AM
is not an error (as we are suposted to considering it)
it is just outputing the blank space
@r3wt nice hobby of yours :D
 
@sitilge if you can post your nginx config i might be able to help you
 
guys please please someone help me. It's urgent
0
Q: Decode Base64 image from MySQL server

Yohan BlakeI am storing my image as BLOB in an online MySQL database by encoding the image using Base64. I don't have a problem with saving. But I can't retrieve the images from the server. They appear to be broken. I believe this is happening because it's not being decoded. I tried manually uploading a c...

 
Anonymous
@sitilge post your configs
 
how to connect php databsae file in jquery ?
 
^lol
 
11:30 AM
Hi
 
anyone?
 
Could I install a modern version of php if I have an old version of MySQL and I still able to connect php (new v) to MySQL(old v)?
 
@YohanBlake you should have base64decoded the image before echoing it... php.net/manual/en/function.base64-decode.php this is very basic stuff, thats why no one will help you. you need to book mark the manual. google can tell you everything the manual can't. stack overflow should be the last resort, never a crutch.
 
@JavaFan Define "old" (what versions specifically are you talking about?)
 
mysql version 5.2.3
 
11:36 AM
I don't think you should have any problems with that version (if we were talking MySQL 4.x, it might be a different story, but 5.1 and above should be perfectly fine)
 
@Thennarasu check it out it may help you - stackoverflow.com/questions/16087878/…
 
@AllenJB the problem not with Mysql
the problem with PHP
I want a newer version to work with some frameworks
 
@JavaFan As I understand you, you asked if newer PHP versions (I'm guessing you mean 5.5 or 5.6) will work with MySQL 5.2 without issues. To the best of my knowledge the answer is yes, you should have no problems with this combination.
 
thank you
 
server {
listen 2000;

root /usr/share/nginx/html/magento2;
index index.php;

location / {
try_files $uri $uri/ /index.php;
}

location ~ \.php$ {

fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
include fastcgi_params;

}
}
 
11:46 AM
morning
 
@samaYo @r3wt the config seems to be fine...
 
thanx santhosh
 
@samaYo @r3wt friends, any idea?
the dilemma - who is the faulty link there: me (=config) or M2 (=app) :D
 
Anonymous
why is nginx listening on port 2000? weird
 
i dont have a domain attached to server
thus enabled a port
 
11:58 AM
no idea dude, sorry
 
Anonymous
can you run anything on the magento index.php file? alter and write something before the main, even an intentional error and see how that goes.
 
@Andrea woot?
does this makes sense for PHP? the left \ has no effect on a use declaration so use \{..., ...} has the same effect as use ..., ....;
 
I did - it is working
although magento has a overriden shutdown handler
and displays some extra html for me
 
Anonymous
use die after your script, so the error won't reach magento
 
@Andrea you want this to make your js transpilation easier?
 
12:00 PM
@marcio no
@marcio it doesn't? are imports implicitly absolute?
(I am getting confused about how namespaces work again)
 
@Andrea yes :x use \x is the same as use x
 
oh...
nevermind then :p
 
@samaYo
compiling apache2
will try to install on that webserver
 
@Andrea and AFAIK there is no relative import like use namespace\x
even though somebody thought it was cool to have *namespace\ * :@
(phack chat room markdown)
 
@marcio
yap, no smilies here :D
@samaYo
What did just happen: An error has happened during application run. See exception log for details. Could not write error message to log. Please use developer mode to see the message.
 
12:06 PM
btw, namespace\Something\Something might be less used than trait adaptations cc @NikiC
 
Anonymous
@sitilge do as it says
 
12:20 PM
what is the developer mode? cmoon magento developers - a bit more explanation would be nice...
 
Anonymous
probably found in the dashboard like drupal has, where it tells you many info about your application, like access, errors, cache ...
 
Anonymous
@sitilge I'm not a magento user, but tinker around and may find where that dev section is
 
Anonymous
3
Q: How to enable Developer Mode in Magento 1.7

sliceI am trying to enable developer mode on a site using Magento 1.7. So far I have added SetEnv MAGE_IS_DEVELOPER_MODE "true" to the .htaccess file and ... if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) { Mage::setIsDeveloperMode(true); } ... to the index.php file as describe here. I hav...

 
I have one issue with my server
I am trying to get the value by SEF URLs into GET method variable but it's not working, where is the code which i am trying :

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^index/(.*)/(.*)\.html index.php?controller=$1&option=$2 [QSA]
While it's working fine on my local server
 
@marcio yeah
I've never seen it used
 
12:45 PM
@samaYo hey, I guess i made it :)))
IMHO the main bottleneck was the permission thing
but how could one foresee it for the first time... ?
 
@SergeyTelshevsky What's wrong with that?
 
@Danack why would you force that?
 
Do you guys think that would be a good advance for PHP to have a preprocessor?
 
@SergeyTelshevsky Because there's no single default constructor possible, and instead creating the object needs to go through a function that does stuff?
 
1:00 PM
I'm currently designing a proglang that targets PHP, but, I mean, wouldn't it be better to use an own preprocessor instead of a complete proglang.
 
@HaskellCamargo I've been thinking about a preprocessing step for PHP too
 
@Danack maybe I don't understand something, but how should I use that e.g. with Auryn, besides making a custom builder for each of the HTTP methods? I see there's only an invocation of init() between the constructor and any factory method, why wouldn't you move everything in the constructor and make factory methods available like they are already?
 
@HaskellCamargo what do you have in mind?
 
mornign
 
Anonymous
@sitilge folder permission or drupal user perm?
 
1:05 PM
@SergeyTelshevsky $injector->delegate('Request', ['Request', 'init']); - I'll agree it appears to be useless for that class, but that's because the api of that class sucks - rather than it being a bad idea to begin with e.g.
  public static function post($uri, $payload = null, $mime = null)
    {
        return self::init(Http::POST)->uri($uri)->body($payload, $mime);
    }
is stupid.
 
it's not even a factory class.
 
Anonymous
@Danack may I borrow your eyes for a sec?
 
Just ask....
@SergeyTelshevsky Yeah, I know in this case, but that pattern is useful for when you want to do something like:
class Weaver {
    static function createWeaver($info) {
        switch (examine($info)) {
             case ('Foo'): {
                 $instance = new FooWeaver();
             }
             case ('Bar'): {
                 $instance = new BarWeaver();
             }
        }
    }
    //do private function calls on $instance

    return $instance;
}

class FooWeaver extends Weaver {}
Class BarWeaver extends Weaver {}
 
@Danack I understand it can be done, but I can't understand why would anyone force that. making private constructors IMO is the worst thing you can do as it disallows even extending that class properly
 
that is actually an argument against static factory method, because you start accumulating more and more conditions with each new class
 
1:10 PM
@Danack but that can be achieved with a Builder pattern
 
@tereško Sometimes I don't care - if it works for now it can be refactored later when those new classes get added.
 
$wb = new WeaverBuilder;
$wb->setInfo('Foo');
$fooInstance = $wb->build();
 
@SergeyTelshevsky What if initializing the class requires calling a method that you don't want to expose as part of the public API?
 
@Danack it should be initializable by constructor only
 
having an alternative constructor and having factory method are two different things
 
1:14 PM
@Danack calling it in a public method, e.g. constructor
 
17 mins ago, by Danack
@SergeyTelshevsky Because there's no single default constructor possible, and instead creating the object needs to go through a function that does stuff?
 
@Danack then there's a whole lot of other problems in this class than just a private constructor
I don't mind having a few other classes, I would even write my own wrapper with all the initialization code, but forcing the use of a static method..
 
contructors are static methods anyway....
 
@marcio, I mind something like a xBase preprocessor, such as Clipper does.
C preprocessor is powerful, but not enough expressive.
 
they are, but now I should use a variable method call, that smells as hell, while it could even be a simple argument like $rb = new RequestBuilder; $myRequest = $rb->build('get', 'http://php.net');
 
1:24 PM
Clipper, AdvPL or Harbour are antique one, but with a very good preprocessor able to tokenize, such as: github.com/haskellcamargo/prelude-advpl/blob/master/syntax.ch
With a simple lexer generator this would be possible to implement in a simple way in PHP.
 
oh, I can actually use init() but it has a comment that it should be used only internally..
 
I have the full lexer for an Erlang/LiveScript/Ruby based proglang, but I'm not sure if it is a good idea to keep the work on it (github.com/haskellcamargo/rawrlang)
 
this looks promising, despite september '14
 
@ircmaxell Regarding the libsodium RFC thread on internals, are you planning to talk about the 'PDO' like wrapper soon? Because that thread currently isn't being that productive, and it would be good to turn it positive. Not sure why Scott hasn't mentioned it, and was wondering if it was because you guys wanted to get it more finished first.
 
github.com/ircmaxell/PhpGenerics This is scares me, for sure.
 
1:34 PM
hello need ur help
 
What is the problem, @AbdulSuadikMohammed?
 
Am developing a loan repayment schedule and having difficulties with the date looping.
 
Can you be a bit more specific?
 
@HaskellCamargo :D rawrlang looks somewhat esoteric
 
1:40 PM
It has a functional base. :P You don't specify how to something in it, but what must be made.
It uses spaces for function application and allows reserved characters to be seen like identifiers, allowing operator overloading.
 
hello
@HaskellCamargo have u got my detail? Please help
 
so, whom may I ping regarging postgree jsonb ?
 
And works over a library that implements a Haskell-based static type system and pure object oriented programming (haskellcamargo.github.io/rawr).
 
@FlorianMargaine my thought as well. DBAs are just normalization freaks and they should be tied up, gagged and thrown in a dark pit.
 
You already got the answer there, Abdul.
 
1:51 PM
@HaskellCamargo I think it's possible to make a nice preprocessor experiment by including through a stream wrapper: include "rarw://some/file.rarw"
 
That's a nice idea. I yet must define a good syntax for it and write the formal grammar definition, then start to work on it.
 
@HaskellCamargo and you can avoid all the hassle of going through internals first :P
 
hi guys
what is the logic to type if condition like this?
if (false === empty($userAgent)) {}
I mean false first
and variable next
 
because sometimes people make dumb mistakes like:
if($check = true) {}
so you do:
if(true = $check) {} // and this will syntax error instead of becoming a bug
 
@John and although that bug isn't possible in the line of code you have (as functions can't be assigned to) having consistent ordering is nice.
 
1:57 PM
In programming jargon, Yoda conditions (also called Yoda notation) is a programming style where the two parts of an expression are reversed from the typical order in a conditional statement. A yoda condition places the constant portion of the expression on the left side of the conditional statement. The name for this programming style is derived from the Star Wars character named Yoda, who spoke English in a non-standard syntax. Yoda conditions are part of the WordPress coding standards. == Example == Usually a conditional statement would be written as: Yoda conditions describe the same expression...
 
Except that we have static code analyzers now, which can detect that type of bug.....and so don't need you to fuck up your code.
 
but I still dont understand this ordering
@PeeHaa let me see
looks like new to me
 
It's pretty horrible imo
 
Fairly common. I enforce it on my stuff
 
@Danack I actually prefer when conditions are made with yoda format regardless of the static analyzer linting the code
 
1:59 PM
@Danack feeling like crap, not sure if it'll be beer
 
@Ocramius lets skip it then. I also am feeling like blaaaaah.
 
PHP type system has much to grown. This is sad, but it is bad designed.
 
@Danack alright. I'll let you know if anything comes up, but I'm leaving on thursday for (yet) another conf
 
PHP is badly designed????
I am shocked!
 
@HaskellCamargo dude, tell us another joke! \o/
 
2:01 PM
php type system is completely accidental
 
I mean, the type system is one of the worst.
"1 banana" == 1
That's sooooo wrong, also with type coercion!
 
Php type system is just PHP type system, love it, use it, feel it...
 
@lisachenko you probably missed the username there <_<
 
@Ocramius no, I see it...BTW, we recently had a developer with surname Haskell, and he writes code in PHP
 
is there any other language built entirely by accident out there?
 
2:03 PM
@HaskellCamargo oh, that's not the worst. Try $foo = "foo"; echo ++$foo;
 
thank you guys
good day
 
@lisachenko did he kill himself? D:
 
@marcio javascript was built in 10 days. Does that count?
 
posted on May 25, 2015 by kbironneau

/* by Tumeconnais */

 
2:04 PM
This is my attempt by a better type system. I implemented a Haskell based type system based in wrapping by contracts: (rawr.readthedocs.org).
 
well, there's a book named "JS: The Good Parts"
 
@Ocramius no, just left his job )
 
@marcio They will tell you otherwise but javascript sure feels like it to me
 
which mostly talks about the bad parts
 
@lisachenko harhar
 
2:04 PM
so that's something
 
@FlorianMargaine no because they have a mature spec
 
LOL
 
You mean (?), @marcio
https://pbs.twimg.com/media/ArXcPfoCIAE1r0G.jpg:large
That's so weird when you find somebody that says "PHP is good because it pays my salary". Weird, but sad. :'(
 
What's weird about money?
 
2:09 PM
I find it yummy, not weird
 
the funny thing is that js is much more pervasive ^^ that's probably why they started to fix it
 
Anonymous
@Danack just let me know if the there is something bothering about the usage github.com/samayo/bulletproof/tree/dev as in, could it be made more convenient? I just want feedback on how it looks :/
 
That's weird because people, at most, don't care about the language and use this as argument to be a well designed proglang.
 
They don't use it as such
 
Anonymous
@Danack just let me know if the there is something bothering about the usage github.com/samayo/bulletproof/tree/dev as in, could it be made more convenient? I just want feedback on how it looks :/
 
2:10 PM
When people say that they are not talking about it being well designed
I for one love to have money yet I don't think PHP is particularly well designed
 
It doesn't matter if you designed by committee with the best academics or "go horsed" a shitty experiment in 10 days and open sourced it, your new programming language will suck in so many ways. That's the only truth.
 
You really don't know my friends who are PHP lovers...

"If PHP were so bad designed, how would be Facebook using it"?

Stop, just stop. D:
All proglangs have the right to be bad designed, but PHP exceeded this right, yay.
 
@HaskellCamargo Yeah the fact that facebook used it doesn't have much to do with how it was designed :P
 
Anonymous
am I correct in assuming that the never-ending bugs and bug-fixes highlight the problem of the design? or is that something too common with other languages as well @PeeHaa
 
too common
 
2:17 PM
At least, in version 7, opcodes are generated based in an AST, not directly from the parser.
This is good, because will allow us to rewrite all the front-end of its compiler, but in the right way!
 
what do you want to rewrite, specifically?
 
The lexer and the parser, basically.
 
the lexer has sooo many hacks
 
Rewriting the parser, I'll be able to fix the associativity of the ternary operator.
And maybe write a PHP interpreter in PHP, muahahaha.
I'll rewrite the lexer of PHP anyway, in PHP, when designing its preprocessor.
 
2:20 PM
Yeap!
I'm contributor on this project: https://github.com/jhartikainen/hs-language-php

It is a PHP intepreter/compiler written directly in Haskell.
The AST is generated by Haskell's ADTs.
 
Anonymous
just focus on making php faster :)
 
@samaYo that's what facebook did, but they had to build another language xD
 
HS Language PHP is yet a slow implementation, 8 times slower than PHP, it is just a prototype.
My last compiler was written entirely in PHP also, that's a logic declarative programming language that compiles to ZPL and runs on printers.
 
eeeeeeek printers
I hate those bastards
 
@HaskellCamargo good luck with that, beware the test suite has many holes
 
2:36 PM
@samaYo I don't really have time/energy to do code reviews - if it's useful to you then it's fine. The only thing I noticed while looking briefly is don't do this:
if(!function_exists('exif_imagetype')){
            $this->error = "Function 'exif_imagetype' Not found.";  return ;
        }
if something depends on a function existing, and it doesn't then just throwing an exception is a lot easier (imo) way of handling those errors.
 
Monads solve most of these problems, muahahaha.
 
Solve in the sense that it produces a language that people fail to make successful businesses with.
 
I work with monads and functional programming, also in business and enterprise projects, lol.
My main work language is LiveScript, followed by AdvPL.
 
> I'm really disappointed that more programmers don't get actively involved in reading endless threads about how to subvert Haskell's type system to accomplish basic shit you can do in other languages. But I guess that's the lazy, ignorant, careless world we live in: the so-called 'real' world."
 
2:43 PM
Printers, I love'em. <3
They all have artificial intelligence. They feel the smell of fear.
 
Hello peeps, with PHP 5.6 I'm failing to unserialize object serialized with PHP 5.3. Without looking at the actual object, are there any changes serialize/unserialize between PHP versions?
 
I wrote a compiler to ZPL (Zebra programming language):
https://github.com/haskellcamargo/ExtendedZPL/
 
Random pings: @JoeWatkins @bwoebi @DaveRandom :D
 
@Andrea hehe $125 :P
 
@DejanMarjanovic pong :-P
 
2:47 PM
:-P
HALP!11!
 
@HaskellCamargo I hate those fucking sentient printers
2
 
@DejanMarjanovic internal or purely userland?
 
^XA
^FO20,10ADN90,50^FDHELLO WORLD^FS
^XZ

Yay, so expressive ZPL (?)
 
@bwoebi Well internally I suppose because I cannot unserialize object serialized with 5.6 in 5.3 without unexpected results, it goes berserk.
 
```
@author {:Marcelo Camargo:}
@date {:2014/12/25:}

$say <- "Hello World!"

format:begin
field-origin [20, 10]
font-prop [D, False, 90, 50]
field-data [$say].
format:end
```

Would compile to that.
 
2:50 PM
@DejanMarjanovic there were some fixes to it, but format didn't change…
 
Define "goes berserk" (what specific behaviour or messages do you observe that you didn't expect)
 
@bwoebi Thank you fine gentle Sir, I'm assuming the problem lies in Memcache(d/whatever) extension then.
 
Anonymous
@Danack thanks
 
Do you guys think that a pull request fixing ternary operator associativity would be accepted, or the community would fight against it to keep legacy code?
 
@HaskellCamargo Sounds like a huge BC break to me
 
2:54 PM
My obsessive compulsive disorder is getting crazy with that. :S
 
What is the difference between "php developer" and "php programmer"
 
Also legacy does not mean what you think it does I guess :P
 
I guess you mean the difference to a "developer" and a "programmer", without focusing on proglang, in this case.
 
"Antique code", I mean. Argh, my english s&&ks sometimes.
 
2:55 PM
You can say sucks in here ;)
Or did you meant socks?
:D
 
@SergeyTelshevsky have you begun already ordering in the parts ?
 
@SergeyTelshevsky Yeah, socks. ( ͡° ͜ʖ ͡°)
 
:-)
 
@HaskellCamargo You should understand PHP's change process. We don't break backwards compatibility in the language without an RFC. And it has been discussed on the list.....the issue isn't that no-one knows how to fix the precedence.
 
3:22 PM
hi
 
I think I' gonna like this series: youtube.com/watch?v=X4bF_quwNtw
 
Anonymous
not surprised :|
 
3:45 PM
My next project is a lexer/parser generator that targets Java and allows the own definition of keywords, of satanic keywords. ¯_(ツ)_/¯
hell com.sample;

blood of powerful demon Main(Satanic[] args) { ...
 
@HaskellCamargo like… instructions being able to directly access bytecode?
 
@AbdulSuadikMohammed there is none.
 
No, it will work like a preprocessor.
It will generate a lexer that will search for respective tokens and replace'em.,
 
totally disappointed now! :-D
 
The parser will be almost useful, basically, something like PogoScript, yay.
An esoteric language generator, not to be used in production (devil face).
 
4:05 PM
Hi do someone can help me out with DOMXPath ? I'm trying to add html inside (or after dpend on the point of view...) an HTML element via PHP. Here is my code sample : codepad.org/V106ruER Thank you
 
posted on May 25, 2015 by kbironneau

/* by malteo */

 
Since when does a domnode have a insertAfter method?
 
oups
error
insertbefore ;D
it's not working more :P
 
Look at the method signature of the method you are using
This is not jquery...
You are working with nodes not random strings
 
What do you mean by method signature ?
 
4:12 PM
"What does the method you are trying to use accept as parameters"
 
Look. It receives a DOMNode, not a simple string.
You must create a node to insert.
Create an instance of a node and load the string in it. Pass the instance to insertBefore.
 
okay
How do I create the "structure"
// <ul><li>Test</li></ul>
$list_parent = $dom->createElement('ul');
$list_element = $dom->createElement('li');

How to put li in ul then text in li ?...
 
You want to append a node?
 
This will receive the string you want to put in.
$element = $node->createElement("div", "inner text");
$node->appendChild($element);
 
Okay
I'll try something and get back after :) thank you @PeeHaa and @HaskellCamargo
 
4:22 PM
Yeah, at least it should. createElement is a method of DOMDocument. php.net/manual/en/domdocument.createelement.php
 
Neh you had multiple nodes in there ;)
(in a broken format :))
 
Ah, I see. I edited.
 
I think I don't understand this very well...
how
ho
I found
the second params was not needed
 
is changing the name of a token a BC break?
 
@marcio I'm up to merge your context sensitive patch now… Anything further comments before I'm going ahead?
 
4:31 PM
@tereško not yet, will start at the end of the week, I have some problems I have to solve before ordering :)
 
Well, I don't believe so, @marcio.
remembering T_PAAMAYIM_NEKUDOTAYIM.
 
@SergeyTelshevsky keep in mind that the total was calculated using some timed discounts
you might have to adjust
 
question.. I got 30 columns in my MySQL dtabase, but I only want to insert the first 10 rows, how can I say that I want to insert hte first 10 rows and leave the rest null or smth?
 
Just don't add them to your insert query
 
and set default values on the schema
 
4:38 PM
INSERT INTO TABLE (FIELD1, FIELD2 ... FIELD10) VALUES (VALUE1, VALUE2 ... VALUE10), you mean?
This is so poignant. :/
https://www.youtube.com/watch?v=EOZ3rQbc9_w
 
@bwoebi yes, wait...
let me rebase with master and commit the generated files fy
I didn't commit these files to avoid future rebase hell :)
 
@marcio nah, I'm doing that
I just want to ask whether there's anything to change
 
nope, just that.
 
okay fine
 
Hm weird, I do that, I have set my default on NULL and insert like this: INSERT INTO app_res_per_form VALUES ('monkey', 'bizon', 'Option one,Option two', '2', '1,2,3,4', 'charmender', 'dodo', 'bird') and it gives me this error, Column count doesnt match row count
 
4:47 PM
@bwoebi was any new token included recently?
 
@marcio checking…
… nope
 
if so you will need to use the RETURN_TOKEN macro instead of return T_SOME_TOKEN
great
then it should be good to rebase/merge
 
running tests first
 
yay, after you merge this I'll be able to push the other patch to allow $x->protected(); etc
@HaskellCamargo the token still has the same name
 
hmm, having a bunch of failing tests here
 
4:50 PM
just the error message changed
@bwoebi o_O
how so?
 
T_PAAMAYIN_NEKUDOTAYIM is an epic PHP representation.
 
Testing declaration of alias to 'static' [Zend/tests/class_alias_003.phpt]
Catch method calls on non-objects raise recoverable errors [Zend/tests/methods-on-non-objects-args-catch.phpt]
Catch method calls on non-objects inside array access [Zend/tests/methods-on-non-objects-array-access.phpt]
Catch method calls on non-objects inside array creation [Zend/tests/methods-on-non-objects-array-creation.phpt]
Catch method calls on non-objects as argument [Zend/tests/methods-on-non-objects-as-arg.phpt]
 
@bwoebi are you sure it's the right patch?
 
PR 1221?
 
let me check that
 
4:52 PM
001+ Fatal error: Cannot use 'static' as class name as it is reserved in /Users/Bob/php-src-X/Zend/tests/class_alias_003.php on line 8
001- object(foo)#%d (0) {
002- }
^ like that
oh oops
 
@bwoebi Those are old tests that were dropped
 
@NikiC yeah, hence my oh oops
 
Ah, do you guys about taking function call to be applied from return of an expression? The parser has currently an issue that doesn't allow us to

(function($x) { echo $x; })("Foo");

This takes the things harder when working with currying and lambdas.
There were a similar error on arrays, but it were fixed in major versions.
That's weird why is a string callable but a first class function is not.
 
user895378
@HaskellCamargo php7 fixes this
 

« first day (1682 days earlier)      last day (3266 days later) »