Skip to content

BeSimpleSoap PHP7 Error - String special class name #79

Description

@pierophp

When try install BeSimpleSoap in PHP 7 a got this error message:

Notice: Use of undefined constant WSDL_CACHE_DISK - assumed 'WSDL_CACHE_DISK' in /var/www/inoserver/vendor/burti/besimple-soap-bundle/BeSimple/SoapBundle/DependencyInjection/BeSimpleSoapExtension.php on line 161

Fatal error: Cannot use BeSimple\SoapBundle\Util\String as String because 'String' is a special class name in /var/www/inoserver/vendor/burti/besimple-soap-bundle/BeSimple/SoapBundle/Converter/TypeRepository.php on line 16

I think is necessary change the "String" class name. Maybe to "StringHelper" or "StringUtil"

Thanks

Activity

  1. phpmike commented on Feb 8, 2016

    @phpmike

    The are few classes like this to change...

  2. rpcjacobs commented on Apr 14, 2016

    @rpcjacobs

    @pierophp Maybe you made the same mistake as i had, purely because i was in a hurry.

    If you found this bundle initially through google besim.pl, perhaps you used the 'requires' from the composer installation page;

    {
        "require": {
            "besimple/soap":   "0.1.*@dev,
            "ass/xmlsecurity": "dev-master"
        }
    }
    

    Which might not have been intentionally, as in, requiring the old (lower) version. 0.0

    If so, remove "ass/xmlsecurity": "dev-master", and change version constraint to;

    {
        "require": {
            "besimple/soap":   "0.2.*@dev,
        }
    }
    

    After updating your project it auto magically supports PHP7 all of a sudden, without any change to the bundle files.

  3. phpmike commented on Apr 14, 2016

    @phpmike

    I don't understand, because in 0.2.6 I see that: https://github.com/BeSimple/BeSimpleSoap/blob/0.2/src/BeSimple/SoapBundle/Util/String.php
    And it's not PHP7 compatible.

  4. pierophp commented on May 2, 2016

    @pierophp
    Author

    Hi,

    I made a simple pull request to fix the issue

    #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions