-
-
Notifications
You must be signed in to change notification settings - Fork 900
Semantic versioning? #1986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
How did that change break your code? Ultimately, when you get right down to it, even bug fixes can be potentially breaking changes. 3.0.36 also added some guardrails to https://xkcd.com/1172/ nicely illustrates this. https://phpseclib.com/docs/versioning talks about my versioning philosophy.
Thanks :) |
I extend the SSH2 class, we do some stuff in our own isConnected methods (retry, dispose connection if not used for a while, etc) so suddenly our class wasn't compatible anymore as the signature was different. We only implemented that Thursday last week, before then, nothing would have happened. So if you would be so kind as to stop looking at what mess we develop, to then break things, go find your fun elsewhere π. Jokes aside, it was really a non-issue, just wondering if there was any logic in the numbering, I should have looked further on your site to find your versioning info, makes perfect sense. |
Well extending phpseclib is certainly a valid use case. Carbon does that to \DateTime, for example. If I didn't consider that to be a valid use case then I ought to make the class a Altho I guess that could mean that my changing of π€·ββοΈ It's a use case I prob ought to try to consider more often. I don't want to be paralyzed to the point where every seemingly small change is a BC break but I'd just assume not break things for people either. |
this change broke our code too we keep getting this exception we rolled back to 3.0.35 as temporary solution, and everything start to work as expected. |
@malohtie - it's unclear what change 3.0.36 introduced that would be causing that behavior. If you want the issue actually fixed you'll need to provide more information. For a start, SSH logs. eg. do Thank you. |
Actually, I wonder if c948a9a maybe is causing this issue. As discussed in #1977 (comment) the change caused no issues in my own tests nor did it cause any issues in the unit tests but it's ultimately fairly difficult to determine the ultimate impact of that change. Quoting my comment in that post:
To test all you need do is this:
|
i m unable to get any logs the exception
Yes commenting this line solve this issue.
and with this current change
it will always timeout |
@malohtie - good catch. I just got to the office for my day job so I won't be able to fix this for ~8h or so but I'll implement a fix when I get home. Thanks! |
No worries! Take your time, and we appreciate your commitment! Thanks again. |
@malohtie when I posted this, I got the same issue and saw we passed 0 as timeout as well, but I assumed it was an error on our side. |
it will absolutely work with the if statement. thanks |
3.0.37 has been released. Thanks! |
Not a bug, just a question.
With the latest release (3.0.36) some of our internal code broke because we extend \phpseclib3\Net\SSH2 and the isConnected method didn't have the $level parameter. It's easy to fix that; there's no issue there.
However, would it be interesting to follow Semver? Then 3.0.36 would have been just a bugfix release and should not have broken things, while if someone sees that the second digit has changed, you know there are potential breaking changes. So this would have been version 3.1.0? But I understand that the API, in theory, didn't change as the $level is an optional parameter...
Great work by the way!
The text was updated successfully, but these errors were encountered: