« first day (2210 days earlier)      last day (2754 days later) » 

5:00 PM
I can't guess, I'm bad at it ...
 
had in the past a project with more debug than normal code..
 
I hardly ever do that, it wastes a really huge amount of time when you mostly write in C ...
 
thats true
 
it's a waste of time anywhere imo, there are proper tools for that ...
 
@Andrea does your RFC take care of that too?
 
5:02 PM
sometimes it's easier to show someone something by adding debugging stuff, than explaining to them how to reproduce some bug you see ...
 
$ php -r '$a = [ "\0test" => "toto" ]; var_dump($a); $b = (object) $a; var_dump($b); $b->test;'
array(1) {
  ["test"]=>
  string(4) "toto"
}
object(stdClass)#1 (1) {
PHP Notice:  Corrupt member variable name in Command line code on line 1
  ["test"]=>
  string(4) "toto"
}
PHP Notice:  Undefined property: stdClass::$test in Command line code on line 1
 
dunno why but i preffer to debug everything myself with debug outputs
 
(with some added fun if you have 2 nul bytes, you get "Illegal member variable name" instead of "Corrupt member variable name")
 
btw. php -r seems to be broken on windows x86 ;D
C:\Users\Terra\Desktop\ui>..\php-7.0.12-nts-Win32-VC14-x64\php.exe -r 'echo "a";'
PHP Parse error: syntax error, unexpected ''echo' (T_ENCAPSED_AND_WHITESPACE), expecting end of file in Command line code on line 1

Parse error: syntax error, unexpected ''echo' (T_ENCAPSED_AND_WHITESPACE), expecting end of file in Command line code on line 1

C:\Users\Terra\Desktop\ui>
 
I hate m4sh so much
@Stricted nope, you've just forgotten that you can't use ' in cmd \o/
 
Wes
5:05 PM
@PeeHaa are you actually free this week? i could ask your <ins>free</ins> opinion about something :B
 
lol wut?
srsly
 
..\php-7.0.12-nts-Win32-VC14-x64\php.exe -r "echo 'a';" will work
@Stricted yeh that's since forever
 
ok tats weird :D
 
$ php -r '$a = [ "\0stdClass\0test" => "toto" ]; var_dump($a); $b = (object) $a; var_dump($b); $b->test;'
array(1) {
  ["stdClasstest"]=>
  string(4) "toto"
}
object(stdClass)#1 (1) {
  ["test":"stdClass":private]=>
  string(4) "toto"
}
PHP Notice:  Undefined property: stdClass::$test in Command line code on line 1
 
i dont use the cmd on windows often ^^
but good to know
 
5:08 PM
@Stricted wait till you find out what the syntax is to make that work with double quotes...
php -r "echo ""hello\nworld"";"
 
i dont want to know that :D
 
cmd.exe is by a long way the worst thing about windows
 
you can just escape the souble quotes :D
..\php-7.0.12-nts-Win32-VC14-x64\php.exe -r "echo \"a\";"
 
oh did they make that work properly on win10?
 
im in the vs cmd
 
5:10 PM
They did finally fix a couple of things, I know that
 
lets try it in the normal cmd
 
@PeeHaa hi
 
You can ctrl+v paste in win10, which you never could before
 
y works
srsly you can paste know?
then finally the cmd is usefull :D
 
You always could, but you had to right click
 
5:11 PM
i know
 
You still have to right click to be able to highlight anything to copy though, which is epicly retarded
 
evening room
 
yep thats dumb
oh
 
@pinepain Yo
 
you can highlight and then ctrl+c to copy
 
5:13 PM
do we have a definitive manual for humans how to bring php extension to pecl?
 
no more right clicks yay \o/
 
last time i stuck to generate package.xml
 
copy another extensions package.xml
 
@Stricted Highlight how?
I don't get a cursor, maybe it's an option
 
@DaveRandom simple mark it with left click :D
or shift and arrow keys
 
