Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: PHP7 - Invalid Numeric Literal w/fix

PHP7 - Invalid Numeric Literal w/fix 8 years 2 months ago #26339

  • clawcorp
  • clawcorp's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Karma: 3
  • Thank you received: 2
Tracked down a PHP7 bug in class.payment.php; literals beginning with 0 are not octal literals (see bugs.php.net/bug.php?id=70193 ); removing the leading 0's removes the error.

E.g.

$currency_codes= 008; (Not a valid octal value)

becomes:

$currency_codes= 8;

Please Log in or Create an account to join the conversation.

PHP7 - Invalid Numeric Literal w/fix 8 years 1 month ago #26384

  • normdouglas
  • normdouglas's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 97
  • Thank you received: 0
How did you remove the leading zeros...? from the db?

Please Log in or Create an account to join the conversation.

PHP7 - Invalid Numeric Literal w/fix 8 years 1 month ago #26385

  • clawcorp
  • clawcorp's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Karma: 3
  • Thank you received: 2
You'll have to edit the php file manually. The file is located here:

/components/com_dtregister/lib/class.payment.php

If you'd like me to send you my edits, send me a private message here w/your email address and I'll send you my changed version.

No guarantee this will fix all PHP7 problems, but it certainly got us through.
The following user(s) said Thank You: gregoconnor

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.183 seconds