« first day (3316 days earlier)      last day (1623 days later) » 
00:00 - 23:0023:00 - 00:00

12:11 AM
Has anyone ever tried doing contract work on top of their full time job?
I'm thinking of picking up 15-20 hours a week after my regular job, but IDK if I'll get burnt out
 
@Alesana sure, what do you want to ask for
@Alesana for how many weeks (and your concern sounds right)
 
I guess how many hours one could realistically keep up per week before getting burnt out :P
I'm hoping for 52 lol
 
@Alesana reduce your full time work about the exact same amount of hours then.
 
I am pretty good at keeping my regular job at 40 hours a week so an extra 20 would be 60.. which seems manageable
 
and take care you've checked any regulations and your requirements on doing business (parpers, officials, taxes)
 
12:16 AM
Right
 
In germany there counts the most amount of work per the year for general taxation for example (IIRC). So knowing the details can bring you extra profits (or not).
 
Hmm I would have to look at that. I'm in the states so I don't think there's anything like that
 
@Alesana For the US I can't say. More likely no benefits but that is only a remote guts feeling.
So maybe there is some benefit in 21/19 or 19/21, just saying.
 
Yeah our country doesn't really care about workers much haha
 
@Alesana I won't say for Germany as well, the regulations for workers benefits have been fighted for in the past, and I can imagine that is similar in other countries.
 
12:20 AM
Hmm, I will definitely look into it
I'm thinking, I work 9-5 at my current job.. then go to a coffee shop right across the road and work 5-8. That's an extra 15 per week and I still have my weekends
 
In general, I would say it's hard for so many weeks to consider "overtime" for a long time. You will burn out unless contracting leaves you enough room and also you feel comfortable in what you do in both jobs.
And for the new job esp. if it is a different way of working that is new to you, consider to have enough time extra for the extra stuff to do, incl. getting educated for the paperwork. better safe then sorry.
and don't plan any weekends to work on.
also consider holidays.
 
Hmm yeah that's a good call. The second job would be my old job that I used to work though, it is work from home
I told him I would be able to put in 15-20 hours a week, so I would do 9-5 at my current job, then 5-8 at the other job... then if I feel up for it I can put in 5 on Sunday
 
so you have good working conditions at home? that sounds like a good plus for being comfortable and all the alike.
 
And I also told him I would put in less for holidays
Yeah I have a nice office and everything :P
 
you need to plan a pause/break between the two, everything else is not really realistically.
at least for yourself.
 
12:24 AM
> everything else is not really realistically
What do you mean?
Sorry I didn't understand
 
@Alesana you will have two major appointments each day.
and for planning you should put time between appointments.
 
Ah yes
Makes sense
 
i don't mean that you should tell anyone, but for yourself you should have a phase in between.
 
Yeah, maybe I will exercise for an hour in between to stay healthy
 
an hour sounds pretty well. this is merely planning. if you get routine things will work out for you more fluently, but consider the cases when not.
then not having this extra time will create stressful situations for no reason.
 
12:28 AM
True
 
in the end none of the the others will ask you about that, so if you prepare well there for yourself, thinks are normally fine.
personally I find 40 hours per week for regular work pretty at the limit.
 
The best part is that I am completely flexible with the contract work hours
40 can be stressful, but I was able to do 50+ for a bit without too much extra stress
 
for parts of my job it might be not that, e.g. for things I love to do at the computer, but there are third parties involved and it comes with obligations and you sometimes need to do thing get done to keep the mind free easily and then if it's already at the personal limit it's a fight. at least for me. no good for personal life.
 
Well, it did get stressfull when I wasn't giving myself weekends
 
yeah I can also do countless hours but this heavily depends on what. and if it's work for money where money is upfront, this has limits. if it's work and you get well payed, and the conditions are right and you're first of all valued for being yourself, this is different.
 
12:32 AM
Yes I feel pretty good about my current job's conditions, I enjoy what I do a lot
 
More likely with contracting work maybe, and if it's you who is hired. Like getting paid for having a "Schreibblockade" because they want you (basically getting paid with no results for let's say two weeks and the results can be done within a day or two then).
But if you contract a work, e.g. specific results, this is something totally different. You have to calculate in sick time etc. and consider contract conditions from the legal side and what not, because it can mean you need to pay if you don't deliver. And then it's the opposite: Instead of getting money for the hours, you might need to work for hours and even pay money for that.
Just saying.
Don't wan't to paint an overly horrific scenario here.
 