5:15 PM
Must be an option somewhere, not working for me
 
@JoeWatkins yeah, but what about updating it and so on, I've read about pyrus.phar, but not sure I get it
 
I don't use any of that, I update it with a text editor and just put a new notes section in each time...
 
Found an options for shift/arrows anyway
 
you still get a changelog on pecl, or github or whatever ...
 
are there difference between packacke.xml v1 and v2 and what should I use?
 
5:16 PM
@DaveRandom you'll probably need a service pack, and windows may restart 400 times before it does anything useful
 
Oh it's the "quickedit mode" option @Stricted
@JoeWatkins :-P
 
@DaveRandom i didnt touched and option, that how it was after installing windows :D
 
Fresh install?
 
y
 
5:17 PM
(mine is a win7 upgrade)
 
probably it takes the options from w7 at the upgrade
 
@JoeWatkins thanks, but does it matter v1 or v2?
 
well iirc you have to use 2 now
but I probably dont rc
I'm using 2 everywhere
so is memcached and xdebug
 
I has returned!
 
@Stricted yeh, except that weirdly I have 2 different machines which should theoretically be the same in that respect (I never touched the console options on either since updating) and one of them had different options to the other, which I am assuming is "because Microsoft"
 
5:21 PM
@MarkPhillips WAMP installed
 
You say that like it's a good thing
 
cat: ../mong-php-drivero/package.xml: No such file or directory
that's ... not a thing ...
 
@JoeWatkins it should be
 
ok, I'll play around with this package.xml
 
@Tiffany what are you running your apache server on?
 
5:22 PM
Diesel
 
I use the tears of children
 
same difference
 
:P
 
GHhahaha So I got my WAMP installed. trying to figure out where to put my darn directory
 
5:26 PM
do i need to have "Sponsor users" in order to get pecl account?
 
I don't think so
 
There aren't enough people who've done step 12 for everyone to have a sponsor
 
oh you do, use my name if you want
 
do I normally "Need a php.net account?" and what's that for?
will do, thanks
 
read the thing about sending to internals also ...
 
5:30 PM
I guess I need to write first to pecl devs mailing list first
 
I'm not sure, it might just be a trick ...
yeah
 
Anyone have a better tutorial on using WAMP server other than the one from 2013?
 
but what's that php.net account? Do I need it and what is it used for?
 
@tereško LOL :P
 
oh no you don't need a php account
 
5:32 PM
@JukEboX the main tutorial is: dont use WAMP
 
>
If approved, you will also need to apply for a php.net account in order to commit the code to the php.net SVN repository. Select 'PECL Group' within that form when applying.
 
@JukEboX It comes with a program called "uninstall.exe", if you run that it shows you a tutorial on how to best use it
 
lol
 
@DaveRandom LOL
 
you have to click right to the end, don't read any of the screens
 
5:32 PM
This is why I was using IIS. At least it works
 
that was worse
 
you're the first person I ever heard say anything remotely good about iis
 
if you want to set up a development environment, install a virtual machine and set a linux on it
 
@JukEboX except it didn't...
 
it's true, nobody is doing stuff in windoze anymore ... cept @DaveRandom
 
5:34 PM
@DaveRandom True. And me @JoeWatkins
@DaveRandom what would you use?
 
he loves windows, he especially love to compile software on windows ... if you have software to compile on windows, take it to him, send it in the mail if you have too ...
right chris ?
 
srsly, install some virtualisation software, create a <*nix OS of choice> VM, develop in an environment that looks vaguely like a production web server
Windows has it's uses. Being a PHP-enabled web server is not one of them.
 
being a pile of crap is
 
@JoeWatkins well, I am using windows at home (arch at work), but I am not running webserver on it
 
See, uses.
 
5:36 PM
@JukEboX linux or bsd in a virtual machine (assuming you cant afford a cheap VPS)
 
Wes
but ms is being so nice lately, why don't you return the nice back :B <3
 
