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

Use of undefined constant STDERR - assumed 'STDERR' #1

Closed
mzk opened this issue Dec 1, 2010 · 2 comments
Closed

Use of undefined constant STDERR - assumed 'STDERR' #1

mzk opened this issue Dec 1, 2010 · 2 comments

Comments

@mzk
Copy link

mzk commented Dec 1, 2010

$orm->debug = true;//'dump';
NotORM/Result.php Line: 106

Use of undefined constant STDERR - assumed 'STDERR'

@vrana
Copy link
Owner

vrana commented Dec 1, 2010

It is clearly specified at http://www.notorm.com/#api that debug = true is a shortcut for fwrite(STDERR, $query). STDERR constant is defined in CLI or you can define it yourself.

@bystac
Copy link

bystac commented Dec 7, 2010

yeah in docs, u can use this:

    $nORM->debug = function($q, $p) {
        print $q.'<br/>';
        if (count($p)) print_r($p);
        print '<hr>';
    };

This issue was closed.
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

No branches or pull requests

3 participants