Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test to function openssl_pkcs12_export #1594

Closed
wants to merge 10 commits into from
Closed

Conversation

marcosptf
Copy link
Contributor

Was create a new test to function openssl_pkcs12_export;

I would like to say, that in official doc, don't have explain to function argument number 5, "args", to undertand what is work, i need to do many debugs and read the comments from docs.

Thanks

Was create a new test to function openssl_pkcs12_export;

I would like to say, that in official doc, don't have explain to function argument number 5, "args", to undertand what is work, i need to do many debugs and read the comments from docs.

Thanks
@marcosptf
Copy link
Contributor Author

@jerrygrey
Copy link

@marcosptf --CLEAN-- is missing and...

$priv_key_file_pem = "file://" . dirname(__FILE__) . "/{$key_file}";
$priv_key_dir_pem = __DIR__ . "/{$pem_file}";

Should be...

$priv_key_file_pem = 'file://' . __DIR__ . DIRECTORY_SEPARATOR . $key_file;
$priv_key_dir_pem = __DIR__ . DIRECTORY_SEPARATOR . $pem_file;

Also, why are the files used named "bug37820"? It seems quite confusing.

@marcosptf
Copy link
Contributor Author

Hi @jerrygrey G-Morning!!!
here in Brazil, is a new day
:-)

lets go to the facts:
1)i can't use this way, because in docs official php, recomend use protocol file://
$priv_key_file_pem = DIR . DIRECTORY_SEPARATOR . $key_file;
pr-1594-1

2)i've trying use like your said, but the test have failed:
pr-1594-2

3)i'm using the file bug37820key.pem to test, because it is used in another test and too to my
don't need create another one.

4)please, give me one example, how i can use tag --CLEAN-- on this test, because, i don't see how can i use this tag here

Thanks

@jerrygrey
Copy link

@marcosptf Fair enough, but I don't think relying on other test files is a good idea, as those files may change or be removed in the future. Tbh, I don't know why they are there in the first place.

I have updated my code above, but I meant the code should be consistent, switching between __DIR__ and dirname(__FILE__) is not best practice as both are exactly the same.

Also, as pointed out by @bukka here #1601, use tabs instead of spaces for indentations.

@marcosptf
Copy link
Contributor Author

@jerrygrey
i've fixed like your updated your code above!

:-)

@bukka
Copy link
Member

bukka commented Oct 27, 2015

The same as #1595 - I'm going to do a different tests for this

@marcosptf
Copy link
Contributor Author

👍

@krakjoe
Copy link
Member

krakjoe commented Jan 6, 2017

@marcosptf @bukka can we get an update here please ?

@bukka
Copy link
Member

bukka commented Jan 8, 2017

Same as other PR's, please close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants