« first day (1178 days earlier)      last day (3995 days later) » 

08:00
@PatsyIssa they aren't even close by code quality and best practices used
thanks @PatsyIssa @zerkms about zf2 ?
@satheesh I'd say symfony2
I am all ears tbh
morningz
okay Zend vs Symfony which one easy to learn for basic level programmers
08:05
@satheesh just pick SF2
grats @Jack
they are very similar to each other
@JoeWatkins Thnx :)
okay @zerkms @jack im using sublime text IDE
and I'm eating icecream
(I thought it is important for the discussion)
08:07
let me know when you're going to merge that, phpdbg requires update ...
@satheesh sublime text is a text editor :) not an IDE
ok :) @andho
@JoeWatkins The AST for constant class expressions needs a change too iirc // cc @bwoebi
yeah guess it will
so, how should we do this then? i don't have the karma to commit anything .. ;-)
which at this time is probably a good thing, because i have no idea where to commit what lol
08:12
are you in php.pecl ?
yeah
not sure how easily they give out zend karma, but I've requested it for you ...
(usually if someone else asks it's okay)
Kindly help me to solve this PHP issue..
0
Q: PowerPC Linux machine for PHP hosting always throws "Balloc() allocation exceeds list boundary" error

ChristopherI've a copy of Codeigniter framework on the server When I run the code on the server it always throws following error Fatal error: Balloc() allocation exceeds list boundary in /usr/local/apache/htdocs/project/system/core/Benchmark.php on line 92 I've already rigorously googled this error , I a...

@JoeWatkins much obliged :D
PPC badly defines enidaness
08:16
oh wow
try compiling in x86
balloc() ran out of balls?
@Jack XD
couldn't resist :)
if you compile for PPC host and execute date('Y') you'll get strangeness, for some reason they don't define endianess sensibly and if it can trip up just date(), that would be my firs guess ....
it's probably the case that elsewhere in the codebase there are bugs we don't know about because none of us are actually using ppc
08:19
Well, there's this: bugs.php.net/bug.php?id=47980
oh wait .. he's referencing php bugs using another site?
The default PHP code on the server works well..
show me the configure line
When I just copied the codeigniter framework to the server...this error occurred..
Hi everyone. I've a pretty basic query which I need to understand. I'm getting an error which says "Fatal error: Out of memory (allocated 258211840) (tried to allocate 32 bytes)" -> Does this mean the php script is consuming around 258MB of space whereas only 32 bytes were available?
08:23
No, it means that it tried to allocate 32 bytes but those weren't available.
^ this says we don't support PPC that well, if you can show me the configure line that'd be good, but my guess is you should recompile php using x86 compiler ...
Then what does allocated 258211840 mean?
that's how much are previously allocated
@asprin your script has
@JoeWatkins , by configure line , you mean the PHP configuration ?
08:24
I mean the configure command used to build php from source
Ok, so if got this right ----- my php script needs 258 MB of memory but less than 32 bytes are available?
no, your script wants to use more than 258MB (which is currently allocated), it tried to allocate another 32 bytes (another variable) and hit the memory_limit of the server === raise memory_limit
I am sure about the configure command,,
there's this tar.gz.enc file created which is then mirrored in htdocs/ folder
@JoeWatkins I see...any idea why another variable (32 bytes) was being allocated? Sorry for these newbie questions, but I'm trying to understand the concept behind it
variables are allocated all the time during execution, so are many other things it's likely a zval because that's the sizeof(zval), what it is allocating is not important ... the important thing is that 258M is not enough memory to execute the script to completion, so raise your memory limit and the error will go away
08:30
You should totally let your scripts run without a memory limit ^.^
@Jack iirc if you don't set it isn't 1mb/10mb ... which is useful ...
Thanks. I tried putting ini_set("memory_limit", "512M") and also tried using a htaccess file by including "php_value memory_limit 512M" in it. Both didn't work. I guess I'll have to contact my hosting provider
memory_limit is a php_admin_value I believe.
it'll take me 10 minutes to load the page ... but php.net/ini.list will tell you ...
@JoeWatkins Default is 128M.
08:34
Hi all. I seem to suck at regular expressions and need a poke in the right direction. Here's the start of what I have;
only if you have an ini file
^<a href="(.*)">
hardcoded default isn't, pretty sure ...
Next I have an <img> tag, and I need to grab it's "src" attribute. How can I do this?
I'm using preg_match_all() for this, in case that's relevant.
@JoeWatkins , Can you suggest more options to solve this issue..
08:35
@Dan Use DOM.
There is a lot of HTML between the end of this link and the "src" attribute, so I'm wondering if I need to tell my regex to "skip" this. I can't seem to find clear information that tells me if a regex must skip a section or not. Do I need a passive group perhaps?
@Jack This should be simple with a regex, and I need the practice ; )
You should practice with DOM.
Misguided practice is bad practice imo
@Christopher I think I've told you what the problem is, FP operations are fucked on PPC because of badly defined/detected endianess, you should compile with an x86 compiler and the error is highly likely to go away ...
@Dan DOM is the correct tool
@Christopher try reproducing this bugs.php.net/bug.php?id=62581
@JoeWatkins You don't think that's overkill? I need two simple pieces of data from a string, no checking for dodgy characters or working around an unknown format? If so, I'd better look into this, but at this point in my project I really don't have time to learn stuff that I know absolutely nothing about.
you know nothing about it ?? you've never used javascript ??
it's never overkill to do things correctly, parsing HTML with regex is not reliable, what if the author changes the order of src/alt in the img tags, what if a tiny thing changes that breaks your application, the correct tool for the job exists by the name of DOM, so use it ...
08:44
faaaaak
Because it's output from a CMS. An anchor tag with an image tag inside.
And yes, I know what the DOM is.
I'll take a look through the docs and see what I find. Thanks for the pointer.
Morning
moin @Fabien
@Jack usually you just ask someone to merge it then... Just squash it before.
well it's not his first rfc, he helps out on bugs
no reason he shouldn't have karma to do it himself ...
ThW
ThW
08:52
Good Morning
It's his first RFC which is going to be merged.
Actually... He'd just have to ask Hannes or Felipe
Hello
@bjori can @Jack get karma ... there ya go ...
ThW
ThW
08:56
@Dan More specific DOM+Xpath, all src attributes of img elements inside a elements $attributeNodes = $xpath->evaluate('//a//img/@src');
@bwoebi By squash you mean rebase or turn the whole PR into a single commit?
latter
I've only been awake an hour and my stupid internet is turning me into a nervous wreck already
I should probably also rebase it, right? :)
Has anyone here dealt with high load db-bound web applications? I would really need a small consultation regarding the hardware requirements for such project.
supposed to be doing phptownhall in a few days, don't think my internet is going to allow that to happen :(
09:00
@Jack yes.
You know what happened when I merged phpdbg? Spam on cvs list.
whops
"lots of people who probably are interesting in voting are on new year
vacation now" -> i didn't get to vote ... i'm getting better at reading what people really mean :)
@tereško can you try to define high load (tricky I know), tell me about the current infrastructure (is there any cache, how many machines, what kind of disks and processors, where are they, are there any limits on bandwidth if they aren't in the same dc) I would have worded this better but it's taking me ten attempts to send every message
anyone going to PHPUK ? @DaveRandom (sorry for ping, but are ya?)
mornign
gratz on your rfc @Jack!
@PeeHaa thnx :)
09:17
@studioromeo but e.g Cache::get() a normal php dev interpretes this as Static method but its not, also Facade simplifies obj creation not SL
:|
Cache::get() is not static? Maybe if it's called from a descendent of Cache itself.
@tereško estimated transactions per second would be helpful i think
@Jack Some people...
@PeeHaa :| indeed
@Jack did you see what laruence said ?
Yes.
09:22
taking forever to load page, when did vote start ?
I had reopened the vote on 19th of Dec.
the discussion was really active, so was voting, there's no need to defer imo
I'm really trying to see the bit where its explained that laravel doesn't use statics ... I don't see it, I see static in the first few words of the supposed explanation that it doesn't use statics ... it does use statics, it doesn't matter what you call it, at all, in every way Something::call is a static call, doesn't matter what it results in you are still making a static call ...
@JoeWatkins It doesn't
it doesn't what ?
They implemented some "facade" pattern (which is a SL in their case) using static calls. It even mentions it in the official docs
09:32
oh it doesn't explain it you mean ... I thought you meant you found the explanation ... all I see is someone taking statics and calling it something else ... but the guy on twitter said it was explained how this wasn't static :s
> Phalcon's biggest one was also its biggest advantage – being written in C, it's nigh impossible to check under the hood.
hehe, because once C has been written, nobody can understand it ...
their results at sitepoint don't mean anything, they might aswell have asked the local bakers opinion ...
> An interesting misconception seems to be that Laravel is responsible for Composer. Many voters, both discarded and valid ones, mention Composer as the main advantage of Laravel,
@JoeWatkins :-D
Mogoring yo
09:41
moin @Jimbo
Herro, coming back from a holiday last week and starting on a Thursday was nice. Now it's a real Monday -.-
@PeeHaa are you trying to reach a new level of "phpsadness"?
your tweets seem so static lately...
@Ocramius It's in preparation of letting people get a certificate
/me shamelessly recycling sentences from here into his twitter stream
@PeeHaa woah
do I get extra point if I use static definitions within methods?
You get 0 points if you use the word static anywhere in your code ;)
09:52
woah
am I allowed to cache reflection classes?
;P
Auryn does that (I think)
Yes, I know, I completely bum that piece of software
@Ocramius Yes that would possibly mean extra credits!
does anybody here know some generic comparator library for PHP?
stuff like "compare-per-property", "compare-per-serialization", yadda yadda
@JoeWatkins I was going to but I am now otherwise engaged that weekend :-(
Mornings
aww ... someones got me a free ticket, wanted to see a friendly face ... I'm terrified of all those people ...
10:03
@JoeWatkins they won't eat you alive
they'll kill you and cook you before
thanks for trying to help @Ocramius, appreciated ...
Wohoo, we've got bt infinity today, finally!
Meh, better than the 1Mb/s we had
@Jimbo lolwut, is that with BT direct?
Also is that your home or work?
@DaveRandom Nope, just normal bt inifinity I think... It's at work
But we have two separate dedicated lines in
So that's just one of them ;D
10:10
That is fucking shocking.
On the other line, it's about the same. So equates to 30Mb/s and 10Mb/s upload
(I'll just tell myself that)
How far to the street cab?
This is from my neighbor :D
@webarto by the looks of the spped @Jimbo may be your neighbor =oP
10:12
Yes, he's uploading pr0n right now, therefore the difference.
I found @webarto's sex tape, seeding to the media as we speak
Looking to be more popular than paris hilton's!
@Jimbo need magnet link
It's in 4K too ;)
@crypticツ expected
@Ocramius Can't find magnet link atm, but the movie name is stackoverblow
It has the teresko seal of disapproval! ... and ass_assoc_zval
doh
php-zts: symbol lookup error: /opt/php-zts/lib/php/extensions/debug-zts-20131106/router.so: undefined symbol: ass_assoc_zval
10:37
Hi all!
Apologies for not having got back to you any sooner as I wasn't in the
office on Friday.

I am afraid to say that working remotely is not an option for this role and
would require a daily commute.

Would you consider a Kent based office role?  I don't have a requirement at
present but may have something in Medway in 4-6 weeks' time.

Perhaps you would let me know.
:(
:(
Sorry to hear man
user1994804
Any ideas on how I could create my own share widgets?
user1994804
I dont want to use ShareThis
user1994804
or simialr
10:43
@YourAdrenalineFix http://developer.{social-service}.com
user1994804
Ahhh
user1994804
TY
user1994804
What about catching "Bookmarks"?
What bookmarks?
user1994804
such as when someone bookmarks a page
user1994804
10:45
saves to Favorites
user1994804
Currently, "ShareThis" cathes these
user1994804
and reports them as can be seen at the bottom of my pages
user1994804
(add www and .com to my user name and look just above the footer
user1994804
I believe the "Share" count increases everytiime someone bookmarks that page
user1994804
and the ShareThis widget has some SERIOUS load issues
10:47
Yeah it sucks monkey balls
25
Q: Cross-browser bookmark/add to favorites javascript

Aakash ChakravarthyIs there any Cross-browser bookmark/add to favorites javascript. Searched for some list but none is working. Can you please suggest any ?

user1994804
per GTMetrix and Google Page Speed Insights
user1994804
@PeeHaa the article provided is to enable a visitor to bookmark
user1994804
I dont want to rely on that. I want to record / display the cummulative count such as when someone clicks the "Star" in a Google Chrome browser
@YourAdrenalineFix I seriously doubt you can capture that
user1994804
or uses IE bookmark svc
user1994804
10:50
ShareThis does
user1994804
did you look at the widget near the bottom of my pages?
link?
user1994804
add www and .com to my user name. The green "Share" button just above footer appears to increase from what I believe is people bookmarking
user1994804
If sharing was THAT common, I'd see a TON of social referal traffic
No of course not :P
user1994804
10:53
?
user1994804
of course not what?
If you can programatically check the bookmarks of the user using a simple javascript running in the website context it would be a huge privacy hole
user1994804
Hmm
user1994804
Plz tell me your thoughts on this:
user1994804
at my site;
10:55
Thoughts on what?
user1994804
Look for a link in top of right column labeled "What to Do When A Dirt Bike Wont Start"
user1994804
slow typer
user1994804
once at dirt bike wont start page;
user1994804
scroll to bottom and observe "Share" count
nothing changes
user1994804
10:57
I truly believe a majority of this 16K shares is "Bookmark" counts
user1994804
a LOT changes
user1994804
look at share counts
user1994804
if this were true "Shares" I'd be sipping Pina Collada's
user1994804
So... Since this appears to be bookmark counts, I wanna dupe and create myself
user1994804
and ditch ShareThis's widget
user1994804
10:59
Thought?
user1994804
s?
Guys, do you document in an interface when implementing classes should catch an exception in a method?
user1994804
@PeeHaa Since you've chatted with me on multiple occassions... Could you take a look at my acct and help get me off the time out bench?
user1994804
Someone finds it amusing to block me and I'd like to take this question to the Q/A and Facebook tag it
@YourAdrenalineFix Thought are it doesn't work like you did it does
^ that wasn't enmglisdh
11:15
<!--[if lt IE 9]>
<p class="chromeframe" >Oh this <em>sucks!</em> It seems that we do not support your old-school excuse for a browser (yet). If possible, try and make the world a better place by <a href="http://browsehappy.com/">upgrading to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">installing Google Chrome Frame</a> to experience this site in full sexyness. <br/><a href="#"class="hidethis"> Hide this message anyway</a></p>
<![endif]-->
@YourAdrenalineFix Also I can't do anything about a ban. See the link post for more info
Grr. I have Validator::isValid(). But I don't want this to just return true or false, I want it to throw an exception so I can log the issue once it bubbles up...
I had this problem earlier last week. Still don't like just returning true or false, when I want more info, and don't want to pass the logger into the class.
if (!Validator::isValid()) throw new \Exception(json_encode(Validator::getErrors()))
?
Or just log it there instead
Yeah, I'm keeping my Logger at the top level to catch a generic exception and log the error message. The issue is, the thing that calls Validator::isValid(), is Request::isValid(). Another isValid() x)
hey everyone, PHP newbie here, please help
I want to access the php page without extension
how can I do it?
.htaccess
rewrite
@Sunny This question has been asked numerous times on main. I suggest you use the search
yeah, I've gone through them all but it didn't help so finally landed up here in chat section, please understand.
my .htaccess:
RewriteEngine On
RewriteRule /test /test.php
RewriteEngine On
# Resolve .php file for extensionless php urls
RewriteRule ^([^/.]+)$ $1.php [L]
@MaciejCzyżewski, thanks... I'm on it.
@MaciejCzyżewski now working... here is my url testmanager.eu.pn/test/test.php
updated htaccess file:
RewriteEngine On
RewriteRule ^([^/.]+)$ $1.php [L]
RewriteRule /test /test.php
@MaciejCzyżewski any more hint?
@PeeHaa Got it, I won't throw exceptions, in the top level when Request::isValid() return false, I'll construct the error message there and log it.
Amazing what a quick walk down the corridor can do for you
11:46
@JoeWatkins ... is that a ... recruiter?
@webarto yeah, found this on twitter and it looked interesting enough to enquire about ... avocetrecruiting.com/jobs/php-developer-lamp-stack-back-end
bugger driving into london everyday, I'd rather eat my own face than have to do that ...
Nah, screw that...
nice way to start your day... only found it today in case all of you already know it
Who have some funny utilities (php functions)? I want to add to my github.com/MaciejCzyzewski/__ project
12:04
Now I think we need an option to downvote comments
@MaciejCzyżewski ow ow, my eyes, my eyes ... !!!
_ / _.php .... rly ?? and the word static makes us feel sick ...
12:27
@JoeWatkins why the word static, make you sick?
@MaciejCzyżewski Well for one it apparently drives developers insane:
@studioromeo but e.g Cache::get() a normal php dev interpretes this as Static method but its not, also Facade simplifies obj creation not SL
Seriously - I can't even.
@Danack Ummm...
@DaveRandom @PeeHaa started it!
public static function foo() { /* stuff */ } - a normal php dev interprets this as a static method but its not, in fact it is a bowl of onion soup served with croutons and a fresh bread roll.
12:37
lol
Sounds delicious
This is why I think talking about design patterns and calling them by name is not always helpful. PHP devs can't even agree what the words static, a facade or MVC even mean.
well , it should be obvious that MVC means 'My Very Code'
but saying that "styatic method is not really static method" is just borderline retarded
static methods are bound to the name of the class, which means that they introduce tight coupling whenever they are used
or is he saying that Facade is a pattern that introduces tight coupling ?
@tereško He's literally saying that "View::render()" isn't static but is instead a facade pattern.
What the fuck that means, I have no idea.
@tereško I though it was Motor Vehicle Collision. It certainly seems to produce a lot of car-crash code...
12:47
/ba-dum-tish
My Vulnerable Code ?
@Danack because if he admits that it is a static method, he would have to face the fact that his code is piece of shit ... he's faced with cognitive dissonance and to resolve it, he us tries to redefine terms
I think, there should be a logical fallacy to describe this
@tereško I almost agree - except I think the cause and effect are the other way round. People have told him Laravel is really good, and that it doesn't use statics, but facades etc, etc. And he's going along with the Laravel way of perceiving the world because he doesn't know better. The difference being he was taught wrong by other people, rather than making shit up himself.
And I think the term would be 'groupthink'.
Groupthink is a psychological phenomenon that occurs within a group of people, in which the desire for harmony or conformity in the group results in an incorrect or deviant decision-making outcome. Group members try to minimize conflict and reach a consensus decision without critical evaluation of alternative ideas or viewpoints, and by isolating themselves from outside influences. Loyalty to the group requires individuals to avoid raising controversial issues or alternative solutions, and there is loss of individual creativity, uniqueness and independent thinking. The dysfunctional gro...
3
also known as circle-jerking
Actually - fuck it, that's worth tweeting at that guy.
12:54
@Fabien hehehe XD
@MaciejCzyżewski because of everything that was just said ...
> The main required compenent for a MVC is a .htaccess file
and stop reading ...
@JoeWatkins where did you get this gold nugget from?
there are different degrees of wrong .. and this guy is 33th degree mason
@andho from the review-link
^ that
@tereško Your seal is required!
13:09
even the question should be close with some pointer comments
@JoeWatkins I think he meant it's easier to get involved with the mvc paradigm when writing a web application using php as your language and apache as your webserver, is via the front controller pattern, which is most readily achieved through the use of a .htaccess file.
But see, not everyone writes things like that, because they don't expect to have to write things like those lawyers do in terms and conditions ;)
@Jimbo Is there Front Controller pattern in any other language?
@andho Guessing ASP, JAVA
that's fine, when you're having a conversation, there is an opportunity for back and forth, and you have some knowledge of the other persons skill set, you don't always have to explain yourself precisely, however when you are writing information down for the world to view and you open with ".htaccess is the main component of the MVC pattern" you need a slap round the head, and a second try ...
"front controller" is what PHP usually refers to as "bootstrap" (at least partially)
13:13
@JoeWatkins Okay that's a very fair point
Can't argue with that. Yep he needs a slap.
@Fabien meeting with Jonathon tonight on skype ... let ya know how goes ...
(this is the one I want the most)
Don't argue about MVC with the only person on SO to earn the MVC gold badge! Just saying =oP
morning!
hey guys
I’m having trouble accessing basic authorization headers in Kohana
the header is definitely being sent with the request
but I get nothing from $this->request->headers('Authorization'), and $_SERVER gives me nothing either
any ideas?
@crypticツ zOMG
13:17
@JezenThomas What webserver are you using?
Webfaction
.......m'kay
In Nginx at least, the Auth headers aren't passed automatically, you have to set some config to have them passed from the webfront end to the PHP backend.
I see
that helped; it led me to this: community.webfaction.com/questions/7249/…
yeah - webfaction runs PHP as php-cgi so it will be the same thing - tell the config how to pass them.
looks like I'll be at phpuk for two days ...
13:24
@JoeWatkins That the one in London? Considering that, but also want to go to phpunconfeu in Majorca
yeah the london one
I learned 10x what I did at phpunconfeu '13 than I did at phpnw13
And it was an unconference, lol
@JoeWatkins is there a wild elePHPant there? =p
I dunno, the thought of it is making me nervous ... lets talk about how bad static is again ...
@crypticツ I probably will loose the mvc badge on weekend, because I want to remove the duplicate answers =/
also, lol
@webarto your guy contacted me, cheers :)
Not my guy :P I'm searching through messages, lots of "recruiters" from UK contacted me, it all sounds fake to me, but it doesn't hurt to try.
aww thanks :)
Anyone know if it's possible to use dataproviders in PHPUnit without using annotations?
13:35
@JoeWatkins Why don't you apply at Wikipedia? :) (It's totally remote)
Also, if I like, send you 5k, do you have to pay tax on that?
@webarto not sure what you mean, I have to pay tax on anything I declare as income ...
user895378
morning
@JoeWatkins Do you have to declare e.g. 40k yearly as an income?
anyone know how I would insert this? pastie.org/8606523
it works with /index.php/
but I’m removing that in my own rewrite rules
@rdlowrey morning sunshine
user895378
13:41
@crypticツ lol, the "Awarded 0 times" is a nice touch
and just removing index.php? from line four there throws a 500
@webarto no, I do my own taxes, it's called self assessment, it's basically in my hands, I declare yearly what I earn and they tell me how much tax I have left to pay ...
user895378
Please upvote this:
user895378
2
A: OpenSSL 1.0.1e CipherSuites and TLS1.2 more mixed signals than my xgf

noloaderSorry about the format below. I'm going to try and group them by topics, so it means some questions get visited multiple times and out of order. It is my understanding that as of OpenSSL 1.0.1e (or current TLS 1.2) that block ciphers (specifically AES and Camellia) are no longer vulnerable ...

@JezenThomas tbh setting them in the path is not so fantastic. It'd be a lot easier to push them in some environment variables and then read them out in PHP
13:45
@webarto where are wikipedia advertising ?
@JoeWatkins I'd go with github jobs
@Danack How would I push them into an environment variable from .htaccess? Can that even be done?
@JoeWatkins Oh, cool... I don't know if e.g. "you get $5k a month on your bank account and that's it" option work for you?
(if nothing better in short period comes up)
13:49
@JezenThomas Or probably more appropriate httpd.apache.org/docs/2.2/mod/mod_setenvif.html#setenvif
@rdlowrey Old school, man.
yeah I'm up for short term stuff ...
the full stack developer looks interesting but, node .... yuk ...
user895378
Node is a cool thing. And it's really fast. But I'm not ashamed to say that after having so much time in non-blocking environments over the last ~15 months I have a new appreciation for the simplicity of the PHP web SAPI. It's not the fastest thing ever, but it makes it impossibly easy to do things.
@JoeWatkins Do it, do it.
Yes, php is the best.

« first day (1178 days earlier)      last day (3995 days later) »