{"action":"created","issue":{"url":"https://api.github.com/repos/oyejorge/less.php/issues/298","labels_url":"https://api.github.com/repos/oyejorge/less.php/issues/298/labels{/name}","comments_url":"https://api.github.com/repos/oyejorge/less.php/issues/298/comments","events_url":"https://api.github.com/repos/oyejorge/less.php/issues/298/events","html_url":"https://github.com/oyejorge/less.php/issues/298","id":127126489,"number":298,"title":"Inline Images Exception","user":{"login":"GodMod","id":3757157,"avatar_url":"https://avatars.githubusercontent.com/u/3757157?v=3","gravatar_id":"","url":"https://api.github.com/users/GodMod","html_url":"https://github.com/GodMod","followers_url":"https://api.github.com/users/GodMod/followers","following_url":"https://api.github.com/users/GodMod/following{/other_user}","gists_url":"https://api.github.com/users/GodMod/gists{/gist_id}","starred_url":"https://api.github.com/users/GodMod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GodMod/subscriptions","organizations_url":"https://api.github.com/users/GodMod/orgs","repos_url":"https://api.github.com/users/GodMod/repos","events_url":"https://api.github.com/users/GodMod/events{/privacy}","received_events_url":"https://api.github.com/users/GodMod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-17T21:50:21Z","updated_at":"2016-01-17T23:01:00Z","closed_at":null,"body":"Hello,\r\n\r\nI have this CSS File http://duathferyn.com/data/d704a31a4ffdbf9dc9080d4f85c31e43/eqdkp/templates/eqdkp_neon/dev_jquery_tmpl.css\r\nAnd this statement `list-style-image: url(\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\");` traps an exception, but only on some hosts.\r\n\r\nI tried to narrow it down.\r\n```\r\nstring(83) \"peq: data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\r\nstring(4) \"val \"\r\nobject(Less_Tree_Quoted)#2336 (7) {\r\n  [\"escaped\"]=>\r\n  bool(false)\r\n  [\"value\"]=>\r\n  string(78) \"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"\r\n  [\"quote\"]=>\r\n  string(1) \"\"\"\r\n  [\"index\"]=>\r\n  int(14261)\r\n  [\"currentFileInfo\"]=>\r\n  array(7) {\r\n    [\"entryPath\"]=>\r\n    string(0) \"\"\r\n    [\"entryUri\"]=>\r\n    string(0) \"\"\r\n    [\"rootpath\"]=>\r\n    string(0) \"\"\r\n    [\"currentDirectory\"]=>\r\n    string(0) \"\"\r\n    [\"currentUri\"]=>\r\n    string(21) \"anonymous-file-0.less\"\r\n    [\"filename\"]=>\r\n    string(21) \"anonymous-file-0.less\"\r\n    [\"uri_root\"]=>\r\n    string(0) \"\"\r\n  }\r\n  [\"type\"]=>\r\n  string(6) \"Quoted\"\r\n  [\"cache_string\"]=>\r\n  NULL\r\n}\r\nstring(1) \")\"\r\nstring(1) \";\"\r\nstring(4) \"val \"\r\nstring(0) \"\"\r\nstring(1) \"\"\"\r\nstring(1) \"d\"\r\nFatal error parsing less: dev_core  in anonymous-file-0.lessstring(27) \"peq: http://duathferyn.com/\"\r\n```\r\nIt seams that `parseEntitiesQuoted()` as well as `parseEntitiesVariable()` in `parseEntitiesUrl()` works, but `/\\\\Gdata\\:.*?[^\\)]+/','/\\\\G(?:(?:\\\\\\\\[\\(\\)\\'\"])|[^\\(\\)\\'\"])+/` seams to fail."},"comment":{"url":"https://api.github.com/repos/oyejorge/less.php/issues/comments/172392896","html_url":"https://github.com/oyejorge/less.php/issues/298#issuecomment-172392896","issue_url":"https://api.github.com/repos/oyejorge/less.php/issues/298","id":172392896,"user":{"login":"GodMod","id":3757157,"avatar_url":"https://avatars.githubusercontent.com/u/3757157?v=3","gravatar_id":"","url":"https://api.github.com/users/GodMod","html_url":"https://github.com/GodMod","followers_url":"https://api.github.com/users/GodMod/followers","following_url":"https://api.github.com/users/GodMod/following{/other_user}","gists_url":"https://api.github.com/users/GodMod/gists{/gist_id}","starred_url":"https://api.github.com/users/GodMod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GodMod/subscriptions","organizations_url":"https://api.github.com/users/GodMod/orgs","repos_url":"https://api.github.com/users/GodMod/repos","events_url":"https://api.github.com/users/GodMod/events{/privacy}","received_events_url":"https://api.github.com/users/GodMod/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T23:01:00Z","updated_at":"2016-01-17T23:01:00Z","body":"```\r\n$regex = '/\\\\G\"((?:[^\"\\\\\\\\\\r\\n]|\\\\\\\\.|\\\\\\\\\\r\\n|\\\\\\\\[\\n\\r\\f])*)\"|\\'((?:[^\\'\\\\\\\\\\r\\n]|\\\\\\\\.|\\\\\\\\\\r\\n|\\\\\\\\[\\n\\r\\f])*)\\'/';\r\n\r\n$image = '\"data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBU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6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==\");';\r\n\r\n$a = preg_match($regex, $image, $b);\r\n\r\nvar_dump($a);\r\nvar_dump($b);\r\n```\r\nThis little test script works on some hosts, on some not. Any Idea why?"}}