anges should allow extensions to be listed on PECL much
more easily, without being too disruptive to the PECL site.
Thoughts?
Sounds good to me.
I thought the php.net account was for incorporating new documentation?
--
Thomas Hruska
CubicleSoft President
I've got great, time saving softw
parser would allow userland startup sequences to
detect the problem globally and cleanly terminate the request BEFORE the
core application logic is encountered. This shouldn't just be for
files, it should be for any time the parser early-terminates input
processing but then proceeds to s
Am 11.10.19 um 15:16 schrieb Claude Pache:
Le 11 oct. 2019 à 13:05, Nikita Popov a écrit :
I'm mainly wondering how exactly we'd go about integrating this in the
existing exception hierarchy. Assuming that it is desirable to allow people
to actually catch this exception, my first thought woul
CP/IP servers than they are
right now. A lot of careful thought needs to happen prior to writing
bind(). Network code is quite notably hard to get right and complexity
multiplies with multi-OS/platform support.
--
Thomas Hruska
CubicleSoft President
I've got great, time saving soft
are completely fine though for other purposes such as detecting
single-bit changes in file data where something a little more robust
than CRC32 is needed but don't want to waste a lot of storage space.
md5() and sha1() already have basic warnings applied.
--
Thomas Hruska
CubicleSoft Presid
uld be better for
RAM usage but I can see how that might be complex to implement and
largely not worth it since such scenarios will be rare and require the
ability to maintain lexer state externally as you mentioned and would
only be used by this part of the software.
--
Thomas Hruska
Cubicle
https://github.com/cubiclesoft/ultimate-web-scraper/blob/master/docs/emulate_curl.md
On a side note, good PHP userland streams-based implementations are
faster than the ext/curl extension. The ext/curl extension also doesn't
emit as much useful debugging information.
--
Thomas Hruska
Cu
s. Doing that would fix so many Windows
loader related issues that people have with getting the precompiled PECL
extensions to work on Windows (especially with mixed SAPI environments).
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will find useful.
lAv8Q
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will find useful.
http://cubiclesoft.com/
And once you find my software useful:
http://cubiclesoft.com/donate/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
github.com/
Hi,
I think it's a valid point that changing parameter names can be a BC break. In
case the type declaration or the semantic of the parameter changes, it's good
to let the code break.
I guess that tools for static code analysis will be able to detect parameter
name changes?
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
be consistent if referenced parameters
behaved in exactly the same way.
Regards,
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Am 10.05.20 um 18:26 schrieb John Bafford:
Hi Ralph,
On May 10, 2020, at 11:49, Ralph Schindler wrote:
Hi!
# Intro
I am proposing what is a near completely syntactical addition (only change is to language.y) to the
language. The best terminology for this syntax is are: `return if`, "retur
the list
anonymously.
(I'm not sure if we need to raise this questions in a broader context
regarding other groups of people. I don't want to open a can of worms.
But I don't want to forget about other groups.)
Regards
Thomas
Am 15.06.20 um 17:43 schrieb Daniel Rodrigues
asked
for concrete examples where people where offended in the context of the
PHP project to get an understanding of the issue. If there is no
response perhaps we can assume there is no issue? (At least for people
on the list? Perhaps for people working in the IT context?)
Regards
Thomas
llowed to be 0 or more or 15 or more, defaulting to 15)
()
Thanks,
- Tyson
+1, wanted this for years but never got around to tackle it
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
Hello,
I'd also like to propose to use null:
[null, null, $username] = getUserData();
foreach ($source as $key => null) {}
Regards
Thomas
> David Rodrigues hat am 02.09.2020 16:24 geschrieben:
>
>
> I think "void" is a good solution and is very clear, com
and just return byte offsets if the modifier
`u` is given.
* Or create *new* functions for it: `mb_preg_match_all()` etc.
--
Cheers,
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
ristr() and strrchr() can now be empty."
I fail to see how this change is useful/correct. In my experience,
passing in an empty string for the needle to any of those functions has
always been part of a more critical application bug.
I'm also not sure why this is in the "Inc
, private read, init"
write"? When will (a) be initialized?
And if there is really a useful case for (a) why is there no "public
read, private read"?
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
to think about that issue.
But it's probably better than nothing.
Perhaps someone has a better idea?
Cheers
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
var_dump($a->w); // Fatal error, uninitialized...
Regards
Thomas
Fleshgrinder wrote on 25.05.2016 23:03:
> On 5/25/2016 5:49 PM, Andrea Faulds wrote:
>> PHP's existing untyped properties are implicitly initialised to null,
>> and so yes, we would essentially only be copying
// false
var_dump(isset($a->u)); // false
var_dump(isset($a->v)); // false
var_dump(isset($a->w)); // false
Regards
Thomas
>> public ?int $y = null;
>> public int $z = 42;
>> public ?int $u;
>> public ?datetime $v;
>> public datetime $w;
>> }
>&g
Currently the rfc also checks the properties for being initialized.
I think it's still faster than most userland implementations using __get() for
type checks and parsing phpdoc for type information.
Regards
Thomas
Stanislav Malyshev wrote on 25.05.2016 23:56:
> Hi!
>
>&g
st {
private $z = 42;
public function __construct() {
unset($this->z);
}
}
$a = new test();
$a->z = 21; // fatal: Cannot access private property...
So after unset, $a->z should still have context.
Regards
Thomas
Lester Caine wrote on 26.05.2016 00:13:
&
Of course isset() has a special behaviour. So having some kind of real_isset()
or initialized() would be nice.
Regards
Thomas
Thomas Bley wrote on 26.05.2016 00:38:
>>> var_dump($a->z); // 0 + notice
>> The notice should be 'variable does not exist' as at this poin
var_dump(isset($a->w)); // false
Regards
Thomas
Tom Worster wrote on 26.05.2016 15:53:
> On 5/25/16 5:52 PM, Thomas Bley wrote:
>> I'm not seeing a problem here:
>>
>> class A {
>> public int $x;
>> public ?int $y = null;
>> public int $z = 42;
>
it's not so magic, rather think of (int)null, (float)null, (string)null,
(array)null, etc.
Typed properties could be defined as nullable by default, but I think that
makes userland code much more ugly.
Regards
Thomas
Tom Worster wrote on 26.05.2016 18:44:
> Hi Thomas,
>
> On
Hello,
shouldn't it be possible to return null as new key? That way you say:
Use the next free integer index.
Not sure if returning null is wanted (as it could hide errors in the
callback) or needed in some real world use cases. But it would be more
in sync with $a[] = ...
Regards
T
); // string foo
i(10.0); // int 10
i(10); // int 10
Regards
Thomas
Bob Weinand wrote on 02.06.2016 22:56:
>
>> Am 02.06.2016 um 22:25 schrieb Rowan Collins :
>>
>> On 02/06/2016 18:43, Bob Weinand wrote:
>>> We had that exact idea relatively early, but it exposes ot
maybe easier to get a majority from voters if defining union types only in
strict mode for 7.1?
Regards
Thomas
Rowan Collins wrote on 03.06.2016 15:40:
> On 03/06/2016 13:30, Bob Weinand wrote:
>>
>> The *weak casting* rules (i.e. what gets converted how and what can be
>
tr_replace) since we can cast the
string easily to array and calling a string parameter with an array would give
a fatal error.
Regards
Thomas
Rowan Collins wrote on 03.06.2016 16:32:
> On 03/06/2016 15:24, Thomas Bley wrote:
>> maybe easier to get a majority from voters if defining
rray | int $matchCodes = null, string $matchMessage =
null): bool
Then it would be clear that we can't match an array of messages.
But as said before string | int | ... makes no sense to me.
Regards
Thomas
Jordi Boggiano wrote on 03.06.2016 17:16:
> On 03/06/2016 15:58, Thomas Bley wrote:
&g
// int(42)
test2('42'); // int(42)
function test3(int|bool $a) {var_dump($a);}
test3('foo'); // true
Regards
Thomas
Bob Weinand wrote on 03.06.2016 14:30:
>
>> Am 3.6.2016 um 14:18 schrieb Rowan Collins :
>>
>> On 03/06/2016 12:59, Bob Weinand wrote:
>>
l $enabled;
public DateTime $created;
}
Regards
Thomas
Dmitry Stogov wrote on 10.06.2016 14:37:
> Hi,
>
>
> I hardly worked on implementation of this patch for a week, but I still don't
> like it.
>
> It makes 15% slowdown on each property update in existing PHP code (wit
ure
rates. Guess which solution I used? Fortunately, in my case, the
number of queries being run was quite limited and on a set schedule.
You might not be so lucky.
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will find useful.
http://cubiclesoft.com
using the default encoding from php.ini's default_charset should be no problem,
htmlspecialchars() already does it if the encoding parameter is not provided.
Regards
Thomas
Niklas Keller wrote on 17.06.2016 22:31:
> Hi,
>
> the issue is that things have to be escaped dependent
you can simply add the context to the current output operator:
(=strip_tags)
Regards
Thomas
Stanislav Malyshev wrote on 17.06.2016 22:14:
> Hi!
>
>> Most of output code is an output of properties of database entities, and
>> only in some cases it's needed to conca
Walter, yes I read, did you read? Niklas wrote:
> The escaping should also be aware of the content encoding.
I wrote: no we have a php.ini setting
The context problem is already answered in the mail from Stas.
Regards
Thomas
Walter Parker wrote on 18.06.2016 00:20:
> Thomas, a
Sure you can implement that in userland, but people don't do it or make it too
complicated,
so you get every day code with unescaped stuff.
Regards
Thomas
Ryan Pallas wrote on 18.06.2016 00:27:
>
>
> On Fri, Jun 17, 2016 at 2:23 PM, Thomas Bley <mailto:ma...@thomasbley.de
I think it's best to create a rfc and put it to vote:
https://wiki.php.net/rfc/howto
Having Guys, wait please) I don't suggest escaping package for all contexts and
> for all cases. This is not what I described in my first letter. My point is
> that the main job of echo operator "" is output an
you can never avoid people writing things incorrectly, just look at code using
addslashes() instead of mysql_real_escape_string() ...
Regards
Thomas
Walter Parker wrote on 20.06.2016 01:41:
>>
>>
>>
>> > where getting it 90% correct is worse that not doing anythi
to make it more clear:
is a shortcut for:
Using 2016-06-20 11:12 GMT+02:00 Lester Caine :
>
>> On 20/06/16 07:00, Niklas Keller wrote:
>> >> Now ... I want to add content that includes
>> >> > it needs to be in the format
>> >> >