Mode used in languages such as Javascript and Perl to be able to code with a restricted version of those languages.
Questions tagged [strict]
490 questions
-1
votes
3 answers
PHP Strict Standards: Creating default object from empty value
i have this error in my cronjobs report
PHP Strict Standards: Creating default object from empty value in /home/admin/domains/DOMAIN.com/public_html/birthdate.php on line 28
Strict Standards: Creating default object from empty value in…

Drstreet
- 227
- 1
- 2
- 13
-2
votes
1 answer
How to use typeof operator to check if function is a string
Task Instructions
Your task in this activity is to create a function called isString that takes three arguments (a, b, c). This function does the following:
It uses the typeof operator and strict equality comparison to check if the type of all three…

HackAttack101
- 35
- 2
- 7
-2
votes
2 answers
How to read a promise in a strict js file
I am working on a program that runs in ECMA 5.
All js files are use strict and this makes most suggestions online not usable as for example return new Promise.resolve is not usable in strict mode.
I am calling an async method to get an url and if a…

Sebastiaan Haverkate
- 77
- 2
- 10
-2
votes
1 answer
PHP Strict Standards throwing error on subclass that does not override superclass method
I am encountering the following warning:
Strict Standards: Declaration of FGLU_Activity::delete() should be compatible with FGLU_Entity::delete($id, $commit = true) in ...
FGLU_Activity extends FGLU_Entity and does NOT override the static ::delete…

GraceRg
- 23
- 4
-2
votes
1 answer
Perl setting value of a variable in strict -T mode errors
I have a script running strict with the -T parameter or 'taint' mode. If I try to set the value of a variable already defined, it craps out. I didn't make much of it, I'm just trying to modify it and don't know why it's breaking. Here's the gist…

user3066571
- 1,381
- 4
- 14
- 37
-2
votes
1 answer
javascript "use strict"; block scope not behaving correctly
When using strict mode, exceptions are thrown when accessing undefined variables.
Consider the following:
"use strict";
alert(typeof mistypedVaraible + " one");
alert(mistypedVaraible + " two");
only the first alert fires because an exception is…

rickdog
- 748
- 8
- 10
-2
votes
1 answer
Requirejs with Backbonejs - "use strict" throw error
I am developing a application using Backbone.Marionette, I am loading the files using RequireJs, I decide to use the strict mode for my app, so I declared
"use strict" on the function. But I am getting error like this:
ught TypeError: Cannot set…

3gwebtrain
- 14,640
- 25
- 121
- 247
-2
votes
1 answer
The feature of locking method in dbms
I am newer in database design ,i want to know some features of locking protocol in dbms .
My features are:
Deadlock Free
View/conflict serializable
Recoverable
Cascadeless
And my protocols are :
2pl
Strict 2pl
Graph based
Timestamp
Validation…

Spadsystem.com
- 3
- 3
-3
votes
3 answers
In Perl, how can I use the contents of a variable as the name of a hash?
The code below works only with no strict.
Can anyone suggest a better way to do it?
%hash5=('key5', 5);
my $hash_name = 'hash5';
print $$hash_name{'key5'}, "\n";
Again my aim: I do not know the hash name. I only know, it is store in
the variable…

user152037
- 201
- 2
- 8
-4
votes
2 answers
Perl: How to predeclare a two-dimensional array?
After introducing:
use strict;
My 2-dimensional array do not work any more, and I find no description and no example in the documentation how to predeclare them. So, what have I to do?

ubuplex
- 189
- 1
- 5