« first day (3931 days earlier)      last day (1014 days later) » 

12:07 AM
Using curl/libcurl with NSS backend fails to load curl extension ・ cURL related ・ #81276
 
12:44 AM
@Ekin @PeeHaa is Root shedding tons? My sister's husky is shedding a whole nother husky
It's funny, I just gently pull on his fur and a clump comes out. I can spend five minutes pulling clumps of fur and cover the floor.
 
@LeviMorrison You would need to register a fiber watcher, add fibers to a collection when switching to a fiber who's status is ZEND_FIBER_STATUS_INIT and remove when the status is ZEND_FIBER_STATUS_DEAD.
@NikiC Any chance we could prune some of those branches that haven't been touched in years?
@bwoebi Github has even made this largely unnecessary, as you can enable collaborators to push to PR branches.
 
1:14 AM
@Trowski This sounds like we could make it better, couldn't we? Does the engine not keep a list of all fibers for any reason?
@Trowski When a fiber switches, the from of the fiber observer will have the STATUS_DEAD already or how do I get that info?
 
@LeviMorrison No, there's no list of active fibers at the moment. Certainly something we could add, though there's not an immediate use for it either.
@LeviMorrison Yes. To be clear, the initial switch to a fiber, to->status will be ZEND_FIBER_STATUS_INIT. On the switch from a dead fiber, from->status will be ZEND_FIBER_STATUS_DEAD.
 
@Trowski How do I go from a zend_fiber_context * to the associated zend_fiber *, which has the zend_execute_data * on it?
zend_fiber_from_context?
 
@LeviMorrison Yes.
 
And that assertion shouldn't trigger form the observer API, right?
ZEND_ASSERT(context->kind == zend_ce_fiber && "Fiber context does not belong to a Zend fiber");?
I'm not sure what else "kind" gets used for.
 
I intend to use zend_fiber_context for more than just zend_fiber, so for forward-compat you probably want to check that kind == zend_ce_fiber.
An extension would also be free to use the zend_fiber_context API.
 
1:25 AM
ATM I'm thinking of using a weakmap on the zend_fiber -- a bit nervous about the perf and thinking we may want the ability for extensions to store data inline on fibers like zend_op_arrays and such.
 
@LeviMorrison In case it matters for what you're doing, the previous_execute_data pointer on zend_fiber->execute_data is manipulated when a fiber is resumed/suspended.
 
When the vm interrupt handler triggers, I need to be able to get the call stacks for every fiber so I can account for wall-time. Eventually I'll want to calculate CPU as well, and I think for that I'd want/need inline storage for it.
Do fibers have any concept of an "id", like threads and processes? I don't see it in any of the structs.
 
@LeviMorrison Say there was a void* on zend_fiber_context, what would you do if another extension used it? (Not particularly likely now).
@LeviMorrison Initially they did, but I removed it when it was suggested that the pointer value was sufficient.
Which… it mostly is I guess. Two fibers active fibers obviously won't share a pointer, but a new fiber could reuse a pointer from a dead fiber.
 
Pointer values can (and likely will) be reused; I would prefer that they aren't reused .
It makes for better aggregation. I suppose I can create my own 'id' with the fiber observer, but it may be helpful for others.
@Trowski I would make it so it's runtime sized, like struct hack or runtime cache.
During startup/minit zend and regular extensions can reserve an id, and then we allocate however many pointers based on that id at runtime.
 
If we added a void* to zend_fiber_context, you could generate an ID, etc. and store it there.
@LeviMorrison zend_fiber_context is not malloc'd on zend_fiber right now, that would need to be changed, no?
Or were you referring to the struct that the extra data pointer would point to?
 
1:36 AM
It can point elsewhere (like runtime cache does) or can be put somewhere (like maybe on the zend_fiber struct) via struct hack.
The fiber is definitely emalloc'd, right? It's a a valid zend_object and I think that's a requirement for it.
I don't understand the context vs fiber split, so I'm not sure if the latter is valid, but I prefer simpler things like struct hack when they are possible ^_^
 
@LeviMorrison Yes.
zend_fiber mostly is to represent Fiber objects and hold the data required for that API. zend_fiber_context is what's necessary for the fiber switch, and so could be used to implement something else that uses fibers under-the-hood (async/await for example).
 
 
1 hour later…
2:52 AM
PDO segfaults when using MSSQL ・ PDO related ・ #81277
 
 
4 hours later…
6:25 AM
@Trowski @LeviMorrison let's do this
this is the mechanism we have for extensions to reserve a resource relative to things (functions and eg), it adds a bit of weight to each fiber, but is future proof - or as future proof as other uses of the same thing - and familiar ...
inlining the zend_function would give you meaningful access to reserved resources for it, but it complicates things, this looks tidiest ...
 
 
1 hour later…
7:50 AM
good mornings
 
@Trowski @LeviMorrison we should probably also do this
 
8:33 AM
Hi
@NikiC are you aware of PHP Warning: Undefined array key 403 in /work/GIT/pecl-and-ext/imagick/build/PHP-Parser-4.9.0/lib/PhpParser/Lexer.php on line 324
PHP Fatal error: Uncaught TypeError: PhpParser\Lexer::getNextToken(): Return value must be of type int, null returned in /work/GIT/pecl-and-ext/imagick/build/PHP-Parser-4.9.0/lib/PhpParser/Lexer.php:364
(using the version bundled in 8.1.0beta1)
 
@RemiCollet Yeah, it's fixed but not released yet
guess I should do that
 
@NikiC also testJsonSerialization is failing wioth 8.1
btw, I confirm the fix is OK
 
9:19 AM
@NikiC So my conundrum from yesterday.

Code to initialise:
zend_class_entry **pce;
if (zend_lookup_class("PhpAmqpLib\\Wire\\AMQPTable", sizeof("PhpAmqpLib\\Wire\\AMQPTable")-1, &pce TSRMLS_CC) == FAILURE) {
return;
}

object_init_ex(application_headers, *pce);

Results in:

(gdb) printzv application_headers
[0x7fff151c3d80] (refcount=1) object(PhpAmqpLib\Wire\AMQPTable) #188 {
protocol => [0x7fec0e6ad680] unknown type 188
types_080 => [0x7fec0e6ad681] UNDEF
types_091 => [0x7fec0e6ad682] UNDEF
types_rabbit => [0x7fec0e6ad683] UNDEF
oops, that was a bit longer :-)
 
@Derick Looks like a bug in printzv
It should be skipping static props
 
oh boo.
there is a real crash too
 
or it should be iterating over default_properties_table and fetch the name from properties_info_table ... depending on whether it wants to print mangled private props
 
(gdb) printzv properties
[0x7f3af907c548] (refcount=2) array: Hash(0)[0x557b08ffe840]: {
}

