PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Apr 25, 2020 22:58
is there a way to take a file descriptor and convert it to a php_stream struct?
Jan 4, 2020 23:59
for a zend_object_write_property_t function, where it says we must return the final value of the assigned property, is this just us returning the value parameter back?
Jan 31, 2019 23:26
I'm jealous.
Jan 31, 2019 23:19
but is it below 0 (in Fahrenheit)?
Jan 31, 2019 19:53
Good to know, thanks again!
Jan 31, 2019 19:46
Nevermind, it's leaking, but I don't quite see why.
Jan 31, 2019 19:43
@NikiC: If you have a moment again, I fixed the persistent strings, but am getting a similar error (same assertation), but it appears this line is causing it, github.com/markzz/php-alpm/blob/master/src/alpm.c#L1267, the macro is here, github.com/markzz/php-alpm/blob/master/src/alpm.c#L1202L1212
Jan 31, 2019 19:17
Thanks for explaining to me though.
Jan 31, 2019 19:16
I'm glad it was put in then.
Jan 31, 2019 19:15
That makes sense. I'm just surprised that only showed up in 7.3.
Jan 31, 2019 19:14
Silly me.
Jan 31, 2019 19:14
Gotcha
Jan 31, 2019 19:14
@NikiC: I guess I misunderstood what persistent here means.
Jan 31, 2019 19:12
Hmm, strange that it worked this way before.
Jan 31, 2019 19:12
That's where it's being created.
Jan 31, 2019 19:11
I didn't change anything in the code when 7.3 was released, and now this is happening.
Jan 31, 2019 19:07
php: .../php-7.3.1/Zend/zend_variables.c:73: zend_string_destroy: Assertion !(zval_gc_flags((str)->gc.u.type_info) & (1<<7))' failed.`
Jan 31, 2019 19:06
Did something change in 7.3 in string creation with zend_string_init()? I'm having an issue with its destruction.
Jan 31, 2019 19:05
nuke that server
Feb 4, 2017 23:06
@NikiC Thanks.
Feb 4, 2017 23:04
@NikiC Would you know who might know?
Feb 4, 2017 23:04
@NikiC And it works and a few of us in the project's IRC channel are curious.
Feb 4, 2017 23:03
@NikiC The command I use is php -S localhost:8080 -t web/html. I'm not specifying a script, unless it's then assuming index.php.
Feb 4, 2017 22:59
@NikiC The project uses urls that nginx rewrites /index.php/xxx to /xxx, so it uses PATH_INFO to route the pages. For some reason, with php -S, it seems to do this without configuration and is confusing me.
Feb 4, 2017 22:56
@Exception No, 00000001 << 8 = 00000000
Feb 4, 2017 22:55
@NikiC: Would you possibly know the answer to my question wayyy above?
Feb 4, 2017 22:53
You cannot have 9 bits in a byte.
Feb 4, 2017 22:52
PICK ME
Feb 4, 2017 22:52
OH I KNOW!
Feb 4, 2017 22:50
Because writing 32 or 64 bits is annoying.
Feb 4, 2017 22:48
<< and >> are binary operators, which we aren't used to thinking in.
Feb 4, 2017 22:47
Same.
Feb 4, 2017 22:43
I have an idea, let's say I'm limited to 8 bits, 11111111 << 6 = 11000000.
Feb 4, 2017 22:40
Just like 144 is the same as 00144.
Feb 4, 2017 22:40
Because for 144, 10010000 is the same as 0000000010010000.
Feb 4, 2017 22:39
And the ones on the left are just shoved over.
Feb 4, 2017 22:39
Pretend I grabbed from a NEW pile of 0s and stuck them at the end.
Feb 4, 2017 22:37
It's moving all the bits to the left.
Feb 4, 2017 22:37
0010010 << 4 = 100100000
Feb 4, 2017 22:34
I do have a question of my own though, I'm working with a project called aurweb (git.archlinux.org/aurweb.git) and we can run php -S to test things and we're curious how it knows to rewrite /index.php/xxx to /xxx?
Feb 4, 2017 22:32
18 << 3 = 144
Feb 4, 2017 22:32
err, I meant << 3
Feb 4, 2017 22:31
No, another example... 18 (00010010) << 4 = 144 (10010000)
Feb 4, 2017 22:28
7 in binary is 00111, shift them to the left twice yields 11100, or 28.
Feb 4, 2017 22:26
7 << 2 would yield 28.
Feb 4, 2017 22:26
Shift bits to the left x units.
Aug 22, 2016 02:52
while true; do echo something; done
Aug 22, 2016 02:49
Crap, I'm using zsh, hold on.
Aug 22, 2016 02:48
while (1); do; echo something; done