Coder Social home page Coder Social logo

Comments (5)

jazzdan avatar jazzdan commented on July 20, 2024

I see mention of it here but it doesn't appear to work. We also ran into a need for this function today.

from fetch.

tedivm avatar tedivm commented on July 20, 2024

I've been holding off on diving into the HHVM stuff for this particular project until they manage to make the imap extension a bit more stable over there. At the moment it's got quite a few issues.

from fetch.

tomsommer avatar tomsommer commented on July 20, 2024

The imap_rfc822_parse_headers() function is broken anyway, as it ignores custom headers.

Run $message->getRawheaders() and parse the headers with a regexp instead.

Like:

preg_match_all('/([^: ]+): (.+?(?:\r\n\s(?:.+?))*)\r\n/m', $headers, $matches)
$headers = array_combine($matches[1], $matches[2]);

from fetch.

tedivm avatar tedivm commented on July 20, 2024

You want to make a pull request? You'll get all sorts of points if you get this working on HHVM.

from fetch.

tomsommer avatar tomsommer commented on July 20, 2024

It would break compat as it would return an array instead of an object, but we could typecast it to (object) I guess

from fetch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.