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

Ext compilation errors and warning - PHP 8.1 #35

Closed
FxNion opened this issue Mar 13, 2023 · 1 comment · Fixed by #39
Closed

Ext compilation errors and warning - PHP 8.1 #35

FxNion opened this issue Mar 13, 2023 · 1 comment · Fixed by #39

Comments

@FxNion
Copy link

FxNion commented Mar 13, 2023

Compiling the powerfull ext using phpize, configure and make throw several warnings, concerning zend ptrs.

Nevertheless the lib seems to works, but throws this warning at each php bootstraps

PHP Deprecated:  Return type of Tensor\Vector::offsetGet($index) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0

PHP Deprecated:  Return type of Tensor\Vector::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0

PHP Deprecated:  Return type of Tensor\Matrix::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in Unknown on line 0

Compiled on a Mac Mini, 10.15.7, all needed libs installed with Brew, php 8.1.10

Regards 🙂

@myfluxi
Copy link

myfluxi commented Apr 7, 2023

See: #36

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 a pull request may close this issue.

2 participants