(gdb) printzv application_headers
[0x7ffd0541c1e0] (refcount=1) object(PhpAmqpLib\Wire\AMQPTable) #188 {
protocol => [0x7f3af8cbc680] unknown type 188
types_080 => [0x7f3af8cbc681] UNDEF
types_091 => [0x7f3af8cbc682] UNDEF
types_rabbit => [0x7f3af8cbc683] UNDEF
data => [0x7f3af8cbc6a8] (refcount=1) array: Hash(3)[0x7f3af8dacb50]: {
[0] "X-IN-T" => [0x7f3af907de60] (refcount=1) array:
[1] "X-IN-S" => [0x7f3af907de80] (refcount=1) array:
And I can't find out why that crashes...
Any clues?
 
Well, as the assertion says, you didn't separate the properties
 
9:30 AM
Hello guys
I need small help
I am using netbeans for my php project but I don't know how to increase font size in project tab
and search window
anybody have any idea how to do it
 
@NikiC cheers, will have a look when i get back from the dentist
 
@Derick have fun :P
@Derick Just going through zend_update_property or some other property API should handle things automatically
 
9:59 AM
@NikiC Please include my readonly property/final const PR as well ^^ I'd like to convert the readonly PHPDoc annotations in the stubs to use the new modifier
 
10:21 AM
morning
 
10:58 AM
@MateKocsis Done, though I'm not sure readonly is actually a good fit for those
 
@NikiC Because of semantical differences? Or do you rather have BC concerns (libraries can't override them in a BC way with older PHP versions)?
 
@MateKocsis I assume you mean dynamic readonly properties right?
 
@NikiC Yes!
 
@MateKocsis yeah I don't think the semantics really fit there?
This is more "only get accessor" than "readonly"
 
@NikiC I agree, but as far as I see, the difference is not really visible for end users (but correct me if I'm missing something)
(TBH I'm not attached to the idea very much, so I'll avoid the conversion if you have concerns)
 
11:56 AM
@OlleHärstedt Adding to Larrys answer, while PHP is not perfect I can't think of a language with a better workflow. Either languages are compiled where you have to deal with constant delays (recompiling, restarting) that throw you off, or they are way too dynamic and provide little to no IDE assistance. PHP has the best of both worlds, and static analysis gives you most advantages a compiled language would.
 
12:25 PM
@IluTov I mean, if you wanna do FP you probably want type-checking, so the compile delay is inevitable, however you do it.
Not saying FP has nothing to offer PHP, of course. Just curious. :)
@Crell This might interest you, btw: discuss.ocaml.org/t/the-shape-design-problem/7810
(OOP problem discussed in FP domain by seasoned OCaml devs.)
Except salary, I'd say ecosystem is an important reason to stick with PHP.
 
@OlleHärstedt Compile time checks are good, and if they weren't slow it would be preferable to always have them. But given they come at a cost it's good to have them on demand.
 
@muniya what hasn't worked with what you've googled? Most people use phpstorm around here, if you're able to switch IDEs, it's highly recommended.
Pretty sure the EAP version is free forever
 
^ oof having some trouble making my team understand that they be using vscode and sshfs for you to give you an idea
1998 cavemen
 
@Tiffany I use netbeans. Is phpstorm better than netbeans?
 
yes dude
 
12:37 PM
@muniya Absolutely
 
@muniya definitely
 
@IluTov Hm, I have no numbers on that. Partial compilation is important when project size grows. I guess C++, Swift, maybe Rust are infamous for long compile times, but I have no idea for FP langs.
 
I googled how to increase font size in project tab and search result tab
 
@muniya it has a 30 day trial, give it a go
 
Well, you work with PHP core with C, so you'd know. :)
 
12:38 PM
but I didn't find anyhting
@Tiffany thanks. downloading phpstorm right now
@IluTov thanks
 
@OlleHärstedt I worked with C# for a while and compilation absolutely killed my workflow. They have hot reload now, maybe that improved the situation a bit.
 
@muniya File -> Settings -> Appeareance and behavior should have what you need
 
Pretty sure phpstorm allows increasing font size in just about everything. The accessibility for phpstorm has improved quite a bit within the past half-decade
 
ok
 
Granted, we also had terribly big projects. I'm sure if you split stuff up in a sensible matter you can improve compilation times.
 
12:42 PM
How big is terribly big? I think it's reasonable to demand big projects should be ergonomic to work with still.
 
I want a local dev environment at work x_x scping files or installing packages through rpm is cumbersome
Though I can copy/paste code into a file via cli in vim on server but still... I want a local environment
 
@OlleHärstedt Separation of responsabilities once everything is terribly entangled is almost a no go for any customer to invest money into it
 
@ln-s aye :(
I think I'd be happy with a bare metal install even though it risks "but it works on my machine" ... just being able to press "run" in an IDE is helpful
 
yeah or a stupid shell command
 
@ln-s That was not my argument. :) I was talking about the compiler speed.
Compilers should be able to handle big projects without killing developer workflow.
 
12:47 PM
Don't think it's the responsability of the compiler if you don't organize your work properly
 
You are indeed entitled to have that opinion. ^^
 
Feels like the equivalent of having a ton of cement and blaming it because it doesn't dries fast enough
 
@Tiffany yeah, the undercoat is too warm this time of the year :-)
 
@OlleHärstedt haha
 
Joke of the day? :)
I thought C did good in this regard?
 
12:54 PM
Compiling? GCC does very well in that regard
 
@OlleHärstedt C does good indeed
 
Hooray!
 
... but a 16 core machine makes c++ development barely viable
 
@NikiC trying to compile llvm?
 
Or a large video game.
 
12:57 PM
@NikiC Yeah... Wonder what the stats are for OCaml, Haskell, Scala, F#, etc.
 
One reason people moved to do a lot of game logic in stuff like Lua is to avoid needing to compile + link.
 
@NikiC Sadly, properties is not an IS_OBJECT, but an IS_ARRAY
NM
 
@Ekin does she allow you to brush?
 
Morning, all!
@Ekin \o/ Long time no hear.
 
1:17 PM
@JoeWatkins Couldn't we switch it to struct hack? Fibers can only be created at runtime, and extension handles are supposed to only be obtained during startup phase, right? It's just a memory optimization over a few pointers in the end, but figured I'd ask.
 
@LeviMorrison @JoeWatkins Is there actually a need for this, given github.com/php/php-src/pull/7293 ?
 
Inline storage is still nicer than external storage, because you have to map external storage using the fiber as a key somehow.
 
@LeviMorrison just use the object pointer as key
 
But, the PR you mentioned does make maintaining external storage easier if we do that.
@bwoebi It's still more costly in both memory and CPU, yes?
 
