« first day (1935 days earlier)      last day (3004 days later) » 

11:00 AM
hello
can anyone knows that what is needed to run php with mssql, on .net hosting server?
hello
any one there??
 
Relax, we're not robots.
 
haha sorry
i though every one buzyy
 
Probably, people mostly idle in here and peek in from time to time.
So an answer can take a while.
 
ok,
do u know the answer?
 
I'm not too familiar with MSSQL, but as far as I know you should just have the MSSQL module enabled in your PHP config.
And the documentation also has a chapter on it: php.net/manual/en/mssql.requirements.php
 
11:06 AM
ok
thanks..
this driver will be installed on server?
 
nevermind, that one was only for 5.3
 
@tereško see, i want to fetch some info from MSSQL db for android app
 
this is what you will need
PHP is not really meant to work with .Net infrastructure
 
so I what should i do? I am good at php so i am trying to fetch using php
 
TBH, you would be better off going with C# or ASP.NET
 
11:12 AM
ok
 
I'll leave this here with the advice of: Do not use.
 
to get PHP to work with MsSQL you would need to pull that repository and compile it for your server
@Leigh lol
 
I can make that statement, because I have used it :(
 
@Leigh okk
 
(not by choice)
 
11:14 AM
@Leigh uh, why did you use it?
 
@NikiC Because my employer at the time decided it was a good idea, before I worked there
 
sounds pretty crazy
 
By the time I left it was no longer part of our supported platform. So I did a good thing
@NikiC I might need to pick your brains in the near future. I decided to look at implementing a slice syntax again, but now we have a lovely AST to wrangle with.
I'm probably "doing it wrong", but I'll have a go on my own first :)
 
fuck
I am going about a year old code of mine, and it has been written by a fucking idiot ... well, at least the unit tests of said code
 
@Leigh array_slice and array_splice() not being good enough?
 
11:27 AM
@Leigh sure
 
@bwoebi and what about strings :)
 
@tereško You must've been writing MVC code.
@Leigh substr(_replace)?
 
@bwoebi nope. An HTTP abstraction
 
@bwoebi Yes, not good enough :)
 
I found unit tests, that are testing mock objects
 
11:28 AM
@Leigh why not?
 
@bwoebi because I'm not learning anything by not implementing a new syntax
 
@tereško lol :D
 
@Leigh ah :-D … well… you could help Nikita with d/cfg analysis (j/k)
 
Is that the stuff that's been breaking my builds recently?
 
@tereško two month ago you told me a sentence about TRIGGERs, the concept of that sentence was "don't use TRIGGER very much and when you really need it then use it". Now I need to that word, can you remember it? (I think it was a synonym for "parsimony")
 
11:30 AM
I saw a zend_cfg in the errors somewhere
Anyway it's just an academic exercise, the "generalising negative offsets" thread made me want to look at it again. I'll probably quit in 30 minutes :)
@bwoebi Actually, the behaviour is different, since I'm modelling it on Python. The offsets are absolute values rather than start and length
 
@Leigh well, that sounds even worse
 
@Leigh I sorta like the way it's done in PHP
It kinda seems to always do what I want without extra arithmetic
 
well, it's a pretty simple implementation detail to change
 
yah
 
how to check array diff for both keys and values?
 
11:41 AM
@Shafizadeh I probably told you that you need to use triggers carefully
but I don't think that's the word you are looking for
 
no, that wasn't "carefully"
@tereško ok tnx for your attention
 
can you tell me the sentence in which you want to use that word?
 
$arr1 = [1 => 'a', 2 => 'b', 3 => 'c'] // all keys present
$arr2 = [1 => 'a', 2 => 'x', 3 => 'c'] // keys present, but 2 has wrong value
$arr3 = [1 => 'a', 5=> 'b'] // key 5 is not present

$original = [1 => 'a', 2 => 'b', 3 => 'c'];

array_diff_both ($arr1, $original ) == []; // all keys present with correct values
array_diff_both ($arr2, $original ) == [2 => 'x']; // key 2 is present, but wrong value
array_diff_both ($arr1, $original ) == [5 => 'b']; // key 5 is not present
is there some built in function with such functionality?
 
@tereško I'm talking to my friend about "water", I want to tell him "you have to use of water {?}"
 