Those are all definitely good things to consider
The terms are pretty straight forward though with hourly pay
 
Yes, never sale something you can't sale for sure.
 
I just get to do them when I want
 
And a day has 24 hours ;)
It sounds to me you have a good sense to look for the right things for yourself.
For contracting I think it's necessary to think this through and to have some key points where you can switch to plan B so you have some escalation strategy already build-in.
So just for normal operations all fine, and in case, have room upfront to deal with it.
Prep the third parties upfront, otherwise know your rights and how to process them quickly without doubt.
 
12:46 AM
Thanks for all the advice, definitely some solid things to think about
 
E.g. w/ payment conditions.
You only have the money in your account, not what anyone tells you who wants to pay you only if your would do this and what not first.
If you contract about hours, this should be straight forward, check if someone want's to gain a benefit of just talking to you to say otherwise.
E.g. short payment cycles and a clean regulation if there is no payment. E.g. they could own you money even if you don't work because they did not pay you on time.
A clean contract here would also give you confidence they want to do this for the amount of weeks.
In business people tend to look for options and opportunities in their interest, so I would normally say it is important to get things straight on that level early.
(get/set)
@Alesana Sometimes I talk too much ;) I think 52 weeks is pretty much a figure, so put that into consideration for the various points. I don't know your age, just saying as this can make a difference on the planning horizon, but the best tip I can give don't think about trying but doing it. That helps a lot.
 
1:31 AM
Yeah there's definitely a lot to look out for when contracting, I'm mainly worried about how long I can keep 60 hours a week up for though :P
 
ohai @Alesana o/
@Alesana Tried meth yet? :p
 
Wes
1:48 AM
@DaveRandom dunno @kelunik surely remember better than me
 
Og
That's
A weird hack lol
 
Wes
while(true) is too mainstream
:P
 
But I'm going to bed, will have a read about that tomorrow
 
Wes
the css parser there is the fastest i could make it
the tokenization is all done i think i am missing some stuff in the parser bit
 
I think while writing that I discovered 1 genuine bug in Psalm due to not knowing PHP 7.4 syntax and another weird one
Huh
Oh well it's a good exercice
Still at the tokenization/lexer bit
Well mostly writing tests too but yeah missing URL algorithm and then I should be done on that front lol
 
Wes
1:51 AM
yeah it was nice
 
2:44 AM
Crash seen during cyclic garbage collection in Phan's unit tests – #78811
 
3:19 AM
hey guys, what thinks should I look if I want to recreate this site
 
3:56 AM
\o
 
4:07 AM
I noticed, by accident, if you change the zoom on twitter to 175%, the interface is much nicer on desktop ...
 
 
3 hours later…
6:57 AM
ipso facto by the fact itself; by the very nature of the deed: to be condemned ipso facto.
 
 
1 hour later…
8:17 AM
morning
 
good mornings
 
cmb
\o
 
morns
 
Could someone tell me a situation where traits would make most sense and not a code smell?
 
8:32 AM
@2dsharp if they are a smell they are a smell.
What would you consider a problem with traits the smell reminds you on?
 
@hakre I haven't really used them and haven't found a use for them yet. People on the internet seem to be concerned with them smelling. I am looking for use cases.
 
@2dsharp Look in Symfony they use traits
 
@brzuchal Cool, which component should I look into as an easy starting point?
 
ContainerAwareInterface and ContainerAwareTrait
for eg.
 
Alright thanks!
 
@2dsharp It's not I can say, use them all day long, but one use-case I had and somewhere should be an example is when extending the different DOMNode types it is easy to group common functionality.
@brzuchal This gets you into Wonkas choclate factory, right?
 
@brzuchal So it seems like the classes which implement ContainerAwareInterface are simply using the ContainerAwareTrait to reuse that bit of code. This can also be solved by extending a class right?
Is it possibly because the classes using the traits are unrelated and thus can't follow a similar hierarchy?
 
9:21 AM
@hakre it can
@2dsharp the container aware interface is rare usage cause when you depend on dependency injection probably don't need to be aware of container, it might be usefull when you wanna reach out public services then applying interface and trait gives you quick access to the container cause Symfony's locator and injector will find your service and inject container through the setter method - this needs no configuration then
I'm not a fan but sometimes it's just easier to reuse already existing code
 
9:44 AM
\o
 
DNC
Hi guys
https://justpaste.it/4rl8v
I have this output, you can see the same dates are mentioned multiple times. I would like to merge those.
Any idea how to?
0
Q: Php array merge 2d array with same values