1 min ago, by DaveRandom
srsly, install some virtualisation software, create a <*nix OS of choice> VM, develop in an environment that looks vaguely like a production web server
2 hours ago, by DaveRandom
just install VirtualBox and create a centos vm
2 hours ago, by Mark Phillips
1) Install a Virtual Machine on ur PC that runs Ubuntu, install LAMP on it
2) Get rid of IIS (just stop the service for now), and reinstall WAMP
 
I have never used it nor have the time to leran
 
2 hours ago, by Mark Phillips
@JukEboX, so you cant install a new VM on the HyperV server and install Centos/ubuntu/DaveOS?
 
oh I see, you are broken
 
5:37 PM
@JukEboX So far you have spent the best part of a day on this, I promise you that creating a VM would have taken less time
 
@JukEboX if you dont have the time to learn then dont learn. Try learning C# instead.
 
I just want to run PHP and MySQL on my windows server.
 
why C#?
 
C++ ?
 
5:39 PM
@Linus because he like IIS
 
oh :P
 
@DaveRandom she'll be trying a thing
I dunno what thing
 
oh weird, some punctuation chars randomly nullify the @mention on twitter
 
yeah that's it
 
@tereško not like... Have to use.
 
5:45 PM
Even if you really really have to use Windows as the OS for the web server, there are better options than the stupid WAMP bundle thing
Aug 22 at 7:24, by DaveRandom
Get an apache build from apachelounge, get a PHP build from windows.php.net, get a mysql build from Cthulhu, and you're set
 
what was that web server stress testing thing called ?
nvm I found it ... it was wrk
 
@kelunik, I think
How does anyone ever do anything with m4sh, srsly
it is completely incomprehensible
 
agree
 
I think I've found a "bug" - or maybe better described as an unexpected behavior - in php.
now what
 
6:00 PM
@GiantCowFilms Start by telling us what it is :-)
 
ZipArchive, when run on windows, puts backslashes into the file paths for zips. If you try extracting a Zip created by ZipArchive running on windows with ZipArchive running on linux, it flatten outs out the zip, and the paths end up in the filenames
it should use forward slashes.
 
Is there an up-to-date guide right now on creating/using PHP arrays from the C layer as of 7.1.0?
 
Even Windows explorer uses forward slashes
 
I know there have been a ton of guides, but the internal API seems to have changed so much, I am hesitant to get started using one of them
 
@GiantCowFilms yes that does sound like a bug, what PHP version are you using?
 
6:05 PM
@DaveRandom 7 something
lemme check
7.0.11
for creating the zip
 
@GiantCowFilms how are you adding the file to the archive?
It does specifically say on that page:
> Note: For maximum portability, it is recommended to always use forward slashes (/) as directory separator in ZIP filenames.
 
Just strtr() the paths
Although I'm inclined to agree that it should do that by itself anyway
It probably doesn't for BC bad reasons
It would presumably be pretty trivial to add path normalisation in there
 
Yeah
thanks
I kept on trying to fix the code that unzips it, under the logic that it would be better if the server code could handle anything that is thrown at it
It would be nice if ZipArchive would be able to handle backslashes on linux
 
Well yes and no, it needs to be optional
 
6:13 PM
good point
 
Some asshole somewhere probably wants backslashes in their names because they hate everyone
 
no kidding
 
@DaveRandom BECAUSE LEET STATUS \O/
 
My word ZipArchive is a horrible API
Surely it's illegal to write "leet"?
It should be
 
leet is fine what you should bee legal is l33t
or 1337
 
6:25 PM
@DaveRandom is that in the API?
 
@tereško Have you seen "me before you" movie so far ?
 
nope
 
ah ok
 
Wes
national geographic + leo di caprio documentary about climate change youtube.com/watch?v=90CkXVF-Q8M (full, and free)
 
\o
 