"sparingly"
 
11:44 AM
!!!
@tereško Perfect !
 
ok i found it
seems like array_diff_assoc does exacly what i need
 
@tereško also you used "in which" very good in this sentence ..!
 
@loostro yes, it does
 
this is obviously expected ... but is it right ?
/cc @NikiC @bwoebi
I think an explanation of why it happens might not be enough to justify it ... it does feel kinda wrong ...
 
@JoeWatkins Title contains "trait", sorry
 
yeah I know ...
just looking for low hanging 7 fruit ... distracting myself from something ...
take a quick look, its really about inheritance and return types
please :)
 
@AnmolRaghuvanshiVersion1.0 close vote?
 
just wondering if we think it's worth fixing, or just explaining why it happens and mark as not a bug, because expected behaviour
 
12:06 PM
@JoeWatkins I see no reason why this should be expected behavior?!
 
traits are bound last
 
trait is compiletime C&P and then the comparison should happen on the resulting class
so definitely a bug
 
yeah it's not expected from a users point of view, it's weird, by expected I mean it's obvious why it happens like that ...
 
@SagarNaliyapara yeah
 
@AnmolRaghuvanshiVersion1.0 voted
 
12:09 PM
@JoeWatkins it's worth fixing insofar as anything involving traits is worth fixing
 
hm, should $x[a:b] support isset and empty? :/
I'm already annoyed I've added 8 opcodes
 
@Leigh What would that even do?
check that all elements are non null?
check that one is?
 
check the whole range I guess
Yea, screw that
 
12:25 PM
what does $x[a:b] do? array slicing?
 
array and string slice and splice
 
awesome! can I already vote yes somewhere?
 
no
You may also have to fight bob
 
send him over.
I got a nerf vortex pyragon able to shoot 40 discs in less than ten seconds. i aint afraid of no bobs
5
 
Wes
@JoeWatkins bugs.php.net/bug.php?id=70472 seen this?
similar issue i believe
 
12:32 PM
@Gordon over standard TCP/IP, right? :-P
 
oh I already ran away from traits ...
 
Wes
:P
 
@bwoebi yes
 
@Gordon ah, certainly :-P
 
Something is definitely broken...
 ⚙ leigh@leigh  ~/php-src   slice ●  sapi/cli/php -nr '$a = "hello"; $b = 1; $c = 1; var_dump($a[$b:$c]);'
string(1) "e"
The VM handlers are NOPs at the moment...
 
@Leigh not sure, but that looks correct to me?
 
The result is correct... but I haven't written the implementation yet!, just the syntax and empty handlers
 
ha
 
12:53 PM
@tereško what was that master/slave link of django?
 
nope
this one is resh storm-in-a-glass
 
Nope I asked what the link is :P
I cannot find it in the google nor chat search
 
oh ... right
 
:-)
 
12:54 PM
<3
 
10 sec google
seriously, man, you google-fu is weak
 
Your google fu is strong young padawan
lol @kelunik
> Add 'git checkout -b eval-command>' as eval alias
:P
 
I really love writing PHP to alter PHP :-) github.com/php/php-src/compare/…
(^ @NikiC please have a look too)
 
@PeeHaa How do I escape !!?
 
1:10 PM
posted on February 02, 2016 by nlecointre

/* by Rob */

 
@kelunik I would have expected it to be what you already tried :)
 
@PeeHaa Single quotes didn't help either.
 
No idea what else one can do to escape
 
Hi everyone.
Just find a strange PHP file. The character coding of some lines of this file aren't known for me. But I'm sure that this php file works. (It's not my code.) If want to take a look at it: env-9759722.j.layershift.co.uk/p/prestashop/modules/emsetting/…
is it how you make php code unreadable?
 
paste it as text on pastebin?
 
1:24 PM
I am so not unzipping a strange file
 
Ok. tell me what should I do?!!!
 
paste a few lines on pastebin.com
 
paste it?! I don't think that I can do that. the character set is the problem.
ok. I try it.
w8
hope it's the same as the original one.
 
It's ioncube encoded
 
@Leigh what is it?!
a compiler?
 
1:27 PM
A tool that attempts to prevent you from recovering the original source code.
 
@Leigh is it just for PHP?
 
> If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.
 
@user3002233 Google ---> that way
 
.....you are very bad at reading.
 
@Danack i could read that.
 
1:29 PM
Then why the cock are you asking us about it?
 
@Leigh ok. google is still cool. thanks.
@Danack don't you see all those strange characters?
 
@user3002233 You have all the information you need. Now, off you go.
 
Does anyone know if StackOverflow has a limit on how many people you can ignore?
 
if there is one I haven't found it yet
 
@Leigh ok. ok. easy man. jesus.
:D
 
1:50 PM
Oh yeah~~~ Dirtbagg~~ sings away
 
Is there a better way than using ZEND_OP_DATA to attribute the result of an expression to an opcode? I have var[expr:expr] and only op1 and op2 to work with. Can I use the extended value somehow?
It just seems ZEND_OP_DATA isn't used very much, not sure if it's just not needed or if it's actively avoided
 
why no result if you have op1 and op2 ?
use the result on the opline, where you found op1 and op2 would be normal ... can you not do that for some reason ?
 
hello
 
@JoeWatkins I don't think I follow you. I'm doing zend_delayed_emit_op(result, ZEND_FETCH_SLICE_R, &var_node, &offset_node); and I still need to get &length_node out
 
@Leigh If you need more than two proper ops, op_data is the way to go
If you introduce a var dependency via extval I will hunt you down...
 
2:04 PM
Cool, I have a spare bed if you want to crash
 
yeah, because zend is currently so tidy that you would ruin it ...
 
@JoeWatkins I recently removed the extval dependencies we had, don't want them back...
 
2:17 PM
@Leigh Actively avoided if possible; but I'm anyway working on an improvement also adding specialization for op_data too, hence it shouldn't be a perf problem in future anymore.
 
nm
 
Really?
`var_dump(in_array(true, ['foo'])); // bool(true)`
..a bit unexpected imo..
 
@PeeHaa I think he's referring to you (see comment on line 3)
 
@ErikLandvall in_array(true, ['foo'], true)
the 3rd argument exists for a reason.
 
@FlorianMargaine ty :)
 
2:24 PM
@Leigh not sure what you are doing, but looking at zend_compile_assign(), I see no issues?
 
@bwoebi it's turning the OP_DATA into ASSIGN, rather than the FETCH opcode, I just need to adjust for the extra opcode I guess
opline = zend_delayed_compile_end(offset);
opline->opcode = ZEND_ASSIGN_SLICE;
 
@FlorianMargaine I doubt there's a (sensible) reason for it to default to false though...
 
this is changing the last opcode, but 2 opcodes are emitted
 
@Danack legacy.
 
@Leigh where is that code? in zend_compile_assign()?
 
2:26 PM
@Danack I know some code that relies on in_array('400', [400, 401, 402]) to work
 
@bwoebi Yea, I copied the code from ZEND_AST_DIM
 
(not exactly this, but you get the idea.)
 
@Leigh can you please show me the full case?
 
@bwoebi it's exactly the same as the DIM code, the problem is the self assignment stuff being wrapped in another delayed compile, and using the last opline of that
 
I have troubles calling a python script with the -m option in PHP works fine by calling the script directly any idea ?
 
2:29 PM
@Danack the problem is that standard equality applies here… it should not match booleans and strings IMHO…
 
/questions/35148893/
 
@Leigh so, where are you compiling the two operands (on both sides of the colon)?
 
i'll push the branch :p
 
oh okay
 
2:31 PM
yes, you'll just have to access opline - 1
sorry … was a bit confused as I thought the access path and not the dimension expr would be delayed… my bad.
 
looking for a synonym for "landing page"? ..
 
@Leigh sorry for the confusion on my page
 
@Duikboot not sure there would be one - en.wikipedia.org/wiki/Landing_page it's a new term, so there hasn't been time for synonyms to be invented. Why do you want to avoid "landing page" ?
 
@tereško Your gaming machine is on which OS?
 
@bwoebi no worries, thanks for looking :D
 
2:37 PM
hello good people :D
someone has already worked with omnipay library?
 
The guy 'behind' me asked if I knew some synonym ...
I don't :D
 
@Machavity lol
 
@FlorianMargaine

