{"action":"created","issue":{"url":"https://api.github.com/repos/ifsnop/mysqldump-php/issues/74","labels_url":"https://api.github.com/repos/ifsnop/mysqldump-php/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/ifsnop/mysqldump-php/issues/74/comments","events_url":"https://api.github.com/repos/ifsnop/mysqldump-php/issues/74/events","html_url":"https://github.com/ifsnop/mysqldump-php/pull/74","id":56147253,"number":74,"title":"Optional parameter to getFilename to guess the archive filename that will be created","user":{"login":"gwarnants","id":810054,"avatar_url":"https://avatars.githubusercontent.com/u/810054?v=3","gravatar_id":"","url":"https://api.github.com/users/gwarnants","html_url":"https://github.com/gwarnants","followers_url":"https://api.github.com/users/gwarnants/followers","following_url":"https://api.github.com/users/gwarnants/following{/other_user}","gists_url":"https://api.github.com/users/gwarnants/gists{/gist_id}","starred_url":"https://api.github.com/users/gwarnants/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwarnants/subscriptions","organizations_url":"https://api.github.com/users/gwarnants/orgs","repos_url":"https://api.github.com/users/gwarnants/repos","events_url":"https://api.github.com/users/gwarnants/events{/privacy}","received_events_url":"https://api.github.com/users/gwarnants/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-01T01:16:30Z","updated_at":"2015-02-02T13:28:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ifsnop/mysqldump-php/pulls/74","html_url":"https://github.com/ifsnop/mysqldump-php/pull/74","diff_url":"https://github.com/ifsnop/mysqldump-php/pull/74.diff","patch_url":"https://github.com/ifsnop/mysqldump-php/pull/74.patch"},"body":"This modification allows getFilename() to be called before the start() method. This can be useful to control if the dump has already been written, and don't overwrite it (ie: in case of a daily dump that should be done only once)\r\n\r\n```php\r\n$settings = array(\r\n    'compress' => Mysqldump::GZIP\r\n);\r\n\r\n$output = 'dump.sql';\r\n$dump = new Mysqldump($db, $username, $password, $host, $type, $settings);\r\nif (!is_file($dump->getFilename($output)) { // test if dump.sql.gz already exists, to don't write it twice\r\n    $dump->start($output); // write dump.sql.gz\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ifsnop/mysqldump-php/issues/comments/72457531","html_url":"https://github.com/ifsnop/mysqldump-php/pull/74#issuecomment-72457531","issue_url":"https://api.github.com/repos/ifsnop/mysqldump-php/issues/74","id":72457531,"user":{"login":"ifsnop","id":967656,"avatar_url":"https://avatars.githubusercontent.com/u/967656?v=3","gravatar_id":"","url":"https://api.github.com/users/ifsnop","html_url":"https://github.com/ifsnop","followers_url":"https://api.github.com/users/ifsnop/followers","following_url":"https://api.github.com/users/ifsnop/following{/other_user}","gists_url":"https://api.github.com/users/ifsnop/gists{/gist_id}","starred_url":"https://api.github.com/users/ifsnop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifsnop/subscriptions","organizations_url":"https://api.github.com/users/ifsnop/orgs","repos_url":"https://api.github.com/users/ifsnop/repos","events_url":"https://api.github.com/users/ifsnop/events{/privacy}","received_events_url":"https://api.github.com/users/ifsnop/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T13:28:48Z","updated_at":"2015-02-02T13:28:48Z","body":"I believe that if extension appending is removed, there should be no need to query for the output filename."}}