« first day (2400 days earlier)      last day (2773 days later) » 

02:15
@Wes Awesome, I want one
lol
02:58
guys
03:43
Hi guys...
I've got stuck with the issue PHP Fatal error: Class 'PDO' not found. I could not find where I missed. Can anyone help me to resolve it?
Wes
Wes
03:54
you don't have the PDO extension installed @CJRamki
04:10
But it was previously worked.
it is in godaddy server
what value i need to check with phpinfo() ?
04:23
@CJRamki the PDO extension should be enabled if you have a godaddy shared host
it might be another problem
how do you call your PDO class @CJRamki ?
morning
Wes
Wes
morning
Wes
Wes
!!lxr ZVAL_BOOL
04:36
[ /Zend/zend_types.h#669 ] `#define ZVAL_BOOL(z, b) do { `
\o
friday
Wes
Wes
#define Z_TYPE_INFO_P(zval_p) Z_TYPE_INFO(*(zval_p))
i think i need some kind of supernatural support to handle this kind of things
like, all religions
what's (zval).u1.type_info? why the parentheses?
it's a kind of convention when writing macros
think about what happens when you pass expr to a macro
(it may be compiled wrong or generate warnings if parens are missing)
Wes
Wes
can't reach the definition of zval on lxr. u1 must be a struct property or something
04:44
"zval" is name of param
!!lxr _zval_struct
[ /Zend/zend_types.h#179 ] struct _zval_struct {
probably raises more questions than answers ...
the struct is full of magic since ng
Wes
Wes
lol :P
basically we abuse unions so that type_info can be set with one instruction, and we can read v members with one instruction
ZEND_ENDIAN_LOHI_4 makes sure that v members are in the correct order for the hack to work
also, never peek behind the curtain, it's scary behind there, bad things are happening ...
Wes
Wes
i agree, but nothing is commented i have no idea what things do, so that's my only option to hope to understand what's going on :(
also naming is terrible...
or do i have to do if is string ZVAL_STR, if is bool ZVAL_BOOL etc?
04:53
there's no ANYTHING in C, well actually there is ...
(the latter)
Wes
Wes
what i'm doing is assigning a zval to a struct property. i've seen it's done with ZVAL_WHATEVER(&str.prop, val)
i don't care what the type is, i mean... it's a zval, it's the only thing i know
oh you use ZVAL_COPY
ZVAL_COPY(target, source) where target and source are zval*
Wes
Wes
great :D
posted on May 12, 2017

New Cyanide and Happiness Comic

3
hahha
Wes
Wes
05:03
what are the flags for constants? e.g. CONST_PERSISTENT | CONST_CS
ok i get _CS. no idea about PERSISTENT
Wes
Wes
when are constants free'd?
when zend shuts down
Wes
Wes
so why would i have it persistent? like, across multiple threads or something?
@CJRamki please don't use GoDaddy
05:08
persistent here just refers to the kind of memory zend should use when registering the constant
persistent = system memory (malloc, not emalloc)
from an extension, most constants should be persistently allocated, but you may register a user value as a constant, a user value requires a different dtor and free function (as you can see from code linked) ...
see ?
Wes
Wes
not really no :B but i'll just ignore it for now
i have accepted that aiming to deep understanding is almost impossible. this is about "trying till stuff works(TM)"
also what's that ZEND_API prefix some functions have?
programming: this is about "trying till stuff works(TM)"
it exports the symbol
(so that you can use it from another shared object/binary)
stuff that is not ZEND_API can't be used in an extension
Wes
Wes
@JoeWatkins that's not how i usually do stuff, i promise
well most stuff, unless it inlined in a header, or a macro ... which is quite a lot of php ...
Wes
Wes
but really i'm struggling doing anything. from your perspective php might seem easy, but from my perspective it is hell not... consider i'm generally bad at everything... imagine with an alien language like C is... :B
05:18
I'm not judging, I used to feel clueless also ... there are still parts of php that make me feel clueless
Wes
Wes
also i have bad memory for stuff i don't usually touch
like right now i'm trying to remember again (looked it up at least a couple of times already...) the difference between pointers and references
gods
another thing regarding constants... what's module number?
assigned upon registration of the module
Wes
Wes
purpose of that? namespacing them, or something
it uniquely identifies each module with a number is all ... it's used in constant and ini logic
and here
other places the actual module struct itself is used ... like class and function structures ...
for more obvious reasons (reflection based things)
Wes
Wes
lxr.room11.org/xref/php-src%40master/Zend/zend_constants.h#42 what's the scope of module_number here, as it's not an argument of the macro
05:26
it's passed to MINIT as argument, and those macros are meant to be used in MINIT
Wes
Wes
i don't even have a minit function. is that wrong? :B
you should only have one if three are things to do at MINIT time
registering constants or classes, or otherwise initializing 3rd party code is normal use case
Hello, whats the most secure response to give back to a client that has sent a username and password that gets verified by the backend as valid/invaild? Is it enough to just respond with valid or invalid?
Wes
Wes
don't say "your username is valid but the password is not" @Nonlin be vague, like "the combination of user & pass you entered is invalid"
if that's what you are asking for
No, I don't say exactly what is wrong, like username is wrong or password is wrong. I only respond with false to indicate the login didn't work.
But is that secure?
and true if it did work so my app can proceed
Wes
Wes
05:39
not sure what you are asking
so what if the constant definition is started by userland code but it is done through my extension @JoeWatkins ? that would be not a module constant, my extension only allows to define constants... in that case, what module_number should be set to?
not sure where the confusion is at?
Wes
Wes
"respond with false" like how, on screen? setting a cookie?
in other words, constants defined with define() what module_number will get?
@Wes it shouldn't be set, it should be registered as user constant
Wes
Wes
so null? 0?
@wes Right now my PHP just prints false or true and I read the html to determine the result and my client side app does what it needs do with that result.
05:48
opcache do not update class constant after uopz_redefine – #74576
Shock horror, uopz and opcache don't play nice with each other
Wes
Wes
i've finished. 30 lines total. took me 3 hours to write
now compiling :B
i like this having absolute no clue of what i am doing and confidence that stuff will just work
06:30
@Trowski @bwoebi I thought we decided on just dropping the reference on close() ?!
Memory corruption in zend_string_extend – #74577
06:45
!!dad
"Ill call you later." Don't call me later, call me Dad
@Jeeves lol
@Linus Mhm. You're boring.
@Jeeves yeah i know :)
@Linus Don't wink at me.
06:46
:P
Wes
Wes
get a room you two
sorry
Wes
Wes
lol... was a joke
but it gave me attack...
Wes
Wes
wat
06:57
i thought you get disturb
yes, he was traumatised
@Jimbo sounds good. two minor things: "hidden magic frameworks use" is unclear to me. no clue what that's supposed to mean but it roughly sounds like ""unreadable hackery" to me, e.g. bad practise. second: "suit Software Engineers interested in progressing their knowledge on Software Architecture" gets across a bit high brow to me. why not suited for any developers wishing to advance their skillset?
Wes
Wes
@Linus it's a joke. when two people (or bots) are very friendly with each other you suggest them to rent a room so that they can be completely friendly with each other
!!urban get a room
[ get a room ] Derisive or humorous comment said to couples engaged in heavy-duty [PDA] (e.g. [swapping spit] in the middle of a party) that means your wanton lust is making me uncomfortable (or jealous). The implication is you should get a motel room because you're practically doing it here.
Wes
Wes
yeah, that lol
07:02
ah i didn't know :)
@Wes noob
1, 2
Wes
Wes
lol
@pmmaga i'm on C today. will do the tests, hopefully :B
morning
Wes
Wes
how do i convert zend_string to char?
07:14
morning tereško
"supdude" -> 's'?
Wes
Wes
@littlepootis i don't know. is char in C a single character or... sigh
There's no good reason to use NodeJS http://bysin.net/2017/05/07/no-good-reason-to-use-nodejs
comments? ^
Wes
Wes
const char *name
shouldn't it be
const char[] *name
Great C++, Rust
Pretty Good Java, C#, Scala, Go
Meh Ruby, Python
Garbage Javascript, PHP
@Wes well, it is
you probably want to convert zend_string to char const *
Wes
Wes
07:29
yes.
gooood mornin!
!!lxr struct zend_string
[ /Zend/zend_types.h#87 ] typedef struct _zend_string zend_string;
So... ptr_to_zend_string->val.
Wes
Wes
there is probably a macro for that, do you know the name? :B
there's a macro for everything. literally everything :B
07:32
Hi all!
Wes
Wes
hi
@Wes I'm very new to PHP and I need help
See I'm working with Facebook API and I got this error
"message": "(#100) Parameter since: Must be a unixtime or a date/time representation parseable by strtotime()",
Wes
Wes
@littlepootis brainfart. wait. ok that, but i think i need to release the string after i use it.
I put the edge parameters like unitl: now & since: beginning
I think since: beginning is not int PHP strtotime() right ?
How do I mention beginning of time ?
@Gordon he's missing the point why people use javascript or php. The "but it's faster" never even crosses their minds.
07:38
@Wes No, that would be a pointer to the pointer to the first element of an array of const chars.
morning
Helpme
Sample code error – #74578
Wes
Wes
07:45
@tpunt thanks. it did something but it's very wrong. i'm defining a constant and it gets set to a completely unrelated value
["LOL�es�"]=> string(18) "HTTP_CACHE_CONTROL"
should be
["LOL"] = "WAT"
i have no idea what es is
ok got the value set but still no clue about "es"
Wes
Wes
got it working. except that sometimes it crashes
Morngingins
08:01
morning
o/
morning
Anonymous
mron
Anonymous
!!wotd
imprimatur: sanction or approval; support.
08:25
morning all
mornes o/
@RajaSimon the beginning of what?
Wes
Wes
08:41
@JoeWatkins sorry to bother you again... pastebin.com/EMkBULSD this is wrong, right? i can't use the string like that for a constant name. that works but after i reload the page a couple of times something goes wrong. i think i need to make the string persistent
actually, i think i just need to remove the CONST_PERSISTENT flag
because that's per-request defined and i want to free the memory when request ends
omg i might have figured out something myself
holy shit it works :B
09:04
What icon best describes signup?
A lock / a user with a plus
Thanks... User with plus it is
hmm, dungeons 2 is for free at Humble but it requires a login. I dont wanna sign up. its not free if you want my signup
1 message moved to bin
09:13
mornin
lol
engine?
Wes
Wes
yeah
09:16
@Wes are they the most interesting things about a race?
...after crashes, of course
Wes
Wes
they ?
the repairs, breakdowns, etc.
@PeeHaa thanks for the reddit post!
Wes
Wes
lol no. it's just fun that honda made an engine that lasts literally half a lap and then explodes
@Sjon No problem. I hope you will be able to get a proper bottle soon
09:22
@PeeHaa I'm blown away by the positive replies and donations coming in. It's awesome
Yeah you deserve it. Shouldn't have done it sooner :)
Glad it works out
@PeeHaa cheers
Sjon congrats :)
Anonymous
@PeeHaa is one busy this fine weekend?
Only on Sunday when I will get drunk if Feyenoord doesn't fuck it all up again
Anonymous
09:35
well i've had a shit week sooo rust or webnews at some point :D?
I think I can do that yeah
Ping me whenever you want
Anonymous
@PeeHaa
Have you heared that EC of JCP recected Jigsaw - Module System for Java?!
And it won't propbably be in Java9
@Linus It's nice because I'm excited to add even more features now :)
Anonymous
09:42
@Sjon like the source code ;) ?
@JayIsTooCommon haha, not sure if that's useful to anyone
I think not in subject
I did publish readable javascripts; but all users I pointed to that still expected me to debug it for them; so ...
@Sjon I know there are a few in here who would happily contribute time to maintenance/help to add new features, if nothing else. I'd certainly be happy to help triage reported issues.
Anonymous
the ability to render html could be handy
09:46
That also would be good but there are a lot of associated issues there
both security issues and it would need to be done in such a way that people wouldn't start treating it as free web hosting
Wes
Wes
@Sjon i would also help with the ui. i tried once, remember? :B sorry for that. i'm a disappointment to everyone
@Wes not to me, I still think the logo is awesome and if you ever have any additional ideas I'd love to see them!
@JayIsTooCommon yes, maybe with an extra tab with a warning and a render button
Have you guys already bought tickets for PHPNW?
@Wes nope, you're a disappointment to yourself. Everyone else is happy with what you do and would rather you stopped putting yourself down...
@DejanMarjanovic yes
Anonymous
@DaveRandom pfft stop flirting.
@Sjon in order to be actually useful it would probably need to be rendered through a web SAPI - without the ability to use $_GET and $_POST etc it would be of limited usefulness. It's a super hard problem to solve without leaving yourself wide open to abuse. Did you ever use viper7's codepad?
@DaveRandom Been there.. it's not done however. If I didn't have to handle abuse it'd be much easier
@DaveRandom no I didn't use that but I have some imagination
Someone here famillar with Google Analytics link tracking? ;p
Wes
Wes
09:52
@Sjon i had to stop, then i've never resumed... but was almost complete... lol i.imgur.com/ErC3lxg.png
@Sjon it was really nice but it doesn't exist any more, I think mostly because he just couldn't get enough contributions for the upkeep :-(
Wes
Wes
@DaveRandom i would just for once finish something......
ibuildings.paydro.com/dutch-php-conference-2017 what about this one, people from here coming? /cc @PeeHaa
I guess nobody goes to Turkey one :D
Ha that's not far from here.
@Wes Oh sorry, clearly we haven't met. I'm @DaveRandom. I don't finish things.
09:53
Been in the RAI once before.
@DejanMarjanovic I am still thinking
Dpc is waaay too expensive for me
@DaveRandom so tell me about the features it had?
Wes
Wes
@DaveRandom i actually think i have a mental problem. it takes me 1% of time to do 99% of work and 99% of time to do the remaining 1% of work
@PeeHaa Is a bit expensive :\
checking prices
oO, indeed pretty expensive.
09:55
@Wes that's really inspiring! I like it; even though the vertical design is still a bit hard to get used to. Maybe as alternative layout. Let me digest that screenshot for a while
But I guess the price is not even close to: zendcon.com :)
Wes
Wes
@Sjon i can add a layout switch. i would really like being able to compare panels horizontally, like if i put my cursor on the panel 1 on line 5, line 5 will be highlighted in all other panels
I mean all inclusive price
@Sjon Well the two main things it had was selectable PHP versions - at the time I think it was 5.2.x, 5.3.x and 5.4.x because they were the current ones, although it would only execute the code on the one specific version you chose. But it sent everything through fastcgi which meant that web SAPI stuff worked, you could put stuff like single file form submissions in to it, and output was rendered directly into a <div> as HTML
@DejanMarjanovic except me :P I think NikiC is presenting there as well though, that's if he didn't change his mind.
09:58
@Wes you don't happen to have working js/css for that? :)
Oh another nice thing it had was a navigable tree of history, so like your "based on xxxxx" thing but showing a complete tree back to the initial paste
@DaveRandom that's easy. Keep them coming :)
I'm updating my todo.txt
Wes
Wes
@Sjon ?
@Wes you just described software development
@Wes Is your screenshot a photoshop or html ?
Wes
Wes
10:00
it's html. but it's crap. just a prototype, with inline style="" and everything
@Sjon Seriously would love to help out, even if you just kept it as a private repo, I'm sure @PeeHaa is agree
Wes
Wes
maybe i will have another go at it when i finish amp's logo... :B
I is agree
:D Thanks, let me think about it some more :)
Wes
Wes
TEST 3824/11660
which will finish first, my life or php's tests :B
jees. it's been hours...
10:02
The fuck are you doing?
php?
Wes
Wes
php tests yeah
procrastination
Wes
Wes
also
i'm actually trying to be useful for once. attempting to write tests for the rfc... :B
Anonymous
@PeeHaa do you have perms to merge github.com/php/web-php/pull/154 ?
when you have to debug someone else's site to work out the real reason behind their generic unhelpful error message
@Wes hours suggests something is broken, they don't take hours, unless you're on a raspberry pi
Wes
Wes
10:09
i'm on windows. so yeah
@JayIsTooCommon Nope. No karma. Sorry
Wes
Wes
actually the problem is sometimes it hangs for no apparent reason. i thought it was the network tests but i've checked the code it's just trivial stuff...
The most useful thing about bit.ly is you can keep track of how many people you got with a rebecca link
Wes
Wes
TEST 1564/11660 [E:\php-sdk\phpdev\vc14\x64\php-src\Zend\tests\jump12.phpt]
this for instance took like 20 minutes...
oh windows
heh, nobody cares about that
10:12
@Wes wat
Wes
Wes
@DaveRandom eh...
@kelunik right, and calling it end() … or? \cc @Trowski
@Wes attach the vs debugger, see what it's doing
it's a fucking huge pita to set up but once you have it set up it's really useful
twitter.com/leighzaru/status/862973305711714304 <-- how is this "no problem at all"?
@Wes are you sure it didn't just time out?
Wes
Wes
10:16
@bwoebi it resumed...
now i'm at about 5000 tests out of 11k
well… there is a timeout on each test, I believe on the ballpark about 1k sec
@Leigh lol
Anonymous
@Leigh you're talking to a script
@Jeeves could do better
@Leigh Or worse!
10:18
lol
Ah, @Jeeves always manages to make me smile :)
@Leigh That's because I like it when you're happy.
Anonymous
aw
Wes
Wes
@DaveRandom do you happen to know how to run-tests.php to a Release_TS build
doesn't nmake test work?
Wes
Wes
10:22
do you know how to --show-diff on that?
(I haven't built on wind for ages, forgotten a lot of things)
Wes
Wes
i want to run a specific phpt only
oic
no
I'd have to look at the makefile
Wes
Wes
i have no idea why it says it can't find the tests. paths are correct... and absolute
got it working from the snap... better than nothing :\
@bwoebi no, end already exists and is a graceful end.
10:50
does someone know if selenium IDE supports Selenium Standalone Server 3?
Wes
Wes
@bwoebi around?
@Wes yes
Wes
Wes
so i'm writing the tests for "allow abstract method override" if you remember the rfc. i'm having difficulties as i don't know what to cover... writing too many tests already
should i just check if abstract to no-abstract etc works or i should also cover it in combination with variance?
Hard question to answer… more tests in this regard is usually better.
Wes
Wes
so it's ok if i throw in anything i can think of
basically any combination of variance, abstract, non abstract etc
11:02
you don't need to combine everything
but you should test everything standalone and perhaps 1-2 tests which combine things
otherwise you'd really have too many tests^^
Wes
Wes
@bwoebi spotted this though. it's probably expected 3v4l.org/8oZtB
@Wes yeah, we do not allow variance except in well-cosen cases for now
Wes
Wes
so yeah that's the kind of things i shouldn't try testing :P i have no idea without knowing the code... i'll just keep it simple...
@bwoebi spotted something else... cannot make non abstract L2 abstract in L3. this too should be allowed.
abstract class L1{
    abstract function m1(L1 $x);
}
class L2 extends L1{
             function m1($x): stdClass{}
}
abstract class L3 extends L2{
    abstract function m1($x): stdClass;
}
11:19
@Ekin I would go there just for NikiC and maybe Rasmus :D
I mean, are you guys going?
Well, I have my tickets and travel sorted out for 19th-22nd.
I wonder if @NikiC changed his mind for phpkonf or will he be presenting on 20th.
I kinda remember @Gordon said he might consider months ago, but unsure now.
I just wish NikiC would give his static optimization talk at phpkonf instead of phpday :P
Wes
Wes
11:36
is niki at phpday?
i've lost the opportunity to annoy him on person :( :B
Some of my colleagues are there, one has a bomb :-)
@Ekin Please ping me if they are coming so I can book a ticket(s) :-)
@DejanMarjanovic Not as funny as you probably thought it was
No, it's not a bomb, it's electronic device/box which was screened for explosives because of his looks :-)
So.......that Yasuo.
No notice – #74579
11:47
@Danack Ain't nobody got time for that
Wes
Wes
@DejanMarjanovic a bomb? :B
@DejanMarjanovic it's in my head....so now it's in yours:
Wes
Wes
that's wrong...
Anonymous
hahaha
Wes
Wes
why isn't nobody offended by that yet? :B
11:55
@DejanMarjanovic sure
@Wes there's a funny to offensive ratio, like the crazy : hot ratio. So long as you're on the good side of the line, you're fine.
fopen() cannot handle urls longer than ~8k – #74580
@Wes it's an open API, but they have not allowed full security audit
@Jeeves exclamation points really help convey information!
Hello folks
11:59
@Danack And that makes you smarter than me?
Yes.

« first day (2400 days earlier)      last day (2773 days later) »