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

Build against PHP 5.4 #3999

Closed
michaelrsweet opened this issue Dec 27, 2011 · 3 comments
Closed

Build against PHP 5.4 #3999

michaelrsweet opened this issue Dec 27, 2011 · 3 comments
Labels
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

@michaelrsweet michaelrsweet commented Dec 27, 2011

Version: 1.5.0
CUPS.org User: remi

function_entry have been removed from PHP 5.4.
Should use zend_function_entry which is available since PHP 5.0.0

See trivial attached patch

@michaelrsweet
Copy link
Collaborator Author

@michaelrsweet michaelrsweet commented Jan 3, 2012

CUPS.org User: mike

Will apply for a future 1.5.x release, however the PHP module has been removed from CUPS 1.6 and later.

@michaelrsweet
Copy link
Collaborator Author

@michaelrsweet michaelrsweet commented Jan 27, 2012

CUPS.org User: mike

Fixed in Subversion repository.

@michaelrsweet
Copy link
Collaborator Author

@michaelrsweet michaelrsweet commented Jan 27, 2012

"cups-php54.patch":

diff -up cups-1.5.0/scripting/php/phpcups.c.orig cups-1.5.0/scripting/php/phpcups.c
--- cups-1.5.0/scripting/php/phpcups.c.orig 2011-12-27 16:54:21.520359399 +0100
+++ cups-1.5.0/scripting/php/phpcups.c 2011-12-27 16:54:55.461360314 +0100
@@ -40,7 +40,7 @@

  • PHP function list...
    */

-function_entry phpcups_functions[] =
+zend_function_entry phpcups_functions[] =
{
PHP_FE(cups_cancel_job, NULL)
PHP_FE(cups_get_dests, NULL)

@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.