I'd like to know about openssl_decrypt() function in PHP
may i know the algorithm / pseudocode for that function?
Because i need to change it to js format.
@NikiC I'm working on the new patch for the CS lexer, now using the parser and I'm almost finishing (this was quite a piece of work). So I needed to add a zval * token_stream field on the _zend_php_scanner_globals struct...
but I'm having trouble to init_array(LANG_SCNG(token_stream))
class SomeClass {
const class; // should not work
function function() { //should work
function function(){} //should not work
}
function continue(){ // should work
return new class {
const continue; // should work
function function... /// here we go again
}
}
}
// outside class
const CONTINUE; // should not work
function continue(){} // should not work
@NikiC I don't know exactly why this will not work, I tried it before on another discarded patch and there was a situation that was a dead end but I can't remember
@NikiC at this point, if you'd like to work on a concurrent patch doing that it would be nice... I don't even have the branch with this approach anymore \o/
oh and you already started the trend to throw exceptions from token_get_all, no one complained about it.
@NikiC ok I remember, it was the const list syntax and the impossibility to expand later to class names.
LEAK&FAIL Bug #54089 (token_get_all() does not stop after __halt_compiler) [ext/tokenizer/tests/bug54089.phpt]
LEAK&FAIL Bug 60097: token_get_all fails to lex nested heredoc [ext/tokenizer/tests/bug60097.phpt]
LEAK&FAIL Bug 67395: token_name() does not return name for T_POW and T_POW_EQUAL token [ext/tokenizer/tests/bug67395.phpt]
LEAK&FAIL Test token_get_all() function : basic functionality [ext/tokenizer/tests/token_get_all_basic.phpt]
PASS Test token_get_all() function : error conditions [ext/tokenizer/tests/token_get_all_error.phpt]
@marcio concerning the solution u suggested me earlier this morning, the check about the existence of the beforeGetContent() method could be avoided by simply declaring an empty method with the same name inside the trait. Am I right?
This PHP User System was built with MySQLi and I also used Composer. I'm planning to improve this, and add more stuff and release it as a sort of a module for Composer. Here is my source code:
User.php (Controller File in the src/Controller) folder.
<?php
namespace Application\Controllers;
use...
#fail http://3v4l.org/6oqYN abstract class FooBar implements Traversable{} Class FooBar must implement interface Traversable as part of either Iterator or IteratorAggregate
> Listen, and understand. That PHP is out there. It can't be bargained with. It can't be reasoned with. It doesn't feel pity, or remorse, or fear. And it absolutely will not stop, ever, until you have implemented IteratorAggregate or Iterator.
3
Tbh - I might be wrong. But I think there's a special case for checking that interface.
it's an ugly hack, so it's hard to think logically about it. But no (I think) there are checks done at compile time, for classes to be correct. In this case if you had class ConcreteBar extends FooBar{} there would be nothing to check, without having a different special hard-coding of rules.
aka shits fucked up yo. It was a dumb hack, that is biting people, and it probably shouldn't have been done.
@Charles Yes, capturing groups are not supported (supporting them is a bit tricky and it doesn't really make sense for the routing use case). I've now added a check so you get an exception if you use a capturing group instead of things breaking in weird ways
Hey, anyone using phpdbg? How do i step over a line of code? If I have step 1, it tries to step through each function from the line it's trying to execute
Hoping someone can help me, I've tried researching and Googling' how I can do this. http://pastebin.com/Av345f8q I'm trying to get the number in value="X".
@RahulKhosla so firstly. you problem is that the submit button doesn't have name="submit", but secondly (and more importantly), don't mix HTML and logic like that
It's especially important with POST, because it "breaks" the back button for the user
@RahulKhosla Yes. You should have a template file for displaying the form and a business logic file for processing the submission. Usually you should then issue a 303 redirect after you've processed the form to send the user to the next thing they see.
It doesn't necessarily have to be two files (although usually it would be) but you shouldn't mix HTML and PHP code like that - it's OK to have PHP code in your HTML templates, but that code should be idempotent (it should have no side effects other than maybe logging) and it should only be there to help you display dynamic content.
I highly recommend you read both of those articles I linked, if it doesn't go in then don't worry about it, just go away and do something else and then come back and read it again until it does go in
Mostly you find in this kind of situation that every time you read it you understand a little bit more, then one day you read it and it suddenly all makes sense
This is true of almost anything related to science and technology (it's really deep rooted in the whole point of the scientific method)
@RahulKhosla Yeh, you put time in, you get money out. It's not an instant process though, you want that then go into banking. Although of course, of you go down that road, you'll have to live with being a cocaine addict and generally being a massive bell end.
@sam_io I wish :-/
My current job involves occasionally having to get involved with end-user support, it is surprising that I can still be surprised by people's stupidity...
And also, people never cease to amaze me with their facility for finding new and interesting ways to break shit
Related: I'm really going off some parts of Agile
Certainly for small (< ~100) teams
It seems to be producing a bunch of paperwork and people standing around talking about project meta and not enough time doing, y'know, work
/cc @Gordon ^ would like to discuss with you at some point because you seem to be quite experience at PM
I had to chance to have a glance at some support stuff
some user was having a command not working... we asked him for a copy paste of what he typed. command foo [--arg1=bar [--arg2=baz]]. With the square brackets.
The number of times I've had people come to me with "an error" and they've clearly not read it because it tells them precisely what the problem is and what to do about it
Oh sweet @JoshWatzman is here: if you could possibly pass this on to people in the know of this specific area, I've got a pretty stable module for authenticating against AD and pulling down a for bits and pieces of data, I've found on HHVM I sometimes get a "false negative" return value from ldap_bind() (bind worked but returns false). Also if you could implement ldap_modify_batch() in HHVM would be v. appreciative.
Can provide more info (and possibly contribute code) when back from hols/more sober
@RahulKhosla mix "and"s and "or"s can have more than one interpretation. Consider if (a && b || c) vs. if ((a && b) || c) vs. if (a && (b || c)). The first means one of the other two, but it's ambiguous (to the reader). As general rule in anything to do with computers, be as explicit as possible.
@DaveRandom That still didn't work. http://pastebin.com/KZ1uurNW "SELECT * FROM product WHERE 'condition' = 1 AND (option_1 = :optionOne OR option_2 = :optionTwo OR option_3 = :optionThree OR option_4 = :optionFour)"
@FlorianMargaine Maybe they do, but maybe you're not reading them right. Maybe you're talking nonsense. Maybe you're not even really here. Maybe both of those things are true. Maybe neither of them are true. Maybe I shouldn't have spent an hour reading articles on quantum physics after going to the pub.
@RahulKhosla oh wait... 'condition' = 1 <--- remove the quotes
Anyone got any ideas on how to return the highest match on the options? "SELECT * FROM product WHERE 'condition' = 1 AND option_1 = :optionOne OR option_2 = :optionTwo OR option_3 = :optionThree OR option_4 = :optionFour"