DNCThe output I am getting mentions the same date multiple times and I need to merge this. Output I have: [{"checkFullAuth":true},{"2019-11-14":0,"avail_slots":0,"dates":"2019-11-14"},{"2019-11-15":1,"avail_slots":6,"dates":"2019-11-15"},{"checkFullAuth":true},{"2019-11-14":1,"avail_slots":14,"dat...

 
10:04 AM
morning
 
DNC
Good morning
@Naruto Any chance you can help with my php array question?
 
easiest guess when looking at it fast is to prob double loop it
 
DNC
I have tried, but didn't succeed
 
well, you could always share that code in your question aswell, people will help you faster if you show your efforts
 
DNC
Thanks, will do that
 
DNC
10:30 AM
@Naruto question updated
 
10:59 AM
good mornings
 
11:17 AM
Error in case recognition of the first letter in cyrillic strings – #78812
 
11:35 AM
SQLite ALTER TABLE query is returning columns – #78813
 
DNC
No one?
If I have a php array like {{1,2,3},{4,5,6}} -> how do I change the {1,2,3} to {1,1,1} ?
$array1[0] = [1,1,1] doesn't work
 
When you say "doesn't work", can you elaborate on 1) what you expect to happen, and 2) what actually happened?
 
DNC
11:50 AM
I expect the array to change to {{1,1,1},{4,5,6}} But what happens is {0={1,1,1}}
 
Because it definitely works: 3v4l.org/WPLJ2
 
12:06 PM
o/
Q: I am currently the 'main' back-end developer here, we want to scale our company from 2 developers ( 1 back-end developer / 1 front-end developer) to 4.

Are you guys here used about taking interviews with other PHP devs ? Im searching for questions I could ask. ( I already have some default standard ones.. )
I also wonder how hard I should dive into the 'php word' on a introduction interview?
 
12:28 PM
My suggestion: don't focus a ton on PHP knowledge itself. Definitely touch on some basics, but focus more on teamwork, around architecture, around conflict resolution
One trick I like is do a code review together. Ask them to pick some PHP code (can be theirs, or open source code they found on github) and do a code review together. Talk about what's nice, what could be improved, naming, etc
As far as introductory interviews (assuming phone screening, etc) I would suggest talking about their experiences, how they contributed to a team, how long they have be using PHP, about a time they shipped a major bug by accident, etc
 
Hi
My boss said that PHP DateTime is not accurate when I do $dt->modify('-700 day'), arguing that MySQL IS accurate, and I should use MySQL to calculate that, is for real that PHP DateTime is not accurate?
 
you are not accurate, what do you mean by 700 days !? what your boss means is that the assumptions mysql makes about the meaning of "700 days" more accurately represent his intended meaning ...
although tbh given a correctly configured mysql and php (and or application/code), I can't see how there might be a difference ... maybe one of them is configured incorrectly ...
 
12:50 PM
@DNC did you mange to fix it?
@Duikboot I once got the question how many laundry machines do you think are available in your country?
 
Wow thanks @ircmaxell !
Lol Naruto :p haha
@ircmaxell 1 more question, the thing is I assume the person I have to hire has a higher skillset then me. ( Im more all around :p ) . We need now a back-en beast
 
if I think about it now, it's a pretty cool question, it shows you how a person thinks
there is no correct answer to the question, it's all about how you think and what you think about
 
:-D true!
 
are you just basing yourself on 1 interview or are there multiple interview rounds?
 
@MáximaAlekz You have both the PHP code and the SQL for Mysql?
 
1:06 PM
I am totally free @Naruto :-) I was thinking 2 interview moments.
1) More introduction
2) Some kind of test?
 
Well first interview should be overall, so intro, basic knowledge, check characteristics, is he or she the person that would fit your company, should keep it pretty overall
and then on the 2nd you could go in depth about some stuff
 
1:28 PM
@hakre Yes, but I want to go PHP DateTime solution, instead connecting to database for that
@hakre My boss is against PHP Solution because he thinks PHP DateTime is not accurate
 
@ircmaxell I think I want there to be an ffi-bridge layer or extension that abstracts zval -> zend_execute_data and everything in between with an api at least as stable as the internal one
is that a bad idea ?
writing this layer in php looks fragile to me, it sort of exists ...
 
2:02 PM
@Naruto Yes but those are al so 'standard' questions :p
I would like to ask something more alike the laundry machines. :-D
 