@LeviMorrison sure. but still should be relatively cheap
 
1:24 PM
I thought about using a WeakMap since it's technically a zend_object, but wasn't sure about that. I would still prefer the inline storage if we agree on it.
 
@Tiffany yeah, she likes it :D what's the name of your sisters dog btw?
@StatikStasis ohai @Statik, indeed, how's life?
 
@LeviMorrison this will work, but I think also yet a bit more expensive
 
Shall I use assert on prod or not
Docs say yes but I have my doubts
assert() is a language construct in PHP 7, allowing for the definition of expectations: assertions that take effect in development and testing environments, but are optimised away to have zero cost in production.
 
If you are using PHP 8, then I recommend using assert. If you are not, then I don't because the default INI settings in 7 are not as nice.
 
good call
Will add a comment because now we are still on 7
 
1:28 PM
@Ekin Great... except for being too busy to stream. How's vacation?
 
@StatikStasis ended last night :-) you've got any vacation time coming up?
 
I was just telling @PeeHaa last week, me and the family are taking a week off the second week of August.
 
Ah that sounds perfect :-)
 
@LeviMorrison which ini settings? sounds interesting ...
 
@hakre Default value of assert.exception changed in PHP 8.0.
 
1:36 PM
@LeviMorrison ah nice. but I have to admit that you have to configure assertions anyway when you want to use them, so for PHP 7 for me this is normally just the two, so on PHP 8 its then only one.
 
@hakre On PHP 8, you don't really need to configure them ;)
 
perhaps if display_errors is on, PHP should enable assertions automatically.
 
Unless you want to be risky and optimize -- that's your call.
 
@LeviMorrison so assertions are automatically enabled on PHP 8 per default?
like zend.assertions=1 ?
 
You'll get exceptions by default on PHP 8.0, yes.
 
1:38 PM
well that's not a production setting. didn't know for PHP 8 honestly, time to read the changelog.
 
completely missed that, awesome!

i made another function that always threw, for this reason, but i guess i can switch to assert now ( https://github.com/azjezz/psl/blob/1.8.x/src/Psl/invariant.php )
 
not the case for me. both:
$ php{,8.0} -i | grep zend.assert
zend.assertions => -1 => -1
 
❯ php -i | grep "zend.assert"
zend.assertions => 1 => 1
❯ php --version
PHP 8.0.6 (cli) (built: Jun 2 2021 01:03:12) ( NTS DEBUG )
Copyright (c) The PHP Group
Zend Engine v4.0.6, Copyright (c) Zend Technologies
 
@hakre That is a production setting -- turning assertions off is also a production setting, yes, but assertions in prod is still fine. In fact, that's what I would generally recommend as most people are going to write code based on that assertion being true. If you don't throw, it may just fail some other and less obvious way.
 
here: PHP 8.0.8 (cli) (built: Jul 1 2021 15:26:46) ( NTS )
@LeviMorrison sure, but you don't want to have the superflous assertion.
it's just showing what the defined behaviour with the code is.
 
1:43 PM
@MarkR Two nights in a row I had a hard time sleeping... this tea is great! //cc @Tiffany @Trowski
 
otherwise there is little benefit of (having zend.assert=1 in production).
 
assert(cond) is nicer than if (!cond) throw new Exception(); at the very least :)
 
yep, most cases this is how i would use invariant():

invariant(is_readable($filename), "File ( '%s' ) is not readable", $filename);
$content = read_file($filename);