echo 'Not strict: ';
var_dump(in_array(true, ['foo']));

echo 'Equal: ';
var_dump(true == 'foo');

echo 'Strict: ';
var_dump(in_array(true, ['foo'], true));

echo 'Identical: ';
var_dump(true === 'foo');

---

Not strict: bool(true)
Equal: bool(true)
Strict: bool(false)
Identical: bool(false)
I would expect strict to act like Identical
imo :)
 
it... does?
 
Then run that code :) it does not
...
never mined ..
 
2:42 PM
Strict: bool(false)
Identical: bool(false)
 
*Never mind , I see :( facepalm
Put all this together just to make an ass of my self ...
 
it's ok
shit happens
 
3v4l.org is your friend.
 
@Fabor currently: Arch Linux; but if everything was normal, it would be Win10
 
!!eval true === 'foo'
 
2:46 PM
[ [Output for hhvm-3.6.1 - 3.11.0](https://3v4l.org/DUghh) ] Fatal error: syntax error, unexpected $end in /in/DUghh on line 1
Process exited with code 255.
 
Oh, whoops
I'll just skitter back to where I came from. grumbles about missing semicolons. Funny 3v4l slug name though
 
2:57 PM
hehe
 
posted on February 02, 2016 by nlecointre

/* by Frankie */

 
Hi
how to put php in html
 
something like this is php
I want to put it in html
 
have you tried .. emm .. like reading a manual ?
 
3:05 PM
@NikiC By the way, you'll probably also benefit from the new SPEC() system as it allows you to eventually dispatch highly specialized opcodes with type information; at least the zend_vm_def.php code should be easily extendible enough for adding that. [at which point the executor itself (yeah, the indirect branch in execute_ex) will become the bottleneck and we might try to inline the executor functions]
 
@bwoebi by inline the executor functions do you mean threaded dispatch? we support that via the tail call option
 
guy what does fallback mean. wen can it actually be used?
 
@NikiC what do you mean with threaded dispatch?
 
@bwoebi basically not going back to the main interpreter loop and directly calling the next opcode instead (either via indirect goto or via tco'd calls)
 
@NikiC eih, that tail call thing doesn't actually work on most compilers AFAIK?
 
3:14 PM
@bwoebi I never tested the tail call mode
 
and also I meant rather direct concatenating without call boundaries
 
Oh no, I found a bug in phi placement :( This is not gonna be fun
 
@NikiC I can't help, but I still haven't really figured that phi thing out…
 
@NikiC doing ssa?
 
Mooooorningsh1!
 
3:24 PM
morning Ronni
 
o/
 
3:25 PM
o/
 
\o
 
o/
 
\'o'
 
C-C-C-C-C-C-COMBO-BREAKER!!!!!!!!!!!!!!!ONE!!!!!!!!!!!
 
Nooooooooooooooooooooooooooooo
 
3:29 PM
call the CoC team!
 
@Danack Ah no, you broke the wave! :(
This could've gone on for hours ;-)
 
> !!!!!!!!!ONE!!!!!!!!!!!
hehe
 
I loved that game.
 
looks like mortal kombat, but I don't recognize that wolf
 
3:33 PM
looks more like street fighter
 
cough killer instinct...
 
I am very disappointed with 2/3 of you.
 
2/3
reminds me of something
 
1 message moved to Orphan GIFs
 
He's in gif heaven now. :(
 
3:53 PM
!!eval echo "Is this thing on?";
 
(guess not)]
 
patience... ;-)
it's not too fast, but does the trick
 
@PeeHaa does that thing have while(true) { echo ".";} protection?
 
only one there's an easy way to find out
 
3:54 PM
Anyone want to comment on news.php.net/php.internals/91054 ?
 
@Andrea I think "we could not touch intval(), but then intval($a, 10) would no longer act the same as (int)$a." - it's better to not change something, unless the change is going to be really good, and not require another change later.
But I am not sure.
 
@Danack 3v4l actually stops the script at some point
after spamming a few hundred dots
 
@Danack what other change do you think would be required later?
 
what @Paul says
 
@PaulCrovella make the behaviour of intval be consistent across bases.
actually....is it only non-base ten exponents that would be the problem?
 

« first day (1935 days earlier)      last day (3004 days later) »