you could make it hair dryers? ^^
 
hahahaha
What personal questions you got for example?
Trying to setup myself some cheat-sheet.
 
@PeeHaa Not yet haha
I am ADD though so maybe I can get Adderall to help me :P
The next best thingâ„¢
 
@MáximaAlekz Say hum you would not even trust the database, but only him when he calculates it in front of your eyes.
 
Undocumented "const" – #78815
 
2:17 PM
@hakre lol
 
@JoeWatkins you mean to hack on internals via ffi? I think that's an extraordinarily bad idea
 
@MáximaAlekz till date people are still creating bad names for PHP.
 
Now, if you are going to do it, I think a bridge layer is definitely needed, if for nothing else than abstracting signature changes on debug and zTS builds ..
 
Lol am not saying PHP is good either.
 
I know, I know, even with tools like Swoole/ReactPHP that proves PHP can go faster and faster over and over
 
2:29 PM
While you are there, I would suggest exporting almost all the gcc constants and defines in some way, so userland code can know how to link easier (and not have to hard-code the size of size_t for example)
And also exporting macros to functions (like the hash table macros, zval macros, etc)...
 
@Duikboot I'm not that experienced with it myself, but I have a friend of mine who is a recruiter, I'll ask him and I'll come back to you as soon as I know more
 
Ha nice thanks a lot @Naruto
;p
 
@ircmaxell first, so do I, but, it's already happening, and in php ... and it seems to be gathering interest ... we imagine everyone is going to want to write a tensorflow wrapper or whatever, but in reality, they want to hack the engine, it seems ...
 
Missing / wrong description of the assert_callback – #78816
 
I think, I just wanted to hear you say it was a bad idea ... I know it's a bad idea because of what it leads too ... but there appears to be a path to those things anyway, and it's even scarier than a formal bridge ...
 
2:43 PM
That's definitely fair
Maybe provide a wrapper system to provide maintained implementations of the main core data structures as FFI objects. So at least you can handle defines and versions and such
 
when I say bridge, that's all I'm really talking about ...
@lisachenko ^relevant words ... I hope some of them land ...
especially all of them ... in the order they appear in, with emphasis all around everything, add bold as needed ...
 
Lololol
 
3:11 PM
@Duikboot any place I can sent you some info?
 
4:05 PM
What would be the best way to store immutable data that can be verified by the public (other than blockchain)?
 
signing it with a key
Or do you need a more enterprise solution? There is something with a ledger system from the paragon project: github.com/paragonie/chronicle
 
@user3655829 thanks for your response!
 
We users have to hold together
 
The use case I'm looking for is something like: A platform stores some transaction data which I need to ensure is not tampered with..
The Chronicle thing looks interesting
 
4:41 PM
@kelunik @Trowski I'm looking for a simple as possible test case for the issue with the windows process wrapper where it stops spawning new processes after a while, have you got one?
can't even find a github issue for it
 
@DaveRandom So you want it to spawn a process, but it doesn't?
 
4:59 PM
@DaveRandom I don't recall such an issue? Was it only discussed in chat?
 
@Trowski once you reach a certain number of live children it just stops spawning new processes
@Trowski maybe, I know @Wes ran into it
 
I guess just start spawning children that sleep or something…
 
cmb
@NikiC, OPcache perf regression was caused by excessive logging of array_key_exists on objects deprecations; all good now
 
@Trowski Regardless, I'm refactoring the process wrapper to be single threaded, which I think will eliminate that problem (or at least make the threshold much higher) and should make the whole thing generally more performant and less memory hungry.
I am 99% certain that I've figure out how to make async pipes work natively on windows in PHP, but I'm doing this to make sure that I actually understand it properly first :-P
 
@DaveRandom Sounds awesome. So there would be only a single extra process on windows?
 
5:06 PM
well that is also doable but that will need a redesign of the protocol
for now it will still be an extra process per child, but teh extra process will only have 1 thread (currently it has 4)
I have figured out how to make pipes stream_select()-able though, at least for reads (which is what matters)
will be an ABI break for streams though, so will have to wait for 8 :-/
but at least that gives me time to get it right
 
cmb
Sounds great @DaveRandom!
 
sure, but those are all just words rn :-P
this all started from the console/VT100 thing, I started looking at that and ended up realising that the problem (in PHP) is much more deep rooted and a lot of stuff needs to change for it to work properly, no actual code for php-src has been written yet but I have a cunning 900-step plan :-P
need to "fix" pipes first, or at least both pipes and char devices need the same API changes to work properly and pipes are easier
in theory you could actually make async local file I/O work as well but that's at the bottom of the list of things to do...
 