6:38 PM
Ihave this entry in db====== ?&gt;&lt;?php exit; ?&gt;&lt;?php which is input of ?><?php exit; ?><?php..... It is dangerous?
How much risky is this?
Ihave this entry in db====== ?&gt;&lt;?php exit; ?&gt;&lt;?php which is input of ?><?php exit; ?><?php..... It is dangerous?
 
Any chance some 20k people could nuke this answer? His answer is duplicated in the others but his statement about mail is wrong
@VishalKumarSahu It's only dangerous if you run it with eval
 
Nuke how? You want me to delv it?
 
@Machavity Means the risk will arise due to me? Thanks :)
 
@PeeHaa if i get php-v8 to pecl, I don't mind to maintain rpm version in remi repo. The only issue I see is that I normally use the freshest v8 version available, sometimes even dev
 
@VishalKumarSahu If there's PHP code in your DB, you would have to run that code through eval() for it to be executed as PHP
 
6:47 PM
Nvm I just found the ither answers @Machavity
 
@Machavity I learnt another thing that I can save the PHP code in db :)
 
If I get how to maintain own rpm repo, it's also shouldn't be a problem, though, I'm not really rpm user. At this time I have only ppa with v8 and php-v8 debs and homebrew formulas @PeeHaa @DaveRandom
 
@VishalKumarSahu it's not recommended
 
On the back end of brexxit, can I push the notion of having a PHP release which uses £ instead of $?
 
@Machavity I understand that as it is just an option.
@Sean I guess it is possible :) :D
 
6:50 PM
@Sean it's been done before
 
Trying to scour php-src but I can't see anything yet :P
 
@Sean Please don't mind. I want to know the reason for the purpose...
 
Ugh /me is going to non mobile. This sucks
 
Hi @all, I've a problem with guzzle and session cookies across two php scripts. I got a FileCookieJar with new FileCookieJar($this->cookieFileName, true); and a client with new Client(array('cookies' => $this->fileCookieJar)); Inside the first script everything works fine. If I create a new Client and a new FileCookieJar with the correct cookie filename (which is saved correctly from the first script) I get a "expired session" error from the server inside my second script.
 
6:53 PM
@Sean DaveRandom will probably demand all instances of behavior be corrected to behaviour then
 
It is a symfony2 cli project and I want to use the session from cookie across the cli commands. (similar issue here: github.com/guzzle/guzzle/issues/722 (see last comment)). Any ideas please <3
 
Wes
would_you_mind {
    // Code here
} actually_i_do_mind (Exception £e) {
    // Politely move on
    cheerio('Message');
}
never gets old
 
Anonymous
@PeeHaa SO chat?
 
@Wes I enjoyed the the cheerio Message
 
Wes
lowl
 
6:56 PM
@JayIsTooCommon yeas
 
Anonymous
''Tis very bad
 
Anonymous
@user5348fh8y5 how did you get on?
 
@Machavity yes he will only to rewrite it to non ebglish mancity's 1 week later
 
@Wes And finally is spelled... how?
 
stiff_upper_lip {
carry_on_chap();
}
 
6:59 PM
@JukEboX only have one apache server, and it doesn't do much except execute a simple PHP script. It doesn't serve anything to the outside world. But it's hosted on Windows.
 
@pinepain There is no way to properly and safely run it right on a server with 3rd party input?
@Dereleased s/then/chap
 
@PeeHaa what do you mean?
 
Wes
:D
 
Done
 
I wanted to use it as a @Jeeves plugin. Which mean people (in chat) will be able to send code which will get executed
!!friday
 
7:01 PM
@PeeHaa Happy Prebeccaday!
 
So close @Jeeves so close
 
@PeeHaa I'd say it's safe to run it, you just need to set time and memory limits
what happens inside stays inside
 
@Tiffany I just got XAMP installed and so far so good. Now just have to point my code to it which is becoming a pain
 
@pinepain Not exactly. V8 does allow FS calls
 
@PeeHaa fs?
you mean file system or I missed something
afaik, that's node extension
 