using assert and having it off would be problematic.
@LeviMorrison yes, but the risk of having it off :(
 
@LeviMorrison well the later has the exception in the public interface. the assert() does not which you can use for backward and forward compatibility (with the exception you can't use that).
next to that you can use assert() for runtime heavy (expensive) assertions.
 
@SaifEddinGmati Yes, yes, but this is an optimization that someone has to specifically enable.
Assert shouldn't be used for every exception -- just ones that are checking for invariants.
 
1:49 PM
Asserts are for bugs - a failing assert should mean there's a bug in the code. Exceptions are for communication with the "outside" world.
 
OpenSSL v/3.0 compatibility ・ Compile Failure ・ #81278
 
@OlleHärstedt Yes, exactly.
 
agree, but it could also lead to bugs when it's off in development stage, and the user doesn't know that, for example, @hakre has it off by default in 8.0.8
 
@SaifEddinGmati that's just the production setting. in CI and tests I have it on, also for PHP 7.
I found these insightful to this regard: PI: youtube.com/watch?v=1QhtXRMp3Hg PII: youtube.com/watch?v=tz2khnjnUx8
 
i will look into replacing invariant() with assert() in the next PSL major, but i have my doubts
 
1:55 PM
@SaifEddinGmati It defaults to being on for PHP 8.0, so it's only off if someone changed it.
There are multiple assertion ini settings -- you'll just have to read the docs.
One controls if code is generated, code is generated but jumped around, and not generated at all. The other controls what the code does; does it warn or throw? There's also something with a callback but I haven't ever seen that bit used, so I don't know that much about it.
 
@LeviMorrison wow, yes, PHP 8 then ships with development settings: php.net/manual/en/ini.core.php#ini.zend.assertions
> zend.assertions int // When set to 1, assertion code will be generated and executed (development mode).
 
Yes, because it's the only "safe" thing to do. You are welcome to turn it off (your choice, because it's not generally safe).
 
I wonder if that is also the stance for display_errors setting.
@LeviMorrison well but is this a PHP 7 -> PHP 8 change?
Because if zend.assertions was not 1 with PHP 7 and if it is not listed as backwards incompatible change, I would consider this a no-go.
 
The PHP 7 -> 8 change is that it defaults to throwing an exception instead of emitting a warning.
 
@LeviMorrison okay, fine then. didn't know either that PHP 7 is shipping with development details regarding it. ;)
 
2:42 PM
I am trying to use set_error_handler to only log some specific errors but in the documentation I see ErrorException and we are using Exception to log exceptions. Is possible with Exception and have implemented correctly?
   public function customErrorHandler($code, $message, $file, $line)
    {
        // Determine if this error is one of the enabled ones in php config (php.ini, .htaccess, etc)
        $error_is_enabled = (bool)($code & ini_get('error_reporting'));
        // -- FATAL ERROR
        // throw an Error Exception, to be handled by whatever Exception handling logic is available in this context
        if ($error_is_enabled && in_array($code, array(E_USER_ERROR, E_RECOVERABLE_ERROR), true)) {
            $message .= ' code: ' . $code;
 
@luffy please can you describe what is not working precisely? Having you say that is easier than trying to read your code, and guess what is not working.
 
3:09 PM
@luffy should be set_error_handler([$this, "customErrorHandler"], E_ALL); i guess ( or set_error_handler($this->customErrorHandler(...), E_ALL); if you are using PHP 8.1 :p )
 
3:34 PM
Why does this work? Or how?3v4l.org/GWZ9E
 
<?php
function set(?bool &$value): void {
    var_dump($value); // &$array[0] is null
    $value = true;
}

$array = [];
set($array[]); // == $array[] = true;
               // == $array[0] = true;

var_dump($array);
 
Oh, ok. That kinda makes sense.
 
Inconsistant parsing with simplexml_load_string function ・ SimpleXML related ・ #81279
 
@CanVural I'm not sure of your skill level. Generally, if you're a beginner, only use references if you have a very specific use case. And even then, try to find a way to avoid using references because it can have undesired side effects or confusing behavior
Learning how to use references is a good enough reason, but understand that they don't always work how you'd expect
 
@Tiffany Yeah I don't use references. I just saw this code in a Github issue. And was wondering how it works.
 
3:44 PM
Fair enough
 
@luffy if not in error_reporting this has been configured to not go into the error channel (hence the reporting level). looks like there is a lot of re-invention of the wheel, cargo and a sweet pound of whipping cream on top.
set_error_handler(static function ($errno, $errstr, $errfile, $errline): ?bool {
    if (!(error_reporting() & $errno)) {
        return false;
    }
    // non-throwing deprecations (optional)
    if ((E_DEPRECATED | E_USER_DEPRECATED) & $errno) {
        return false;
    }
    throw new ErrorException($errstr, $errno, $errno, $errfile, $errline);
});
this allows to keep track of deprecations in the log (e.g. for doing migrations) and have the rest throwing which gives stack-traces in the log. so if you have many errors currently, bring the error rate in the log down first as after activating there will be more information in the log.
@luffy and I would consider to drop: $e = new \Exception($message); $e->logError('logic', $file, $line); as that when you log, there is no need to create an exception. Either throw the exception or pass the error message to the standard error log. never both. and no need to add an extra logger.
 
 
1 hour later…
5:29 PM
too warm for coding, having some drum n bass: youtube.com/watch?v=nF_Dk3rE41I
 
5:47 PM
@Danack What is the temperature there?
 
ok, so before I answer that. Let me explain:
The house I live in is built in about 1790, when the temperature in the UK was a bit cooler in winter, and so it is built to only retain heat, and doesn't have any airgaps between the inside and outside walls, so when the wall heats up, it gets warm.
it's 29C - which is a lot cooler than sydney was, but yeah......the walls are warm also.
 
@Danack I assume that is in most of the UK
 
a lot were built in the 1930s, and then 1980s. Both of those are a little better than solid sandstone for keeping heat out.
 
@Danack Yeah, that's fair and I'm sure you don't have central air conditioning in most homes in the UK.
 
actually - fewer were built in the 80s than I thought apparently: statista.com/statistics/292252/…
 
5:52 PM
I was working outside yesterday when it was 32°C, so… I guess I'm just nuts.
Minnesotans are a bit crazy. -35°C in the winter, 35°C in the summer.
 
it's 31c right now in my server area, with a fan exhausting hot air as quickly as possible. I've got 1 fan in my office and 2 in my bedroom and im sitll melting
 
29 degrees here... it's like my area stole the mild weather
normally sweltering
 
@Tiffany We've had more days already this summer above 90°F than we usually have all year.
 
yeah, that's usually how it's here, through most of July and August. Ten day forecast, the hottest temperature is 31 degrees
 
Seems all the hot air is going more north this year.
 
6:04 PM
aye
 
I've only mowed my lawn twice this summer. No need anymore, it's all dead.
 
that sounds like here last year
 
@Trowski okay on 7292?
 
@JoeWatkins Yeah, on zend_fiber_context makes the most sense for forward-compat.
 
6:20 PM
morning all
How can I detect (using reflection) if a property was declared as ctor argument promoted one?
 
6:31 PM
@brzuchal RelectionProperty::isPromoted()
 
7:09 PM
Well, I guess Mike is putting his money where his mouth is, six PRs to web-php. But it is nice to see.
 
7:29 PM
@Tiffany If you felt so inclined, the method above is undocumented.
 
Most of the Reflection class/methods are undocumented x_x. I need to improve my understanding of Reflection before I feel confident documenting it. Maybe after I get some other stuff completed.
 
Reading about duck typing in Python, is duck typing really just another word for no typing? It sounds like it can be summed up to "Let's hope the objects have this functionality"
 
@Tiffany I need to look at contributing to docs myself. There's just so many hours in the day though.
 
@scorgn pretty much the same as doc-block typing is my understanding.
 
@scorgn Basically yes
 
7:39 PM
Hmm, I must have missed the commenting part. Everything I'm reading is showing examples like...

`car.drive()` # The car has the drive functionality so you can use it
table.drive() # The table doesn't have the drive functionality so you can't use it
 
I meant doc-block. So like PHP < 5.0.
 
Right, that makes sense, I just didn't see doc-block typing in the python examples of duck typing. It seemed like it was just summed up to "Type doesn't matter, what matters is if the object has the functionality". Which seems more than obvious haha
 
@Trowski RFC to increase hours in the day
(same problem for me)
 
@Tiffany I don't think it will pass without an implementation.
 
 
1 hour later…
8:56 PM
@PeeHaa \o/ Welcome back from vacation!
 
ugh
:P
 
@PeeHaa Do you have a vacation beat for me?
 
Nope :) Didn't bring the monitors
 
9:46 PM
Can someone with PHP inftastructure knowledge do something please about the failure notice from the mail daemon?
FYI, this:
Hi. This is the qmail-send program at lists.php.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<php-notes@lists.php.net>:
Sorry, only subscribers may post. If you are a subscriber, please forward this message to php-notes-owner@lists.php.net to get your new address included.
 
user4717133
hello guys
 
user4717133
i have this output from var_dump:
 
user4717133
["priv_array_long_name":"FooBar":private]=>
array(2) {
["a"]=>
int(1)
["b"]=>
int(2)
}
 
user4717133
this is a print of object that store a instace class
 
user4717133
it is reproducible with reflection??
 
user4717133
9:55 PM
"priv_array_long_name":"FooBar":private
 
user4717133
or other way??
 
11:45 PM
@FranciscoNúñez-TodoPoderoso yes, this should be reproducible with reflection, you can access private properties of a class with reflection. see php.net/manual/en/class.reflectionproperty.php and php.net/manual/en/class.reflectionclass.php - get the reflection property on the reflection class, then make it accessible on the object (instance) you want to read from and finally get its value.
 

« first day (3931 days earlier)      last day (1014 days later) »