-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Add suffix to tempnam() #575
Conversation
Implementation of this RFC: https://wiki.php.net/rfc/tempnam-suffix
This one fails to build with compile error in gd.c. |
Can't say why gd.c should be a problem here. Worked fine for me. I only had problems with the unittest but didn't find out which mismatch it has in actual/expected output. The output of the testscript itself looks fine to me. Would be great if somebody could pick this up. |
Fixed test to pass
travis still tells me that this PR breaks the build: |
oh, right, you simply missed the php_open_temporary_file() usage in ext/gd.c . |
*ext/gd/gd.c
|
had no gd-devel installed, thus gd got disabled during build and I didn't notice it. Thanks for the feedback. |
Still something broken? This is a neverending story :-( |
Starting program: /Users/tyrael/checkouts/php-src.git/./sapi/cli/php ext/gd/tests/bug41442.php Program received signal SIGSEGV, Segmentation fault. caused by this line: I think it is caused by the fact that we allow the NULL pointer to reach all the way here, and spprintf %s expects a null terminated string argument. |
this simple patch solves the segfault, but it would be nice if somebody else could approve this:
|
@Tyrael You need to indent the patch with four spaces or wrap it in ``` to properly format it. |
ah, thanks. |
Could somebody maybe update the patch and review this? At least I hope we're close ... |
neufeind: only you can update the patch in the pull request. |
Also this has a binary API change in php_open_temporary_file, so unless it's in 5.6.0, it can not be in 5.6 branch at all. |
Can one of the admins verify this patch? |
It seems to need some adjustment, but I'm not sure how to continue with it / track that down. A test fails - but how do I debug that? |
if you still want to pursue this, please create a new PR |
I still didn't find out how to track down the failing test. The patch itself worked afaik but my tries (as a php-src-newbie) to find help unfortunately lead nowhere :-( |
Implementation of this RFC:
https://wiki.php.net/rfc/tempnam-suffix