to me that we can achieve the same result using throw,
> simply by adding new syntax and capabilities. Yes, there may be some
> backward compatibility issues, but is it really something to be afraid of?
>
Hello,
looking into userland code, I often see usages for file, line, class, function,
etc. without args.
So there are a few options:
1) Set zend.exception_ignore_args by default to 1.
2) Add a new attribute for custom classes:
#[\ExceptionSkipTraceArgs]
class BreakException extends \Exception implements Exception
3) Implement a new LightException (or similar name) with no args in getTrace().
Regards
Thomas
t code to be plenty readable and not
particularly necessary to span multiple lines, but that's obviously
subjective.
Just because someone _can_ do something doesn't mean that they should.
More than likely, users trying to do pipe-like operations in PHP
shouldn't be doing them in the first place.
--
Thomas Hruska
CubicleSoft President
CubicleSoft has over 80 original open source projects and counting.
Plus a couple of commercial/retail products.
What software are you looking to build?
is the format I
> use in my error/exception handlers for convenience.
>
> A utility function that stringify the trace would be sufficient, as the
> operation is non-trivial.
>
> —Claude
Some years ago, we had another rfc on this topic:
https://wiki.php.net/rfc/error_handler_callback_parameters_passed_by_reference
Best Regards
Thomas
— Rob
>
Thanks for the rfc!
>From userland perspective I would prefer to have the cloning more explicitly,
>e.g.
return clone $this($this->x + $other->x, $this->y + $other->y);
or
return clone $this(x: $this->x + $other->x); // clone with y unchanged
Best Regards
Thomas
g. intercept calls to the file system when running tests where
the application was not designed with test-ability in mind.
Regards,
Thomas
la...@garfieldtech.com
Thank you!
> $var is *; // Matches anything, more useful in the structure patterns below.
maybe also consider:
$var is mixed; // Matches anything, more useful in the structure patterns below.
> // Array application, apply a pattern across an array
> $foo is array; // All values in $foo must be strings
> $foo is array; // All values in $foo must be ints or floats
+1
Regards
Thomas
)? (see
https://github.com/phpstan/phpstan-src/blob/1.11.x/src/Reflection/ParametersAcceptorSelector.php#L562)
Regards
Thomas
On Tue, Nov 7, 2023 at 11:46 AM Sebastian Bergmann wrote:
> Am 07.11.2023 um 11:33 schrieb Thomas Chauchefoin via internals:
> > For instance, the official Docker image has it on [2].
>
> "Official" is relative here. That image is maintained by (the) Docker
> (communi
Var; // 3
$intVar = 'x'; // Fatal error: Uncaught TypeError
```
https://3v4l.org/GFNgp#v8.2.11
Greetings
Thomas Gutbier
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
where. For instance, the official Docker image has
it on [2]. Outside of performance reasons, this also has a security
impact because it eases the exploitation of limited LFI bugs [3] and
CLI tools stored under the web root [4].
-Thomas
[1]: https://github.com/php/php-src/issues/12344
[2]:
Hi,
sorry, I don't know where to send this. But
When visiting https://www.php.net/ I get a certificate error: The
provided certificate is for www.caruso.ovh.
When visiting http://www.php.net (http only), I get redirected to
http://www.caruso.ovh/
Regards
Thomas
--
PHP Internals
quot;var_dump(0 == (int) '');"
php -r "var_dump(42 == (int) ' 42');"
php -r "var_dump(42 == (int) '42foo');"
gives:
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
Best Regards
Thomas
> Alan Smithee hat am 18.05.2023 2
I guess Robert's idea is more like the "pypy" project for Python, which
is a fast Python interpreter written in Python.
So, there are examples of PHP interpreter/VMs written in PHP:
https://github.com/ircmaxell/PHPPHP
Best regards,
Thomas
Am 17.04.2023 20:21 schrieb Thomas H
le or Externals.
Robert Landers
Software Engineer
Utrecht NL
Do you mean something like:
https://github.com/cubiclesoft/php-app-server
Or something more like Java which is written in Java? In that case, maybe:
https://github.com/Corveda/PHPSandbox
--
Thomas Hruska
CubicleSoft President
Cubicl
isn't the right solution though.
--
Thomas Hruska
CubicleSoft President
CubicleSoft has over 80 original open source projects and counting.
Plus a couple of commercial/retail products.
What software are you looking to build?
--
PHP Internals - PHP Runtime Development Mailing List
To uns
I fully understand your point, having more tests is the best thing to do.
Unfortunately many old code bases are not written to be tested easily. There is
excessive inheritence, traits, reflection, globals, static calls, missing DI,
magic functions, feature flags, database dependancies (e.g. 1 re
done is mostly silencing deprecation messages,
which makes the gap bigger when upgrading to the next major version.
So having support for multiple php versions inside one binary would be a great
thing, same as modern web browsers still support html 4 even though html 5 is
out for so many years.
Regarding compatibility promise, I'd also like to mention that things are quite
complex now, e.g.
https://3v4l.org/VfAr4
has 4 different outputs between php 7.x and 8.x. From userland perspective,
having Craig Francis hat am 10.04.2023 14:58 CEST
> geschrieben:
>
>
> On 9 Apr 2023, at 23:
ll? Or should this just be a
possible longer term idea that requires more thought and research and
thus the scope should be limited and we put Lydia's idea under Future
Scope in the RFC? Other thoughts/comments?
Added as Open Issue 10 to the RFC. Thank you for your input.
--
Thomas
On 2/14/2023 2:02 PM, Rowan Tommins wrote:
On 14/02/2023 15:32, Thomas Hruska wrote:
Hello Internals,
I would like to start the discussion on adding several functions and
parameters to existing functions for improved substring handling in PHP:
https://wiki.php.net/rfc
anticipated could come up, but I'm sure there
will be others. Some are technical questions related to the source code
while others deal with bikeshedding (function names, etc).
--
Thomas Hruska
CubicleSoft President
CubicleSoft has over 80 original open source projects and counting.
P
Dossche wrote:
Dear internals
I would like to gain RFC karma for creating and proposing an RFC:
"Implement GH-9673: $length argument for fpassthru".
Account name: nielsdos
Thanks in advance
Kind regards
Niels
--
Thomas Hruska
CubicleSoft President
CubicleSoft has over 80 original op
ould be an alternative of creating a complete new
high ievel language developed in C-programming langage.
Best regards,
Thomas
Am 03.02.2023 20:17 schrieb Rowan Tommins:
On 3 February 2023 18:30:00 GMT, "Olle Härstedt"
wrote:
You'd have to rewrite Psalm or Phpstan in C if you want
o ensure this on the engine level.
To go one step further, I would even ask the heretical question if we
should discourage/deprecate readonly once we have asymmetric visibility. ;-)
Regards
Thomas
Am 07.01.23 um 00:37 schrieb Larry Garfield:
I am hereby opening the vote on the Asymmetric Vi
ser
could not be created."
Requesting RFC karma for user 'cubic' (cu...@php.net) if possible. Thanks.
I assume I'll need to create up to 18 separate RFCs unless one RFC is
somehow fine? Not sure how this should be divvied up yet.
--
Thomas Hruska
CubicleSoft Pres
On 12/13/2022 7:15 AM, Derick Rethans wrote:
On Mon, 12 Dec 2022, Thomas Hruska wrote:
On 12/12/2022 3:52 PM, Derick Rethans wrote:
On 12 December 2022 22:20:27 GMT, Dan Liebner wrote:
It has been proposed to make the error level of "Undefined index"
configurable so that
sinesses are waiting for at least the holidays to conclude before
performing any major system upgrades if not longer for specific OS
releases to drop.
--
Thomas Hruska
CubicleSoft President
CubicleSoft has over 80 original open source projects and counting.
Plus a couple of commercial/re
null;
- }
return $entity;
}
}
Best regards
Thomas Gutbier
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
In ext/standard/file.c, when php_stream_read_to_str() fails, fread()
calls: zval_ptr_dtor_str(return_value);
Is there ever a situation where return_value can be a string that has to
be freed?
--
Thomas Hruska
CubicleSoft President
CubicleSoft has over 80 original open source projects and
actually happens.
--
Thomas Hruska
CubicleSoft President
CubicleSoft has over 80 original open source projects and counting.
Plus a couple of commercial/retail products.
What software are you looking to build?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https
y?
* Can I forbid a class to be created by casting from an array? When I
think about domain entities/aggregates, such a casting would allow to
create an invalid state of the object without any checks. (Okay, we have
similar issues when recreating them from a database via some ORM.)
BTW:
the three main concepts are the
important takeaways here, not the referenced userland code.
My gut feel is that (a) is true, and there is no point considering what
a new function would be called, because we don't know how to implement it.
Perhaps the above will help to at least provide s
): That
way the behavior is safe from the start. And people who opt in for
"danger mode" can reliably detect if there was some data loss and can
deal with it.
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
/
"RoadRunner is a high-performance PHP application server, load-balancer,
and process manager written in Golang."
Best regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
hear that there is a new and simple proposals.
One note: In the example about references, I assume the class Baz must
extend from Foo.
Good luck with this proposal
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
properties, plus disabling dynamic properties. That's
the long-and-short of it, yes?
Yes, exactly!
Should this rfc (https://wiki.php.net/rfc/deprecate_dynamic_properties)
be considered here?
The attribute #[AllowDynamicProperties] should not be allowed for
readonly classes.
Thomas
-
Object => ...,
>= 42 => ...,
!== 5 => ...
};
to be equivalent to:
$result = match (true) {
$value instanceof MyObject => ...,
$value >= 42 => ...,
$value !== 5 => ...
};
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
think LTO works fine now, but you need projects which have these
kind of bottlenecks to benefit from LTO. :)
Best regards,
Thomas
ps:
Sorry, for two e-mails, Go, I was not able to press the right answer
button in my email program. ^^
Am 12.03.2022 19:17 schrieb Go Kudo:
At present, PHP canno
, stay healthy and thanks for your efforts and work on PHP!
:)
Thomas
PHP / C programmer
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
.
Best regards
Thomas
Am 15.02.22 um 13:31 schrieb Nicolas BADIA:
Hi,
As it is explained in this ticket https://bugs.php.net/bug.php?id=81417 we use
to check if a property exists by accessing it directly like we do in JavaScript.
Personally, I subscribe to this coding style and we use it all over
PHP_EOL; // DateTime
echo array_get_type([new DateTime(), new DateTimeImmutable()]), PHP_EOL; //
mixed
Having this function would make it easier to check types of arrays and avoid
things like array_sum([1, 'a', 'b', 2]);
Best Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
Hey,
let's celebrate! Congrats and thanks to all who have been involved in
creating this great new release!
Best regards
Thomas
Am 25.11.21 um 19:20 schrieb Patrick ALLAERT:
The PHP development team announces the immediate availability of PHP 8.1.0.
This release marks the latest
tional help to change get_resource_type() to
accept resource objects and return the same result as the former,
corresponding resource type.)
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
, 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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
erything I do is in PHP...but very little of it being
actual web development. Whenever I bring those things up to people, I
get funny looks that say, "PHP does CLI? Huh. Never knew that."
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will fi
haviour punishes
> future users of PHP for our past mistakes.
> > On Aug 28, 2019, at 12:05 PM, Thomas Bley wrote:
> >
> > Normally every code base has old and new code, some is actively maintained,
> > some is probably third-party maintained, some is unmainta
new code with sth like declare(strict_variables=1); or
declare(SomeNamespace\Foo:strict_variables=1); That way, people can write new
code in a better way, include new libraries and upgrade old code piece by piece
without any big pressure.
Regards
Thomas
> Matthew Brown hat am 28. August 2
nk showed up near the top of Google
Search results for me.
--
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 Runti
ly with the declare statements as defined in
composer.json.
Not sure: Perhaps you even do not need a new concept of a resolver but
could extend the concept of autoloaders?
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
can't represent a class of an
underserved population to bring forth awareness, justice, or action. In
many cases, they are in better positions with sufficient contacts to
reach the right people to bring forth such things that would otherwise
never come to light.
--
Thomas Hruska
CubicleS
umn
appears as "username (username)". Is that intentional, some kind of
software limitation, or a bug?
--
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
in the mix too.
--
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 unsubscri
://github.com/cubiclesoft/ultimate-web-scraper/blob/master/support/tag_filter.php
If deprecated, at least the linter will pick up the problem areas and
flood log files.
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will find useful.
http://cubiclesof
URL, as shown, doesn't go anywhere. Looks like it should be this:
https://wiki.php.net/rfc/deprecate_curly_braces_array_access
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will find useful.
http://cubiclesoft.com/
And once you find my softw
On 7/2/2019 6:07 AM, Nikita Popov wrote:
that it also exists elsewhere). The RFC argues against this because it
makes writing a literal \? harder (which would be ?), but I think that
\\? should result in the correct string. ? adds in an extra backslash.
--
Thomas Hruska
CubicleSoft
ustomer/project/" no longer in the trace
would be more readable for the developer, and, in case somebody has
dispay_errors=on, a bit less of information disclosure.
Just my 2c
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
ppens.
Regards
Anatol
That was quick. Looks good now. Thanks!
--
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
On 5/11/2019 4:58 AM, Anatol Belski wrote:
Hi,
-Original Message-
From: Thomas Hruska
Sent: Saturday, May 11, 2019 1:39 PM
To: PHP Development
Subject: [PHP-DEV] Trigger rebuild of DLLs for PECL extensions?
Is there a way to trigger the Windows DLL build process for a PECL extension
Is there a way to trigger the Windows DLL build process for a PECL
extension without publishing a new release?
--
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:
> On Wed, May 02, 2019 at 03:00 AM Bishop Bettini
> mailto:bis...@php.net>> wrote:
>
> Great, thanks Tom. Theodore and I are polishing the RFC, then will tackle the
> implementation. Besides the necessary merge fixes, are there any
> changes/improvements you specifically want to make in the new
Hi!
> On Wed, May 01, 2019 at 01:13 AM Bishop Bettini wrote:
> > On Tue, Apr 30, 2019, 19:14 Theodore Brown >
> > On Tue, Apr 30, 2019 at 3:59 PM Bishop Bettini wrote:
> >
> > > Excellent. I hope we can make the case this time. Please
> > > request Wiki karma [1], and we'll iterate on it there.
with short open tag
support disabled and/or removed to convert from short open tags to full
open tags and, in fact, has already been done.
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will find useful.
http://cubiclesoft.com/
And once you fin
Hi!
> On Fri, Apr 26, 2019 at 4:30 PM Theodore Brown wrote:
>
> > On Fri, Apr 26, 2019 at 6:10 AM Rowan Collins
> > wrote:
> >
> > I'm not particularly against this proposal, but I'm not sure how often I'd
> > use it.
>
> How often you use numeric separators depends on what you are doing.
> I d
) for the secondary vote to
remove PHP's short open tag in PHP 8.
This passes in favor with 74%.
Thanks for everyone who voted on this issue.
Best regards
George P. Banyard
By the way, has anyone thought about the GDPR impact of this change?
--
Thomas Hruska
CubicleSoft President
I
On 4/25/2019 12:57 AM, Côme Chilliet wrote:
Le jeudi 25 avril 2019, 00:11:42 CEST Thomas Hruska a écrit :
So I built a tool that meets the above minimum criteria and have already
run it against a fairly extensive codebase (and have shared the tool
with a few concerned folks - you've al
On 4/25/2019 12:26 AM, Stephen Reay wrote:
On 25 Apr 2019, at 14:11, Thomas Hruska wrote:
sed-based solutions do NOT work.
Neither of the two recommended options to date on this list are valid
recommendations for serious software deployment managers.
I have no issue with suggesting tools
x27;-ask' mode and let it
carefully modify a few thousand files by mashing my 'Y' key a bunch of
times pausing briefly to look at interesting changes (which really only
took a couple of hours and probably lowered the lifespan of that key on
the keyboard a bit). I hope others c
Hello,
I understand that breaking changes always need extra work, but in this case I
think it's a quick change. On my code base (mostly legacy with 1.8m lines), I
ran this and got 10 matches to check:
grep -rin " vsura...@gmail.com hat am 24. April 2019 um 15:41 geschrieben:
>
>
> FWIW,
>
>
dge of passing/failing at the moment and
could go a couple of unusual directions as already noted elsewhere.
This is probably the most interesting RFC *vote* to happen in a long while.
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will find useful.
but ''
would not - the latter, IMO, being more readable anyway. This doesn't
change the fact that I'd still want a utility to automatically locate
upgrade issues.
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will find useful.
> From: Steven Penny
> Sent: 04 March 2019 15:30
> To: internals@lists.php.net
> Subject: Re: [PHP-DEV] print with newline
>
> I think the best option is a new function like "puts" or "posix_puts".
I'm fairly neutral on the feature, but I disagree with this being a function.
It should be a langua
Hi Thomas,
I regularly go to the php.net homepage for the live documentation search
function just to make sure I'm using functions correctly. My most
frequent search is the date() function for the % code list. One of
these days I'll print out that docs page instead of looking i
comprehend code
example. Uh...Get Started?"
First time visitor: "Okay, that's great. Now tell me what is PHP in
words I can understand and what can I use it for and is it popular?"
A code example rarely, if ever, makes a good first impression.
--
Thomas Hruska
Cubicl
ns!
> * __sleep() and __wakeup()
> * Serializable
> * JsonSerializable
> * __set_state()
To me it's not clear why we need all these methods, for example:
$a = new A();
$aSerialized = serialize($a->toArray());
$aRestored = A::createFromArray(unserialize($aSerialized));
Apart from security problems, problems with versioning and unreadable data in
databases,
I don't see many benefits from using serialize()/unserialize().
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
r hard
drives via your application logs with deprecation warnings and crash
your servers. Have fun sorting that mess out!"
Finally, barring a serious security vulnerability, keywords should be
viewed as permanent fixtures of the language. They can't be deprecated.
That's why th
.org/ldgo8):
Output for 7.1.0 - 7.3.0
14
-1
{"price":45.99}
0.80.7999
Output for 5.3.6 - 5.6.38, 7.0.0 - 7.0.33
14
17
{"price":45.99}
0.80.8
what is the preferred way to upgrade from php 5.6 to 7.x in order to get the
same results?
Regards
Thomas
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On 11/27/2018 8:26 AM, Nikita Popov wrote:
On Tue, Nov 27, 2018 at 2:20 PM Thomas Hruska
wrote:
On 11/26/2018 2:42 PM, Nikita Popov wrote:
Hi internals,
When the silencing operator @ is used, the intention is generally to
silence expected warnings or notices. However, it currently also
ler to restore
previous (and almost correct) behavior is a bit obnoxious.
--
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 Intern
he site gets stuck like this is ~20
seconds. If I'm impatient, I can try again and it usually loads the
page right away.
--
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 use
ority over new features.
Bug #73535 is still open, unaddressed, and unmitigated...
--
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
trictures are implemented nowadays. That is, something like
>
> match ($expr) {
>"foo" => {...},
>"bar" | "baz" => {...},
> }
>
> or similar. This might need some more design work to ensure forward
> compatibility with potential future a
1 - 100 of 490 matches
Mail list logo