I also thought about the same for functions, just to be even more
consistent.
my_func::function
On 12 Oct 2017 23:32, "Sara Golemon" wrote:
> On Thu, Oct 12, 2017 at 2:33 PM, Michael Döhler
> wrote:
> > I am open for any approach, but maybe we have to differentiate between
> class constants and
ot;, MyClass@myMethod);
>
> This will ease a lot, e.g. for refactoring, IDE usage and completes the
> code as configuration approach for PHP.
>
> Thanks
> Michael
>
> > Am 12.10.2017 um 19:43 schrieb Mathias Grimm :
> >
> > I would like to suggest a method constan
I would like to suggest a method constant that could be used the same way
we use the ::class one
I don't have a strong personal preference but it could be something like:
MyController::myActionMethod::method, no sure about the internals but it
would be consistent with the one for the class.
Chee
Thanks all for the comments.
While I understand the motivations & reasons I think I would prefer not to
help in this specific case.
Nothing wrong with the approach but different then what I was expecting to
spend my free time on.
I hope everything goes ok.
Count on me for further improvements if
If php is mainly static it could be almost fully cached in a CDN.
For the downloads I don't think the latency would be a problem but that can
also be in the CDN
If php owned two servers in US and two in Europe and possibly 2 in Asia we
would be goon in terms of latency for the search IMO.
On 20
Os and DON'Ts to set some
boundaries.
On 20 July 2017 at 23:01, Johannes Schlüter wrote:
> On Do, 2017-07-20 at 15:36 +0200, Mathias Grimm wrote:
> > So no composer, monolog etc?
>
> I believe using composer is good and there's already a pull request for
> using it:
So no composer, monolog etc?
On 20 July 2017 at 15:28, Sara Golemon wrote:
> On Thu, Jul 20, 2017 at 9:08 AM, Mathias Grimm
> wrote:
> > Any objections about using an existing framework?
> >
> The same objections raised regarding web-php apply equally to web-bugs.
>
> -Sara
>
Any objections about using an existing framework?
On 20 July 2017 at 14:22, Sara Golemon wrote:
> On Thu, Jul 20, 2017 at 8:06 AM, Niklas Keller wrote:
> >> Interesting might be integrating https://3v4l.org/ so code samples are
> >> directly run (which of course won't work for code related to e
Hi Sara,
can we talk more about the bugs.php?
had a look at the code and seems similar but its a smaller project and
possibly easier to deal with.
Is it hosted only by php or it has mirroring as well?
Is it possible to get a dump of the db?
Do you have anything specific in mind?
Cheers,
Mathias
Bugs could be good thing as well.
What the case with the bugs?
For the php.net I think it could actually be worthy generating html.
But as I said, the idea is to make the code readable again, be it with a
framework or not.
Having all that html mixed with php + globals is really bad. Even if we
wan
some kind http stack + routing, but that is deep down the execution
plan discussion.
On 19 July 2017 at 21:12, Andreas Heigl wrote:
> Am 19.07.2017 um 19:12 schrieb Mathias Grimm :
> >
> > I think it's a great idea about docker, although a separated project.
> >
>
I think it's a great idea about docker, although a separated project.
The wiki says minimum php is 5.3 but that page is from 2013 and would be
really great to not depend on the mirrors php version, although we can
write beautiful php even in php 4 (never did prior to 4)
On 19 July 2017 at 19:50
On 19 July 2017 at 20:06, Mathias Grimm wrote:
>
>
> On 19 July 2017 at 19:41, Niklas Keller wrote:
>
>> Hey,
>>
>>
>>> I would like to know who is/are "in charge" of the website (
>>> https://github.com/php/web-php).
>>> I th
o something about it.
Cheers,
Mathias Grimm
Hi, Thanks
Seems like is not going to happen very soon :)
In fact it is not broken, it's only a cosmetic nice to have.
Maybe in the future it will happen.
On 29 August 2016 at 14:06, Kalle Sommer Nielsen wrote:
> Hi Mathias
>
> 2016-08-29 15:03 GMT+02:00 Mathias Grimm :
> &
Hi,
I have a suggestion, maybe many gave it before.
My suggestion is the optional use of the keyword "function" inside classes,
interfaces and traits.
It would look much more clean while removing the redundancy.
Cheers,
Mathias Grimm
That would cause some problems indeed. But you could scape as in other
strings.
at('a/\/b') not nice but we have the same for every string
On Tuesday, October 7, 2014, Johannes Schlüter
wrote:
> On Tue, 2014-10-07 at 17:05 +0100, Mathias Grimm wrote:
> > Hi,
> >
ng but it could be solved having 2 keyboard layouts
(my case)
As I said before, this is not something that is going to change the php
direction, however many developer would get very happy.
I have never seen this in other languages but my knowledge is not very
expressive as well.
On Tue, Oct 7, 201
27;a/b/c', 'def')
I am not really creative now, but the part I would like to highlight is the
feature and not really the syntax.
On Tue, Oct 7, 2014 at 5:21 PM, Matthew Fonda wrote:
> On Tue, Oct 7, 2014 at 9:05 AM, Mathias Grimm
> wrote:
>
>> Hi,
>> I
This is handy just for programmers using recommended php.ini settings for
development (error_reporting = E_ALL and display_errors = On).
People using @, display_errors = Off or any other sort of sorcery don't
have such problems.
On Tue, Oct 7, 2014 at 5:14 PM, Mathias Grimm
wrote:
>
/ ArrayPath$sName= ArrayPath::get('user/basicInformation/name'
, $post);$sSurname = ArrayPath::get('user/basicInformation/surname' ,
$post);
// with default value$sLocale = ArrayPath::get('user/locale', $post,
'Europe/Dublin');
On Tue, Oct 7, 2014 at 5:
Hi,
I would like to suggest something for php like a class I am using
https://github.com/mathiasgrimm/arraypath
The reason is to access arrays like this:
$idx3 = ArrayPath::get('idx1/idx2/idx3', $_POST, 'myDefaultValue');
Regards,
Mathias
27;: 3, 'four': 4];
>
> And the idea it would be simpler/efficient/readable inspired some dissent
over both the readability and the PHP-way.
>
> So I'm not sure if your suggestion won't keep the same issue...
--
Mathias Grimm
7;foo', bar:$tmp);
just be paramaters named, like array, allowing too the order swapping on
call
--
Mathias Grimm
There is a suching extension to handle (intercepts) implicit (or no)
reference.
Ex.:
$a = new A():
$b = $a;
I want something like __clone(), something like __reference() to be invoked
in the second line of the given example.
Thanks.
--
Mathias Grimm
Where is the easiest point to a beginner start solving bugs? Including bugs
that was solved to.
--
Mathias Grimm
someone can help me to make the ZEND_ASSIGN operator overloading?
i've looked de pecl operator extension but i dont have the necessary skills
to do that.
its necessary.
Even with this compatible mode (php4 and 5.3) the system is getting 50%
faster on php 5.3
On Tue, Feb 1, 2011 at 3:41 AM, Reindl Harald wrote:
>
>
> Am 31.01.2011 21:08, schrieb Mathias Grimm:
> > the constraint is that all need to run on php4.3.6 and 5.3
>
&g
wrote:
> hi,
>
> On Mon, Jan 31, 2011 at 6:38 PM, Mathias Grimm
> wrote:
>
> > I dont want refereces.. except in explicit cases and i need to use php
> 5.3
>
> References have been abused in all possible and impossible ways.
>
> What are the exact cases where yo
thanks, there is no = operator overloading =(
On Mon, Jan 31, 2011 at 3:47 PM, Ferenc Kovacs wrote:
>
>
> On Mon, Jan 31, 2011 at 6:45 PM, Ferenc Kovacs wrote:
>
>> On Mon, Jan 31, 2011 at 6:38 PM, Mathias Grimm wrote:
>>
>>> I am migrating a huge php 4
I am migrating a huge php 4 system to php 5.3.
I need something like a op override for the = operator.
I'm working on a script with lots of ER + token_get_all but its also a hard
work.
Any suggestion ?
I dont want refereces.. except in explicit cases and i need to use php 5.3
gt; There's a reason why no modern language uses three letters tokens for common
> statements, I'll let you guess what it is.
>
> Anyhow, merry Christmas.
>
> P.S.: SCOPE_CLASS ? Have you ever heard of namespaces ?
>
> On Wed, Dec 22, 2010 at 12:11 PM, Mathias Grimm w
a very perl-read-only-macro..
doValidations() is a clean method.
process() is a poor description method... and so on..
On Wed, Dec 22, 2010 at 10:57 PM, Gustavo Lopes wrote:
> On Thu, 23 Dec 2010 00:48:44 -0000, Mathias Grimm
> wrote:
>
> On Wed, Dec 22, 2010 at 7:47 PM,
On Wed, Dec 22, 2010 at 7:47 PM, James Butler <
james.but...@edigitalresearch.com> wrote:
"What you are doing looks to be just slightly re-inventing the wheel for
very little gain. If you are copy and pasting code 'DRY violation' then you
probably need to rethink your code and/or make a new class/f
ject->save();
}
On Wed, Dec 22, 2010 at 7:08 PM, Scott MacVicar wrote:
> I really dislike this, what about resolving orders, then people will want
> undef, then ifdef with conditions.
>
> The language doesn't need to introduce anything that makes it more complex
> to use.
I Just want a simple replace-on-the-air to avoid spend time writing more.
On Wed, Dec 22, 2010 at 5:43 PM, Stas Malyshev wrote:
> Hi!
>
>
> I want to request a C/C++ feature that i think is good.
>>
>> MACRO
>>
>
> You know that you could write:
> #define PF private function
> #define SCOPE_CL
wrote:
> I want to request a C/C++ feature that i think is good.
>
> MACRO
>
> MACRO('PF','private function _');
> MACRO('SCOPE_CLASS','class MyProject_');
>
> class UseMacro
> {
> PF preSave($object)
> {
>//...
> }
>
> }
>
> SCOPE_CLASS Internal
> {
>
> }
>
> I don know if th
I want to request a C/C++ feature that i think is good.
MACRO
GIT is realy nice!
git merging magic!
aa($p = array()) { a($p); }
>aa(array("foo" => 42, "bar" => 17));
> with the additional benefit of having named (and extensible) parameters
> as an added bonus.
>
> - Chris
>
array cant be type hinting defined. i will need to do some extra work
checking
php test source:
insert(new SonType(),1,2,3);
php test result:
TEST 1
1 2 3
TEST 2
Array
(
[0] => SonType Object
(
)
[1] => 1
[2] => 2
[3] => 3
)
On Tue, May 18, 2010 at 8:50 PM, Mathias Grimm wrote:
> ok, sorry!
> the name isn't impor
have implemented.
>
>
--
Mathias Grimm
Sun Certified Java Programmer 6.0 #SUN604760
Zend Certified Engineer #ZEND006756
http://mathiasgrimm.com.br
http://phpempregos.com.br
.net/passthru
>
> --
> Stanislav Malyshev, Software Architect
> SugarCrm: http://www.sugarcrm.com/
> (408)454-6900 ext. 227
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Mathias Grimm
Sun Certified
rs from base
{
parent::insert(passthru()); // like call_user_func_array(array('parent',
'insert'), func_get_args());
}
}
$son = new son();
$sonType = new SonType();
$son->insert($sonType,'foo','bar','baz');
--
Mathias Grimm
Sun Certified Java Programmer 6.0 #SUN604760
Zend Certified Engineer #ZEND006756
http://mathiasgrimm.com.br
http://phpempregos.com.br
;meh".
>
> -Sara
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Mathias Grimm
Sun Certified Java Programmer 6.0 #SUN604760
Zend Certified Engineer #ZEND006756
http://mathiasgrimm.com.br
http://phpempregos.com.br
27;id');
}
}
--
Mathias Grimm
Sun Certified Java Programmer 6.0 #SUN604760
Zend Certified Engineer #ZEND006756
http://mathiasgrimm.com.br
http://phpempregos.com.br
PHP6 Unicode changes and other php6 features as being made in php 5
branch/trunk?
--
Mathias Grimm
Sun Certified Java Programmer 6.0 #SUN604760
Zend Certified Engineer #ZEND006756
http://mathiasgrimm.com.br
http://phpempregos.com.br
s and do more.
>
> So we should rename all functions,too? mysql_query() is long, mq()
> should work well?
>
> no, isnt a rename..
its a new constructor of php.
mq is ambiguos, but require(..,..,..),define(..,..,..) its cleaner, not a
rename.
> > the main php ideia is to write less and do more,or we would be still
> > writing pages in ANSI C or assembly
>
> no. That's Perl, and Perl is known as unreadable write-only language.
>
> johannes
>
>
require(...,..,..),define(...,...) dont make php harder to read and make
easy to write.
--
Att.
Mathias Grimm
http://mathiasgrimm.com.br
http://phpempregos.com.br
rs more are no trouble,
> writing code is never the hard part. The hard part is maintenance ...
> and a proper IDE serves quite well for saving key strokes ...)
>
> johannes
>
>
forget IDE. think in a simple text editor without any resources...
php is php, IDE is IDE.
few
I want to suggest the GO include format
'a',
'K_TYPE_B' => 'b'
'K_TYPE_C' => 'c'
)
with or withou comma...
--
Att.
Mathias Grimm
http://mathiasgrimm.com.br
http://phpempregos.com.br
i did the same on linux, with the same version of php and the bug is there!!
On Thu, May 13, 2010 at 12:25 PM, Mathias Grimm wrote:
> im using php 5.1.6 on xampp and i find a bug.
> how to know if the bug was fixed?
>
> the bug is:
>
> 1.
> session_start();
> $_SES
im using php 5.1.6 on xampp and i find a bug.
how to know if the bug was fixed?
the bug is:
1.
http://mathiasgrimm.com.br
http://phpempregos.com.br
Translate Zend_GData to php extension is good ideia?
2010/5/12 Mathias Grimm
> thanks.
>
>
> 2010/5/12 Johannes Schlüter
>
> On Wed, 2010-05-12 at 17:23 -0300, Mathias Grimm wrote:
>> > What is the correct todo list ?
>> > I want to help us but a need to
thanks.
2010/5/12 Johannes Schlüter
> On Wed, 2010-05-12 at 17:23 -0300, Mathias Grimm wrote:
> > What is the correct todo list ?
> > I want to help us but a need to see the todo list to select my work!
> >
> > Any sugestion to start?
>
> There is no formal &
What is the correct todo list ?
I want to help us but a need to see the todo list to select my work!
Any sugestion to start?
--
Att.
Mathias Grimm
http://mathiasgrimm.com.br
http://phpempregos.com.br
55 matches
Mail list logo