cmb
5:30 PM
I'm not really good at pipe stuff, but AIUI that's half-way broken on Windows, and one has to work-around. Would be great to resolve that.
 
@DaveRandom Ah, well that's still much better.
 
cmb
5:59 PM
@Derick, announce RC6? :)
 
6:27 PM
@DaveRandom One process for all children would be cool.
 
6:48 PM
Hi guys, i was wondering if anyone has experience in dealing with RFI attacks? and how to conduct one to open a shell?
 
@cmb I just got home from Barcelona!
It's still Thursday :-)
@DaveRandom His accounts are overdue...
@cmb Done :-)
 
7:20 PM
@cmb heh
 
If somebody does know ^, i would be over the moon
 
7:40 PM
Since it was dead in here last time I brought this up:

Named parameters via pattern matching

Oct 25 at 18:03, 8 minutes total – 8 messages, 1 user, 0 stars

Bookmarked 12 secs ago by Levi Morrison

Where [route: $route, params: $params] is short-hand for ['route' => $route, 'params' => $params], since it saves 4 chars per usage.
 
 
1 hour later…
9:08 PM
@adsr is it possile to use phpspy on ubuntu compiled php? it starts with objdump error on libphp7.*.so for me not finding "basic_functons". i have the feeling it needs to be a php compiled into one binary not dynamically loaded?
 
9:26 PM
Hi guys
I a working on a business case like this :
Economic inequality is a huge issue. A recent study found that the world's 80 wealthiest individuals own as much as the entire world's poorest 3.5 billion people. The richest 1 percent of the world's population control half of the world's total wealth.15 Many individuals, corporations, charities, and government agencies have projects and programs in place to attempt to tackle this and other important global issues such as sustainability, but there are many opportunities to do more.

A trinidad group of college students has decided to work together to do their part in making the world a bett
I have been told to identify/evaluate positive and negative risks
I am not getting what could be the positive risks in this
I do have idea about negative risks like :
Projects cost way more to implement than projected
But i am not getting about positive risk
Sorry I know this is not related to PHP
 
The irony of shark tank being to further enrich the rich
 
Positive risks?
 
Economic inequality is a huge issue > Idea based on shark tank which exists to further enrich its patrons.
 
I saw one example of positive risks like this :
Examples of positive risk events include completing work sooner or cheaper than planned, collaborating with suppliers to produce better products, and good publicity resulting from the project.
but does it apply in my case study?
 
How exactly is that a risk?
 
9:35 PM
I dont know I saw this somewhere on the website
 
Risk (noun) a situation involving exposure to danger.
 
"completing work sooner or cheaper than planned" is not a danger
 
Someone told this to me :
I would record those risks that prevent the project from starting and from completing, but not those that are going to happen after the project is fully implemented.
 
isn't positive risk actually just anything that has a positive impact on your business goals
which isn't actually a 'risk' in the way we'd all think
 
Yes thats right but what positive impact
 
9:38 PM
Positive risk is an oxymoron. Unless of course you have a profound fear of praise.
 
thats what i am trying to identify
 
dunno, something like your client being easy to deal with? : P
or a country being open for environmental projects... why did this one made me feel like its never gonna be true
 
Can i mention this : Client being easy to deal with ?
as positive risks?
 
I'd think you can
just come up with anything that would make the project progress easier/better imho
 
(If you define what the word risk means)
 
9:43 PM
For example, negative risk events might include the performance failure of a product created as part of a project, delays in completing work as scheduled, increases in estimated costs, supply shortages, litigation against the company, and strikes. Examples of positive risk events include completing work sooner or cheaper than planned, collaborating with suppliers to produce better products, and good publicity resulting from the project.
 
None of those meet the criteria to be called a risk
 
yeah I think I start to understand that there is a proposed "redefinition" of risk, namely, positive risk makes that about not being a danger
I don't know a word for that, totally willing to roll with it
 
In business, the opposite of risk is usually reward
 
from a quick look, some readings associate negative risk with the word 'threat', and positive risk with 'opportunity'
 
Yup, a good choice Ekin
 
9:47 PM
2
Q: How to identify risks in a given case study?

ILoveStackoverflowI am working on a case study which is like below : Economic inequality is a huge issue. A recent study found that the world's 80 wealthiest individuals own as much as the entire world's poorest 3.5 billion people. The richest 1 percent of the world's population control half of the world's total ...

 
I feel like its just about something having a negative impact vs a positive impact on whatever you're trying to do
 
