Theoretically it might affect other PHP code, but it would depend on the way that code was written. If you don't use a database and you never open files based on user input, then you are probably OK, but we'd need to see your code to be sure. In any case, even if your own code is safe then it cannot hurt to upgrade, in case you need to use other code in the future which might be vulnerable.