7:04 PM
@JukEboX you're not using xampp for production, right?
 
it was basically the main reason to have raw v8 and not node
 
@Tiffany negative. It is development
 
@pinepain yes filesystem
 
@JukEboX alright, just making sure :)
 
As in what bindings in any way does v8 have with the outside (FS/http/socket of anykind)?
 
7:06 PM
says access is denied through my PDO code..... Hmmmmm
 
@PeeHaa in order to call any function which is not available by default, you need to create it first, in php-v8 extension it's done by creating V8\FunctionObject instance and adding it to V8\Context instance.
I still working on more high-level wrapper around php-v8 to provide simpler interface to deal with v8 internals, but no ETA at this time
 
Argh
how am I getting access denied for this --> gist.github.com/JukEboXAuDiO/c53689e47d77065d2e49d92a767e1b30
Scratch that :P
 
7:27 PM
you might need to set the port...
 
how can i use cron jobs on mysql
 
Now days I just use libraries to setup the entire thing....
 
@PeeHaa Well I was having a good night.
 
7:32 PM
@Wes I've done most of the work and most of the drinking. Will probably be properly avaiable tomorrows
 
@GiantCowFilms no I forgot to give myself localhost acces :P
4
 
@JukEboX oh
lol
 
:facepalm:
 
Wes
@PeeHaa is that designed to cause rage in people
 
@JukEboX -1 for u man :p
 
7:34 PM
what does the tag "cv-pls" mean?
 
Wes
because it worked with me
 
Annoying as fuck rite?
 
@Tiffany "convert please"
 
Wes
very
 
I used to think it meant, "wtf is your cv, please show it," but the context the tag is used for doesn't always apply
Convert to what?
@Wes @PeeHaa ASMR denied.
 
Wat
 
lmao
 
c'mon +1 for effort
 
lol
 
@PeeHaa Thanks.
@PeeHaa DEAR CTHULHU WTF
 
7:53 PM
Amazing right. Makes you think again about religion
 
there :P
 
Anonymous
I feel more Christian after seeing that tbf
 
@JayIsTooCommon lol I see what you did dur
 
@Tiffany "close vote please"
 
Anonymous
You going PHPUK pie tar?
 
7:56 PM
its alive.... ITS ALIVE!!!!
MUAHAHAHAHAHh
 
@JayIsTooCommon PHPuke? What?
 
@JukEboX I'm going to be saying that tonight when my new home computer is built. It's not being built by me, so it will actually work.
 
in JavaScript - badger badger badger badger, 2 hours ago, by Waxi
Scientists have already said it's not sphere, but yet they keep giving us the perfect blue marble because they don't have a real photo. They just stitch together scanned images.
 
-_-
 
Anonymous
PHPYuk
 
7:57 PM
@JayIsTooCommon I should probably just get a ticket tomorrow
 
I've been without a main desktop for a few weeks. :(
 
in JavaScript - badger badger badger badger, 1 hour ago, by Waxi
If gravity acts on the mass of an object, how come an ant sticks to the ground, but not a balloon?
3
 
Anonymous
@PeeHaa you wild man
 
@Tiffany oooo anything good in it? /beginnerdgasm
 
!!youtube wild thing
 
7:57 PM
crickets
 
Seriously still nobody made youtube?
 
in JavaScript - badger badger badger badger, 2 hours ago, by Waxi
I thought NASA was lying before I believed the Earth not being round.
 
@tereško that's just funnoying now
 
@tereško He is on to something here!
 
@PeeHaa drugs, mostly
 
7:59 PM
:P
 
@JukEboX i5 6600 Skylake, 16GB DDR4, GTX 1070, 500GB SSD (first SSD, yay!)
 
Anonymous
@tereško finally, someone with sense
 
@tereško Because an ant isn't filled with gas :-)
 
@Tiffany awesome! Almost like mine :)
 

« first day (2210 days earlier)      last day (2754 days later) »