{"action":"created","issue":{"url":"https://api.github.com/repos/piersharding/php-sapnwrfc/issues/6","labels_url":"https://api.github.com/repos/piersharding/php-sapnwrfc/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/piersharding/php-sapnwrfc/issues/6/comments","events_url":"https://api.github.com/repos/piersharding/php-sapnwrfc/issues/6/events","html_url":"https://github.com/piersharding/php-sapnwrfc/issues/6","id":33081202,"number":6,"title":"Windows build: my current result","user":{"login":"ThaDafinser","id":533017,"avatar_url":"https://avatars.githubusercontent.com/u/533017?v=3","gravatar_id":"","url":"https://api.github.com/users/ThaDafinser","html_url":"https://github.com/ThaDafinser","followers_url":"https://api.github.com/users/ThaDafinser/followers","following_url":"https://api.github.com/users/ThaDafinser/following{/other_user}","gists_url":"https://api.github.com/users/ThaDafinser/gists{/gist_id}","starred_url":"https://api.github.com/users/ThaDafinser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThaDafinser/subscriptions","organizations_url":"https://api.github.com/users/ThaDafinser/orgs","repos_url":"https://api.github.com/users/ThaDafinser/repos","events_url":"https://api.github.com/users/ThaDafinser/events{/privacy}","received_events_url":"https://api.github.com/users/ThaDafinser/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2014-05-08T13:02:12Z","updated_at":"2015-04-15T09:47:24Z","closed_at":"2015-04-13T12:58:38Z","body":"I'm currently trying to build this as a windows extension.\r\n\r\nMy dev enviroment on the php side should be fine ... already compiled some other php-extensions. But it seems i have at least one error left with this extension.\r\n\r\nMy progress so far:\r\n\r\n## building as dll with VS2012\r\nI \"sucessfully\" created the dll with VS2012 for TS and NTS. (the build log says that...)\r\nhttps://gist.github.com/ThaDafinser/e6380157c4f77a3286e5#file-log_nts-txt\r\nhttps://gist.github.com/ThaDafinser/e6380157c4f77a3286e5#file-log_ts-txt\r\n\r\nBut when loading this extension with php it complains:\r\n`PHP Startup: Invalid library (maybe not a PHP library) 'php_sapnwrfc.dll' in Unknown on line 0`\r\n\r\n## building with config.w32 (counter file of config.m4)\r\nSo i tried another approach: Building a `config.w32` file.\r\nhttps://gist.github.com/ThaDafinser/e6380157c4f77a3286e5#file-config-w32\r\nNote: i moved the SAP NW RFC files inside the extension folder `nwrfcsdk/[lib]|[include]`\r\nThe files are already checked in the `config.w32` files and when extecutiong `configure --options....` all seems to be fine\r\nhttps://gist.github.com/ThaDafinser/e6380157c4f77a3286e5#file-configure-log\r\n\r\ncommand `nmake` doesnt complain...\r\n\r\nwhen executing `nmake snap` it complains:\r\n```cli\r\nWARNING: distro depends on msvcr110.dll, but could not find it on your system\r\nWARNING: distro depends on sapnwrfc.dll, but could not find it on your system\r\n```\r\nhttps://gist.github.com/ThaDafinser/e6380157c4f77a3286e5#file-gistfile1-txt\r\n\r\nWhen i run `sample.php` i already come to this output(without dl function at begin):\r\n```cli\r\nsapnwrfc version: 0.11\r\nnw rfc sdk version: major: 7200 minor: 0 patch: 22\r\n```\r\n\r\nThen at the line `$conn = new sapnwrfc($config);` is breaks:\r\n```cli\r\nRun-Time Check Failure #2 - Stack around the variable 'errorInfo' was corrupted\r\n```\r\n\r\n## Notes / Questions\r\n- My resources: \r\n  - https://wiki.php.net/internals/windows/stepbystepbuild     \r\n  - http://www.php.net/manual/en/internals2.buildsys.configwin.php \r\n  - http://www.dreamincode.net/forums/topic/244215-introduction-to-creating-a-php-extension-for-windows/\r\n- on this download site there are some old windows builds (which were my base partly), but i can't find the author of them \r\n  - http://www.piersharding.com/download/php/sapnwrfc/\r\n- i enabled the debug mode now...\r\n- any other idea?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/piersharding/php-sapnwrfc/issues/comments/93289913","html_url":"https://github.com/piersharding/php-sapnwrfc/issues/6#issuecomment-93289913","issue_url":"https://api.github.com/repos/piersharding/php-sapnwrfc/issues/6","id":93289913,"user":{"login":"inceddy","id":11957976,"avatar_url":"https://avatars.githubusercontent.com/u/11957976?v=3","gravatar_id":"","url":"https://api.github.com/users/inceddy","html_url":"https://github.com/inceddy","followers_url":"https://api.github.com/users/inceddy/followers","following_url":"https://api.github.com/users/inceddy/following{/other_user}","gists_url":"https://api.github.com/users/inceddy/gists{/gist_id}","starred_url":"https://api.github.com/users/inceddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inceddy/subscriptions","organizations_url":"https://api.github.com/users/inceddy/orgs","repos_url":"https://api.github.com/users/inceddy/repos","events_url":"https://api.github.com/users/inceddy/events{/privacy}","received_events_url":"https://api.github.com/users/inceddy/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T09:47:24Z","updated_at":"2015-04-15T09:47:24Z","body":"Not for me due to x64 architecture."}}