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

Fix php 7.3 compat issue #1

Closed
wants to merge 1 commit into from
Closed

Conversation

hairmare
Copy link

This makes the zend-view package run on PHP 7.3.

See libretime/libretime#670 (comment) for where this was reported.

PHP has this in their docs on compat.

Before PHP 7.3, any strings that are not set will silently be skipped.

I'm hoping that there isn't more 7.3 compat stuff lurking but will fix it if I find more.

I'm using array() instead of [] so I don't break old PHP 5.x stuff.

@Robbt
Copy link

Robbt commented Feb 9, 2019

Looks like this may have been fixed in 89acaef

@falkenhawk
Copy link
Member

I am sorry I overlooked this PR somehow...

@falkenhawk falkenhawk closed this Feb 9, 2019
@hairmare hairmare deleted the fix/php-73 branch February 9, 2019 17:03
@glensc
Copy link

glensc commented May 6, 2019

grr, 89acaef breaks php 5.3 compat!

falkenhawk added a commit that referenced this pull request Dec 12, 2022
- substr(): Passing null to parameter #1 ($string) of type string is deprecated
- strtolower(): Passing null to parameter #1 ($string) of type string is deprecated
- strlen(): Passing null to parameter #1 ($string) of type string is deprecated
- trim(): Passing null to parameter #1 ($string) of type string is deprecated
- str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated
- strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated
- http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated
- current(): Calling current() on an object is deprecated
- preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated
- preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated
- always construct Zend_Exception with string message, avoid null
- Implicit conversion from float-string "x.xyz" to int loses precision
- PDOStatement::fetch(): Passing null to parameter #2 ($cursorOrientation) of type int is deprecated
- ctype_space(): Argument of type null will be interpreted as string in the future
- file_get_contents(): Passing null to parameter #2 ($use_include_path) of type bool is deprecated
- imagefilledpolygon(): Using the $num_points parameter is deprecated
- Implicit conversion from float to int loses precision
- PDOStatement::bindParam(): Passing null to parameter #4 ($maxLength) of type int is deprecated
- preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated
- ctype_print(): Argument of type int will be interpreted as string in the future
- trim(): Passing null to parameter #1 ($string) of type string is deprecated
etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants