{"action":"opened","issue":{"url":"https://api.github.com/repos/phalcon/zephir/issues/864","labels_url":"https://api.github.com/repos/phalcon/zephir/issues/864/labels{/name}","comments_url":"https://api.github.com/repos/phalcon/zephir/issues/864/comments","events_url":"https://api.github.com/repos/phalcon/zephir/issues/864/events","html_url":"https://github.com/phalcon/zephir/issues/864","id":65901649,"number":864,"title":"Again problem with str_replace array","user":{"login":"valVk","id":1130626,"avatar_url":"https://avatars.githubusercontent.com/u/1130626?v=3","gravatar_id":"","url":"https://api.github.com/users/valVk","html_url":"https://github.com/valVk","followers_url":"https://api.github.com/users/valVk/followers","following_url":"https://api.github.com/users/valVk/following{/other_user}","gists_url":"https://api.github.com/users/valVk/gists{/gist_id}","starred_url":"https://api.github.com/users/valVk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valVk/subscriptions","organizations_url":"https://api.github.com/users/valVk/orgs","repos_url":"https://api.github.com/users/valVk/repos","events_url":"https://api.github.com/users/valVk/events{/privacy}","received_events_url":"https://api.github.com/users/valVk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-02T10:42:02Z","updated_at":"2015-04-02T10:42:02Z","closed_at":null,"body":"#381 closed and @phalcon said that was fixed.\r\n\r\nBut seems like this issue appeared again.\r\n\r\n```\r\nvar patterns = [\r\n    \":any\": \"[^/]+\",\r\n    \":num\": \"[0-9]+\",\r\n    \":all\": \".*\"\r\n];\r\nvar searches, replaces, str;\r\nlet str = \"mystringwith:anyinside\",\r\n    searches = array_keys(patterns),\r\n    replaces = array_values(patterns);\r\nvar_dump(str_replace(searches, replaces, str));\r\n```\r\n\r\nresult is `NULL`\r\n\r\n"}}