Closed mingtse closed 9 years ago
It looks stream_socket_enable_crypto
has not been implemented yet. Feel free to submit a PR if you (or someone else reading this) gets to this before we do.
im on hhvm-fastcgi + Laravel Im having same issue when trying to send mail SMTP via Mandrill gives stream_socket_enable_crypto error
I would love to hear if any progress on this has been made. Unable to send email via Swiftmailer on our server using HHVM.
Thanks!
Ditto. It makes a number of interest libraries fail, like PHPMailer, for example.
Any progress on stream_socket_enable_crypto function to be available? If not is there any workarounds? I really need to use swiftmailer, but without TLS encryption, it is a no go for HHVM. Still using old, slow & reliable PHPFPM.
Having the same problem with Xenforo it just gives a blank page whenever you try to signup at the point it does try to sent the registration email.
Seems everything else works so this is the only thing stopping me from fully being able to use Xenforo on hhvm.
Error: \nFatal error: Call to undefined function stream_socket_enable_crypto() in /public/library/Zend/Mail/Protocol/Smtp.php on line 206
+1 from here!
same story, laravel on hhvm using swiftmailer library fails, +1
Same here.. Using Laravel with Swiftmailer.
+1! Any way we can contribute?
@erikcvisser Sure.
stream_socket_enable_crypto
needs to be implemented.
Look into hphp/runtime/ext/stream/ext_stream.cpp
for other stream functions.
PHP's implementation is at https://github.com/php/php-src/blob/088eedfaa186e79f6f86b814f50efc947350bf88/ext/standard/streamsfuncs.c#L1493
+1 needed for apple apn push
+1 Is there an official work around for this?
Is this issue ever going to be addressed? If HHVM developers are not interested or think this is superfluous, please close this thread.
of course they are not going to fix it. they only fix shit that benefits them. anything else they say "feel free to submit a pull request"
\nFatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host smtp.mandrillapp.com [Connection timed out #110]' in /usr/share/nginx/html/giannis/api/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:274\nStack trace:\n#0 /usr/share/nginx/html/giannis/api/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(64): Swift_Transport_StreamBuffer->_establishSocketConnection()\n#1 /usr/share/nginx/html/giannis/api/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(115): Swift_Transport_StreamBuffer->initialize()\n#2 /usr/share/nginx/html/giannis/api/swiftmailer/lib/classes/Swift/Mailer.php(80): Swift_Transport_AbstractSmtpTransport->start()\n#3 /usr/share/nginx/html/test.php(14): Swift_Mailer->send()\n#4 {main}
\nFatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host smtp.mandrillapp.com [Connection timed out #110]' in /usr/share/nginx/html/giannis/api/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:274\nStack trace:\n#0 /usr/share/nginx/html/giannis/api/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(64): Swift_Transport_StreamBuffer->_establishSocketConnection()\n#1 /usr/share/nginx/html/giannis/api/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(115): Swift_Transport_StreamBuffer->initialize()\n#2 /usr/share/nginx/html/giannis/api/swiftmailer/lib/classes/Swift/Mailer.php(80): Swift_Transport_AbstractSmtpTransport->start()\n#3 /usr/share/nginx/html/test.php(14): Swift_Mailer->send()\n#4 {main}
I can successfully reproduce the problem
`
Sorry; while we currently have 7 people working full-time on improving HHVM for non-Facebook users, this currently isn't at the top of the pile - we try to prioritize based on balancing how popular a request is vs how long it's likely to take to implement/test. This is becoming a popular issue, so it's fairly likely to be re-prioritized once some of our current projects finish.
This functionality is something that takes longer than it might appear on the surface, given the sensitivity of the security implications around SSL and TLS. We just don't what to throw a half-baked implementation out to the world for something of this nature.
This would be a useful feature for fuelphp/email
so :+1: from fuelphp
Ran into this with Stripe's API: https://github.com/stripe/stripe-php/blob/master/lib/Stripe/ApiRequestor.php#L365
+1 Also I don't think 'of course they are not going to fix it. they only fix shit that benefits them' is a great attitude to have @r3wt . If you want something bad enough then do the hard work for it, don't blame others for their lack of time/resources.
+1 I have the same problem.
+1 Ran into this problem as well.
Call to undefined function stream_socket_enable_crypto() in /home/forge/...../vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 95
+1 Confirmed, Laravels mail functions does not work because of this.
+1 We also got the exception with PHPMailer: "call to undefined function..."
Subscribing @Zenexer
@johnjamesjacoby FYI we added a shortcut to work around it in the latest Stripe bindings: https://github.com/stripe/stripe-php/blob/master/lib/Stripe/ApiRequestor.php#L351-L352. As soon as HHVM has support for this we'll also do a version check to add the blacklist validation back in.
@bkrausz That'll do nicely. Thanks!
@bkrausz : function_exists('stream_socket_enable_crypto') or similar might be a better forward-compatible workaround
+1
+1
@siyengar might be taking a look at this :)
Can we get some more love for this issue? I realize this is open source software and free but this project is so huge none of us know where to even begin implementing this. Not to mention you guys would likely never accept a pull request from the community when it deals with security.
See my previous comment - we hopefully have someone working on it soon.
We would accept a pull request for this, but it would need reviewing by Facebook's security team (as would an internal implementation).
We love pull requests on pretty much anything that isn't implemented or bug laden. We may have to go through some extra layers of review + back and forth on security critical stuff, but that shouldn't stop you from submitting a pull request. At the very least, it might gives whoever works on something internally ideas or a starting point.
All pull requests won't all get accepted, of course, but they will all be considered for sure.
This one in particular we know is wanted by a lot of people and is hi-pri.
+1
+1
+1*10^∞
We're hoping to have someone start work on this within the next couple of weeks - hopefully we'll have more news soon.
+1, thanks for taking the time to fix this issue. You guys are really pushing PHP to the next level
only dont use TLS encryption and that will fix the problem or you can send your emails with zend engine
+1
Hey guys, thanks for your interest. I'm planning to work on this in December when things quiet down here as well with other projects.
+1
+1
+1
+1
there's no need to keep +1ing this. if you want to get notifications for when this issue is resolved, then use the subscribe button on the right side of this page.
+1
+1
stream's ssl and tls are not working in hhvm.
Running the openssl tests
http://gcov.php.net/viewer.php?version=PHP_5_3&func=tests&file=ext%2Fopenssl%2Ftests%2Fsni_001.phpt
None of them pass. HHVM exits with message:
HipHop Fatal error: Undefined function: stream_socket_enable_crypto