Exactly
Negative is bit easy
but positive is hard
 
Every time I see someone compare inequality like that, or the million vs billion thing, I want to scream.
I mean, let's take 10% of that top 80s wealth, divide it equally among the bottom 3.5 billion, and say hello to my little friend hyperinflation
 
I have recently asked here in the chat how to contribute to the PHP docs. The reason for this is that I believe mysqli docs should get updated. In one case I even believe the PHP manual is wrong. I have asked a question recently about it, with a self-answer, but I didn't get any feedback from anyone on it. [Should we ever check for mysqli_connect() errors manually?](https://stackoverflow.com/q/58808332/1839439)
Do you know anyone responsible for the mysqli manual or is it maintained by the community? Just compare the [tag wiki](https://stackoverflow.com/tags/mysqli/info) we have here with t
 
Can we say we could have more profit due to popularity of events as positive risks?
Or project will be completed within stipulated time as positive risks?
 
9:58 PM
No, no you couldn't. Because it's nonsensical.
That you finish significantly before you mean to, requiring you to pay additional insurance and maintenance costs to cover the period up till when you are due to launch, that's a risk.
 
This seems positive risk though
 
Risk can only be positive if you are either a) a masochist or b) redefine what the word risk means
You're trying to put a square peg in a round hole
That's different than positive risk-taking.
 
10:42 PM
@Dharman Why is it wrong?
 
There is no need to manually check for error messages.
 
It's an example
It shows what functions do
 
The page for connect error at least silences the warning: php.net/manual/en/mysqli.connect-error.php
 
Well if the pages would have been proper it would have had examples of pdo instead :P
@Dharman Why not?
 
Why not what?
 
10:46 PM
> There is no need to manually check for error messages.
 
See my self answer
 
I did
 
Why should we check for them?
 
Because not everybody may agree that those are exceptional cases
 
?? What do you mean exceptional cases?
 
10:48 PM
Not saying I am one of those people
But saying it is wrong when you mean to say "I would do it differently" is not the same thing imo
 
ThW
handling connection errors does not mean to show them to a website visitor
logging, development modes, ...
 
One is objective the other is subjective
Even if I agree with you
 
I meant that the manual suggest this, but it is not explained why or what benefit it brings.
If you silence mysqli_connect with @ then it only makes sense
 
What about ini settings?
There are more ways to not print error messages on the screen
 
Sure, but then the manual should suggest to enable error logging instead of poor debugging practices
 
10:52 PM
The manual is imho for usage and less for best practices in most cases
 
also there is criticism about best practices.
 
It should in most cases be objective and just show what functions do
@hakre Exactly as it is subjective in a lot of cases
 
and the problem is that many people use it, but not as a temporary debuggin way but they leave it in prod code
 
@Dharman So do you suggest not writing documentation for those functions?
 
I never said that
I mean that there is no need to show how to use connect_error in mysqli_connect page
 
10:55 PM
They seem pretty related to me :-)
 
How?
 
+1 what PeeHaa wrote. About the how: connect.
 
ThW
Shouldn't the connection errors be exception by now?
 
@ThW oh you oo fetishist ;) .
 
@ThW Only if you set it up
You are asking how a connect function and a function to get connection errors are related? @Dharman
 
10:56 PM
Yes, mysqli can throw exceptions, which would be the better option to show in the code example than die-ing with connect error
 
ThW
@PeeHaa global conversion or just a try catch encapsulation?
 
@ThW You can setup mysqli to throw on errors
 
mysqli_connect will throw either a warning or exception, there is no need to suggest manual checking
 
Basically just like pdo
@Dharman but I disabled showing warnings
 
ThW
hmm not sure I did that (I have a global error -> exception handler) .. I should check that.
 
10:58 PM
@ThW Just use PDO :P
 
If you disable warnings that is your fault
 
@Dharman well this is subjective. if error handling is via the function interface, this belongs to each other. Even you might prefer using try / catch instead.
 
No it is not
@Dharman Nothing about that page is wrong
 
dont try-catch
that is just as bad
 
It explains how to use functions
That is what the manual is for
 
10:59 PM
but this is just my point, we have a separate manual page to explain these function. mysqli_connect should just be mysqli_connect
 
00:00 - 23:0023:00 - 00:00

« first day (3316 days earlier)      last day (1623 days later) »